/* =============================================
   DESIGN TOKENS
   Single source of truth for colours, type and layout.
   Values are sampled from the app dashboard's blue-grey theme —
   replace them with the final brand palette and typefaces.
   Everything below references these variables.
   ============================================= */
:root {
    --bg:           #eef1f6;   /* light blue-grey page background */
    --surface:      #ffffff;   /* white cards and panel */
    --border:       #dbe3ee;
    --text:         #16233d;   /* deep navy */
    --muted:        #5c6b82;   /* slate for body copy */

    --primary:      #2f5fa0;   /* blue — accents, primary buttons */
    --secondary:    #16233d;   /* navy — filled call-to-action buttons */
    --highlight:    #dbe6f5;   /* pale blue — icon circles, bands */

    --card-mint:    #ffffff;   /* the three scenario cards share one style in this theme; */
    --card-peach:   #ffffff;   /* the tokens stay so they can be split again later       */
    --card-lilac:   #ffffff;
    --card-cream:   #f7f9fc;

    /* Keep in sync with the Google Fonts <link> in index.html */
    --font-display: 'Lora', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --nav-h:        84px;
    --max-w:        1200px;
    --gutter:       2rem;
    --radius:       14px;
    --radius-sm:    8px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* =============================================
   UTILITY
   ============================================= */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.accent { color: var(--primary); }

/* Anchored sections land below the sticky nav when linked to. */
section[id] {
    scroll-margin-top: var(--nav-h);
}

/* Dashed box standing in for an image or illustration. Delete once real assets are in. */
.placeholder {
    display: grid;
    place-items: center;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.4);
}

/* Short accent stroke under headings */
.underline {
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 2px;
    background: var(--primary);
    margin: 1rem 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    border: 2px solid transparent;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Generic section (used by the stub sections) */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-body {
    color: var(--muted);
    max-width: 60ch;
    margin-bottom: 1rem;
}

/* Scroll fade-in: script.js adds .visible when the element enters the viewport. */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-up { opacity: 1; transform: none; transition: none; }
    .btn:hover { transform: none; }
}

/* =============================================
   NAVIGATION
   ============================================= */
#nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

#nav.scrolled {
    border-bottom-color: var(--border);
}

.nav-inner {
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

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

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--muted);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    font-weight: 600;
}

.nav-links a {
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    gap: 0.75rem;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 6px;
    right: 6px;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 21px; }

.nav-toggle.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

@media (max-width: 1000px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        inset: var(--nav-h) 0 0 0;
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        background: var(--bg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        font-size: 1.35rem;
    }
}

/* =============================================
   HERO
   ============================================= */
#hero {
    padding: 2rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
    align-items: center;
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
}

.hero-sub {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 48ch;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-media {
    aspect-ratio: 16 / 10;
    width: 100%;
}

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

/* =============================================
   WHITE PANEL: scenarios, features, CTA band
   ============================================= */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: min(100% - 2 * var(--gutter), var(--max-w) - 2 * var(--gutter));
    margin: 0 auto;
    padding: 1.25rem;
}

.panel .container {
    display: grid;
    gap: 1.25rem;
    padding: 0;
}

/* Scenario cards */
.scenarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.card {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.card-mint  { background: var(--card-mint); }
.card-peach { background: var(--card-peach); }
.card-lilac { background: var(--card-lilac); }

.card-art {
    aspect-ratio: 1;
}

.card-title {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.card-body p {
    color: var(--muted);
    font-size: 0.95rem;
}

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

/* Feature strip */
.features {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-cream);
}

.features-heading {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
}

.feature:last-child {
    border-right: none;
    padding-right: 0;
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--highlight);
    border-color: transparent;
}

.feature h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.85rem;
    color: var(--muted);
}

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

    .features-heading {
        border-right: none;
        padding-right: 0;
    }

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

    .feature {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 560px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* CTA band */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: var(--highlight);
}

.cta-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
}
