@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=DM+Sans:wght@400;500;700&display=swap');

/* ─── Design Tokens ───────────────────────────────────── */
:root {
    /* Colors (Sage Theme) */
    --bg-base: #0C0C0C;
    --bg-surface: #121212;
    --bg-elevated: #1A1A1A;
    --bg-hover: #2A2A2A;

    --border: #2A2A2A;
    --border-light: #333333;

    --accent: #9CAF88;
    --accent-dim: rgba(156, 175, 136, 0.15);
    --accent-hover: #B5C6A1;

    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --text-tertiary: #808080;

    /* Type */
    --font-heading: 'Cormorant Garamond', serif;
    --font: 'DM Sans', sans-serif;

    /* Misc */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --max-width: 1160px;
    --ease: ease-out;
}

/* ─── Reset ───────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ─── Container ───────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Navigation ──────────────────────────────────────── */
nav {
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link-text {
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.1s var(--ease), background 0.1s var(--ease);
}

.nav-link-text:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.1s var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #000000;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: #a1a1aa;
}

.btn-ghost {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

/* ─── Hero ────────────────────────────────────────────── */
.hero {
    padding: 5rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow — no animation, pure CSS */
.hero::before {
    content: '';
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 0 auto 1.5rem;
    max-width: 80%;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.stat span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* ─── Features ────────────────────────────────────────── */
.features {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.section-head {
    margin-bottom: 3.5rem;
}

.section-head h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    transition: background 0.1s var(--ease);
}

.feature-card:hover {
    background: var(--bg-elevated);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    display: block;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Pricing ─────────────────────────────────────────── */
.pricing {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.price-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.price-card.featured {
    background: var(--bg-elevated);
    border-color: var(--border-light);
    box-shadow: 0 0 0 1px var(--border-light), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.plan-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.plan-features li::before {
    content: '✓';
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

/* ─── Reviews ─────────────────────────────────────────── */
.reviews {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.review-stars {
    color: #eab308;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.review-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
}

.review-info p {
    font-size: 0.775rem;
    color: var(--text-tertiary);
}

/* ─── Footer ──────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-align: center;
    letter-spacing: 0.02em;
}

.footer-top {
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-brand .logo {
    font-size: 1rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.7;
}

.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.1s var(--ease);
}

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

/* ─── Legal / Article ─────────────────────────────────── */
.legal-page {
    padding: 6rem 0;
}

.legal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-card h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style: disc;
    color: var(--text-secondary);
}

.legal-section ul li {
    margin-bottom: 0.5rem;
}

.legal-section address {
    font-style: normal;
    background: var(--bg-base);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.legal-section a {
    color: var(--text-primary);
    text-decoration: underline;
}

/* ─── 404 Page ───────────────────────────────────────── */
.error-page {
    min-height: calc(100vh - 64px - 140px);
    /* Adjust for nav and small footer */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.error-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


@media (max-width: 768px) {
    .nav-link-text {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

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

    .legal-card {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

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

    nav {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-links .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}