/* ========================================
   PrivateStater 랜딩 페이지 공통 스타일
   ======================================== */

:root {
    --bg: #000000;
    --surface: #0a0a0a;
    --border: #222222;
    --text: #ffffff;
    --text-muted: #888888;
    --primary: #ffffff;
    --accent: #3b82f6;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, 1fr);
    padding: 20px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 60px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    transition: transform 0.2s, color 0.2s, font-size 0.2s;
}

.logo:hover {
    color: var(--accent);
    font-size: 1.2rem;
    transform: translateX(-0.25rem);
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-left: 24px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

/* Bento Grid Items */
.bento-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.bento-item:hover {
    border-color: #333;
}

/* Hero Section */
.hero-main {
    grid-column: span 12;
    min-height: 500px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: transparent;
    position: relative;
    overflow: visible;
    border: none;
}

.hero-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, #0088ff40 0%, #000 45%);
    z-index: -1;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero-desc {
    font-size: 1.25rem;
    color: #718399;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--primary);
    color: #000;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition:
        transform 0.2s,
        opacity 0.2s;
    display: inline-block;
    border: 1px solid var(--primary);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.cta-button.secondary:hover {
    border-color: var(--primary);
}

.cta-button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Feature Cards */
.feature-card {
    grid-column: span 4;
}

.feature-large {
    grid-column: span 12;
    min-height: 500px;
    padding: 0;
}

.feature-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Preview Image Area */
.preview-img-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.preview-img-wrapper img {
    width: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, #000 50%, transparent 100%);
    z-index: 2;
}

/* Core Feature Cards */
.core-feature {
    justify-content: flex-start;
}

.core-feature .feature-list {
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
}

.core-feature .feature-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.core-feature .feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--text);
}

/* Benefit Number */
.benefit-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    margin-top: -8px;
}

/* Comparison Table */
.comparison-section {
    grid-column: span 12;
    padding: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.comparison-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.comparison-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.comparison-tab:hover {
    border-color: #444;
    color: var(--text);
}

.comparison-tab.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.comparison-content {
    display: none;
}

.comparison-content.active {
    display: block;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    position: relative;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.comparison-table th:first-child {
    width: 30%;
}

.comparison-table td {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .highlight-col {
    background: #0a0a0a;
    color: var(--text);
}

.comparison-table .price-row td {
    font-weight: 600;
    color: var(--text);
}

.comparison-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 24px;
    opacity: 0.7;
}

/* 비용 비교 슬라이더 */
.slider-section {
    grid-column: span 12;
    padding: 40px;
}

.slider-controls {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.slider-control {
    flex: 1;
    text-align: center;
}

.slider-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.slider-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.cost-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.cost-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
    border: none;
    transition: transform 0.15s;
}

.cost-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.cost-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
    border: none;
}

.slider-results {
    margin-top: 12px;
}

.slider-bundle {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.slider-bundle:last-child {
    border-bottom: none;
}

.bundle-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.bundle-name {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.bundle-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.bundle-breakdown {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    opacity: 0.7;
}

.slider-bundle.highlight .bundle-name {
    color: var(--text);
    font-weight: 600;
}

.slider-bundle.highlight .bundle-total {
    color: var(--accent);
}

.slider-bundle.contact .bundle-total {
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    grid-column: span 12;
    padding: 40px;
    padding-bottom: 12px;
}

.faq-list {
    margin: 0 auto;
}

.faq-item {
    padding: 20px 0;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Bento 특수 항목 */
div.bento-item:nth-child(15) {
    padding: 60px 40px 20px 40px;
}

div.bento-item:nth-child(16) > div:nth-child(1) > h2:nth-child(1),
div.bento-item:nth-child(18) > div:nth-child(1) > h2:nth-child(1) {
    font-size: 1.7rem;
}

div.bento-item:nth-child(16) > div:nth-child(1) > h2:nth-child(1) {
    margin-bottom: 4px;
}

div.bento-item:nth-child(18) > div:nth-child(1) > h2:nth-child(1) {
    margin-bottom: 8px;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    margin-top: 8px;
    font-size: 0.9rem;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--text);
}

.footer-business-info {
    margin-bottom: 20px;
}

.footer-business-info h4 {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.business-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.business-info-grid span,
.business-info-grid a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.business-verify-link {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.2s;
}

.business-verify-link:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--text);
}

/* Page Content (Privacy, Security 등) */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.page-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.page-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.page-content a {
    color: var(--accent);
    text-decoration: underline;
}

.page-content a:hover {
    color: var(--text);
}

.policy-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
}

.policy-box p {
    margin: 0 0 8px 0;
}

.policy-box a {
    font-weight: 600;
    margin-right: 4px;
}

/* Pricing 페이지 전용 스타일 */
.pricing-hero-card {
    grid-column: span 12;
    padding: 56px 48px;
    background: radial-gradient(circle at right, rgba(59, 130, 246, 0.2) 0%, transparent 50%), linear-gradient(135deg, #090909 0%, #060606 100%);
}

.pricing-hero-card h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 12px;
    max-width: 820px;
}

.pricing-lead {
    font-size: 1.05rem;
    color: #9caec4;
    max-width: 700px;
}

.pricing-card {
    grid-column: span 6;
}

.pricing-card h2 {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.pricing-card p {
    color: var(--text-muted);
}

.pricing-card-head {
    margin-bottom: 20px;
}

.pricing-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.pricing-table th {
    color: var(--text);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pricing-table td {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table td:last-child {
    color: var(--text);
    font-weight: 600;
}

.pricing-cta-card {
    grid-column: span 12;
}

.pricing-cta-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-cta-card p {
    margin-bottom: 24px;
}

/* Docs 페이지 전용 스타일 */
.docs-container {
    display: flex;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 40px 20px;
    gap: 40px;
}

.docs-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.docs-sidebar h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.docs-sidebar ul {
    list-style: none;
    padding: 0;
}

.docs-sidebar li {
    margin-bottom: 4px;
}

.docs-sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
    font-size: 0.9rem;
}

.docs-sidebar a:hover {
    background-color: var(--surface);
    color: var(--text);
}

.docs-sidebar a.active {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.docs-content {
    flex: 1;
    min-width: 0;
}

.docs-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--text);
}

.docs-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.docs-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.docs-content p {
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 1rem;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
    line-height: 1.7;
}

.docs-content code {
    background-color: var(--surface);
    padding: 3px 6px;
    border-radius: 4px;
    font-family: "SF Mono", "Monaco", "Cascadia Code", "Courier New", monospace;
    font-size: 0.9em;
    color: var(--text);
}

.docs-content pre {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.docs-content pre code {
    background-color: transparent;
    padding: 0;
}

.docs-content a {
    color: var(--accent);
    text-decoration: underline;
}

.docs-content a:hover {
    color: var(--text);
}

.docs-content strong {
    color: var(--text);
    font-weight: 600;
}

/* 언어 안내 배너 스타일 */
:root {
    --language-banner-height: 0px;
}

body.has-language-banner {
    padding-top: var(--language-banner-height);
}

.language-banner {
    background: rgba(5, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99;
}

.language-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.language-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-banner-btn {
    background-color: var(--text);
    color: var(--bg);
    padding: 6px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.language-banner-btn:hover {
    opacity: 0.9;
}

.language-banner-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px 8px;
}

.language-banner-close:hover {
    color: var(--text);
}

/* 반응형 */
@media (max-width: 1024px) {
    .grid {
        gap: 14px;
    }

    .bento-item {
        padding: 32px;
    }

    .feature-card {
        grid-column: span 6;
    }

    .core-feature {
        grid-column: span 6 !important;
    }

    .preview-overlay {
        padding: 32px;
    }

    .benefit-number {
        font-size: 2.6rem;
    }

    .comparison-section,
    .slider-section,
    .faq-section {
        padding: 50px 32px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .business-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .docs-container {
        flex-direction: column;
        margin-top: 100px;
    }

    .docs-sidebar {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .grid > * {
        grid-column: span 1 !important;
    }

    .bento-item {
        padding: 24px;
    }

    .hero-main {
        padding: 60px 16px;
        min-height: auto;
    }

    h1 {
        font-size: clamp(2.4rem, 10vw, 3.2rem);
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .feature-large {
        min-height: 320px;
    }

    .preview-overlay {
        padding: 24px;
    }

    .comparison-section,
    .slider-section,
    .faq-section {
        padding: 40px 20px;
    }

    .comparison-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .comparison-tab {
        flex: 1 1 140px;
        text-align: center;
        padding: 10px 16px;
    }

    .slider-controls {
        flex-direction: column;
    }

    .comparison-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .comparison-table::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80px;
        background: linear-gradient(to left, var(--surface), transparent);
        pointer-events: none;
    }

    .comparison-table th,
    .comparison-table td {
        white-space: nowrap;
    }

    .section-header h2 {
        font-size: 1.6rem !important;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 16px;
    }

    .benefit-number {
        font-size: 2.3rem;
    }

    .slider-value {
        font-size: 1.6rem;
    }

    .bundle-name {
        font-size: 0.85rem;
    }

    .bundle-total {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .business-info-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 100px 16px 60px;
    }

    .pricing-hero-card h1 {
        font-size: 1.9rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 12px;
        font-size: 0.86rem;
    }

    .page-content h1,
    .docs-content h1 {
        font-size: 2rem;
    }

    .language-banner-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        height: auto;
        padding: 10px 16px;
        gap: 10px;
    }

    .language-banner-inner > span {
        flex: 0 0 auto;
        font-size: 0.85rem;
    }

    .banner-message-full {
        display: none !important;
    }

    .banner-message-short {
        display: inline !important;
    }

    .banner-btn-full {
        display: none !important;
    }

    .banner-btn-short {
        display: inline !important;
    }

    .language-banner-actions {
        flex: 0 0 auto;
        width: auto;
        justify-content: flex-start;
    }

    .language-banner-btn {
        padding: 5px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-main {
        padding: 50px 12px;
    }

    .bento-item {
        padding: 20px;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 12px 20px;
    }

    .comparison-section,
    .slider-section,
    .faq-section {
        padding: 32px 16px;
    }

    .comparison-tab {
        flex: 1 1 100%;
    }

    .preview-overlay {
        padding: 20px;
    }

    .page-content h1,
    .docs-content h1 {
        font-size: 1.8rem;
    }

    .pricing-hero-card h1 {
        font-size: 1.7rem;
    }
}
