/* Shared styles for landing-family pages (landing, terms, privacy). */

:root {
    --navy: #0D0B2E;
    --navy-light: #13103A;
    --blue: #1A5CE6;
    --cyan: #00CFFF;
    --cyan-dim: rgba(0, 207, 255, 0.12);
    --text-primary: #F0F0F5;
    --text-secondary: #A0A0B8;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--navy);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* -- Nav -- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
    position: relative;
    z-index: 2;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

/* -- CTA Button -- */
.cta-button {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(0, 207, 255, 0.25);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-nav {
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
}

/* -- Footer -- */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem clamp(1.5rem, 5vw, 4rem) 2rem;
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-brand img {
    height: 40px;
    width: auto;
    opacity: 0.6;
}

.footer-icon img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* -- Accent text (gradient) -- */
.accent {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -- Secondary button -- */
.btn-secondary {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 16px rgba(0, 207, 255, 0.1);
}

/* -- Hero buttons row -- */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* -- Sections -- */
.section {
    position: relative;
    z-index: 2;
    padding: 5rem clamp(1.5rem, 5vw, 4rem);
}

.section--navy {
    background: var(--navy);
}

.section--navy-light {
    background: var(--navy-light);
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
}

.section-inner--narrow {
    max-width: 720px;
    margin: 0 auto;
}

.section-inner--tight {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    text-transform: uppercase;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.section h2 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 680px;
}

/* -- Cards -- */
.card {
    background: var(--navy-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 207, 255, 0.25);
    box-shadow: 0 0 24px rgba(0, 207, 255, 0.06);
}

/* Cards on navy-light sections use navy bg */
.section--navy-light .card {
    background: var(--navy);
}

.card h3 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* -- Steps (How It Works) -- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    counter-reset: step;
}

.step {
    counter-increment: step;
}

.step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cyan-dim);
    color: var(--cyan);
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* -- Features grid -- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    counter-reset: feature;
}

.feature-icon {
    counter-increment: feature;
    width: 44px;
    height: 44px;
    background: var(--cyan-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
}

.feature-icon::before {
    content: "0" counter(feature);
}

/* -- Testimonials -- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card blockquote {
    position: relative;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.testimonial-card blockquote::before {
    content: "\201C";
    position: absolute;
    top: -0.6rem;
    left: -0.25rem;
    font-family: 'Space Grotesk', Georgia, serif;
    font-size: 6rem;
    font-style: normal;
    line-height: 1;
    color: var(--cyan);
    opacity: 0.08;
    pointer-events: none;
}

.testimonial-card .attribution {
    font-size: 0.825rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.social-proof {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* -- Pricing -- */
.pricing-card {
    position: relative;
    text-align: center;
    max-width: 560px;
    margin: 3rem auto 0;
    padding: 3.5rem 2.5rem;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 207, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.pricing-card h3 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto 2rem;
}

/* -- Contact -- */
.section-lead--contact {
    margin: 1rem auto 2rem;
    text-align: center;
}

.contact-email-wrap {
    margin-bottom: 1rem;
}

.contact-email {
    color: var(--cyan);
    text-decoration: none;
    font-size: 1.05rem;
    transition: text-decoration 0.15s ease;
}

.contact-email:hover {
    text-decoration: underline;
}

/* -- Scroll reveal (only when JS is active) -- */
html.js-enabled .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -- Responsive -- */
@media (max-width: 640px) {
    .nav {
        padding: 1rem 1.25rem;
    }

    .nav-logo img {
        height: 32px;
    }

    .nav-link--section {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 3.5rem 1.25rem;
    }

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

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

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html.js-enabled .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}
