/* =================================================================
   IntentWorks Marketing — independent stylesheet v3
   No imports from app/static/style.css. Own design tokens.
   ================================================================= */

/* ---- Design Tokens ---- */
:root {
    --font-sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

    /* Surfaces */
    --bg-white:   #ffffff;
    --bg-light:   #f7f9fc;
    --bg-tinted:  #f0f4ff;
    --bg-dark:    #0f2747;
    --bg-darker:  #0a1b33;

    /* Text */
    --text-primary:   #1a202c;
    --text-secondary: #4a5568;
    --text-muted:     #718096;
    --text-on-dark:   #e2e8f0;
    --text-on-dark-muted: #94a3b8;

    /* Brand — deep blue */
    --brand:        #2563eb;
    --brand-hover:  #1d4ed8;
    --brand-soft:   #dbeafe;
    --brand-softer: #eff6ff;
    --brand-dark:   #1e40af;
    --brand-900:    #1e3a5f;

    /* Accent — consistent highlight color (warm amber-gold) */
    --hi:           #f59e0b;
    --hi-hover:     #d97706;
    --hi-soft:      #fef3c7;
    --hi-softer:    #fffbeb;
    --hi-dark:      #92400e;

    /* Success */
    --success:      #059669;
    --success-soft: #d1fae5;

    /* Borders */
    --border-light:  #e2e8f0;
    --border-subtle: #cbd5e1;
    --border-brand:  #93c5fd;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
    --shadow-brand: 0 4px 20px rgba(37,99,235,0.15);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; height: auto; }

/* ---- Container ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Buttons ---- */
.btn-cta {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.85rem;
    border-radius: var(--radius-md);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: var(--shadow-brand);
}
.btn-cta:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37,99,235,0.25); }
.btn-cta-lg { font-size: 1.05rem; padding: 0.9rem 2.5rem; }
.btn-cta-light { background: #fff; color: var(--brand); box-shadow: var(--shadow-md); }
.btn-cta-light:hover { background: #f8fafc; color: var(--brand-hover); }
.btn-cta-ghost {
    display: inline-block;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    transition: color 0.15s;
}
.btn-cta-ghost:hover { color: #fff; }
.btn-cta-header {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.btn-cta-header:hover { background: var(--brand-hover); color: #fff; }
.btn-secondary {
    display: inline-block;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.85rem;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: var(--bg-light); color: var(--brand); border-color: var(--border-brand); }
.btn-login {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
    transition: color 0.15s;
}
.btn-login:hover { color: var(--brand); }

/* ================================================================
   HEADER — branded top row
   ================================================================ */

/* Thin accent bar at very top */
.header-accent-bar {
    height: 2px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 65%, var(--hi) 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.05); }
.header-inner {
    display: flex;
    align-items: center;
    height: 56px;
    gap: 1.5rem;
}

/* Logo — real logo image, sized for header */
.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.header-brand-logo {
    display: block;
    height: 18px;
    width: auto;
}

/* Nav — cleanly grouped center-left */
.header-nav {
    display: flex;
    gap: 0.2rem;
    margin-left: 2rem;
}
.header-nav a {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.header-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-tinted);
}

/* Right actions */
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1rem 2rem 1.5rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}
.mobile-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 0;
}
.mobile-nav hr { border: none; border-top: 1px solid var(--border-light); margin: 0.5rem 0; }
.mobile-nav .mobile-cta { text-align: center; margin-top: 0.5rem; padding: 0.6rem; border-radius: var(--radius-sm); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    padding: 5rem 0 4.5rem;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-tinted) 100%);
}
.hero-inner {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 3rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}
.hero-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--hi);
    border-radius: 50%;
}
.hero h1 {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}
.hero-sub {
    margin-top: 1.5rem;
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
}
.hero-actions {
    margin-top: 2.25rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.hero-proof {
    margin-top: 2.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.proof-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}
.proof-sep {
    color: var(--hi);
    font-size: 1rem;
    line-height: 1;
}

/* ---- Product mockup ---- */
.hero-product-frame {
    background: linear-gradient(135deg, var(--brand-soft) 0%, #fff 100%);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(37,99,235,0.05);
}
.product-mock {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.mock-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 0.85rem;
    background: var(--bg-dark);
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #ffbd2e; }
.mock-dot.green { background: #28c840; }
.mock-title {
    margin-left: auto;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Mock step bar */
.mock-steps {
    display: flex;
    padding: 0.5rem 0.75rem;
    gap: 0.15rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}
.mock-step {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6rem;
    color: var(--text-muted);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.mock-step.done { color: var(--success); }
.mock-step.done .step-icon-sm { background: var(--success); color: #fff; }
.mock-step.active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.mock-step.active .step-icon-sm { background: var(--brand); color: #fff; }
.step-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px; height: 15px;
    border-radius: 50%;
    font-size: 0.5rem;
    font-weight: 700;
    background: var(--border-light);
    color: var(--text-muted);
}
.step-label-sm { display: inline; }

/* Mock toolbar */
.mock-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
}
.mock-page-title { font-size: 0.75rem; font-weight: 700; color: var(--text-primary); }
.mock-count { font-size: 0.6rem; color: var(--text-muted); }

/* Mock cards */
.mock-body { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mock-card {
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
}
.mock-card.highlight { border-color: var(--brand); border-left: 3px solid var(--brand); background: var(--brand-softer); }
.mock-card.faded { opacity: 0.45; }
.mock-card-row { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.3rem; }
.mock-badge {
    font-size: 0.55rem; font-weight: 700; color: var(--brand);
    background: var(--brand-soft); padding: 0.1rem 0.35rem; border-radius: 3px;
}
.mock-priority {
    font-size: 0.5rem; font-weight: 600; padding: 0.05rem 0.3rem; border-radius: 3px;
}
.mock-priority.must { color: #b91c1c; background: #fef2f2; }
.mock-priority.should { color: var(--hi-dark); background: var(--hi-soft); }
.mock-status {
    font-size: 0.5rem; font-weight: 600; padding: 0.05rem 0.3rem;
    border-radius: 3px; margin-left: auto;
}
.mock-status.approved { color: var(--success); background: var(--success-soft); }
.mock-status.draft { color: var(--text-muted); background: var(--bg-light); }
.mock-card-title { font-size: 0.68rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.2rem; }
.mock-card-desc { height: 6px; background: var(--bg-light); border-radius: 3px; width: 75%; margin-bottom: 0.3rem; }
.mock-card-meta { display: flex; gap: 0.3rem; margin-top: 0.2rem; }
.mock-meta-tag {
    font-size: 0.5rem; color: var(--text-muted);
    background: var(--bg-light); padding: 0.08rem 0.3rem; border-radius: 3px;
}

/* ================================================================
   SECTION TRANSITION
   ================================================================ */
.section-transition { padding: 0; background: var(--bg-tinted); }
.transition-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-brand) 30%, var(--hi) 50%, var(--border-brand) 70%, transparent 100%);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 5.5rem 0; }
.section-tinted { background: var(--bg-tinted); }
.section-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 3.5rem;
}
.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hi-dark);
    background: var(--hi-soft);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.85rem;
}
.section-header h2 {
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    line-height: 1.2;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Value Grid ---- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.value-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-brand); }
.value-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    border-radius: var(--radius-md);
    margin-bottom: 1.1rem;
    color: var(--brand);
}
.value-icon.accent { background: var(--hi-soft); color: var(--hi-hover); }
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* ---- Pipeline (How It Works) ---- */
.pipeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}
.pipeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-soft) 0%, var(--brand) 20%, var(--brand) 80%, var(--brand-soft) 100%);
}
.pipeline-step {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    position: relative;
}
.step-number {
    flex-shrink: 0;
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--bg-white), var(--shadow-brand);
    position: relative;
    z-index: 1;
}
.step-content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.35rem; margin-top: 0.35rem; }
.step-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* ---- Persona Grid ---- */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.persona-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.persona-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-brand); }
.persona-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hi-soft);
    border-radius: 50%;
    margin: 0 auto 1rem;
    color: var(--hi-hover);
}
.persona-icon svg { width: 24px; height: 24px; }
.persona-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--brand-dark); }
.persona-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ---- Differentiators Grid ---- */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 920px;
    margin: 0 auto;
}
.diff-item {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    position: relative;
}
.diff-accent {
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--hi));
    border-radius: 2px;
    margin-bottom: 1rem;
}
.diff-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.diff-item p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* ---- CTA Section ---- */
.section-cta {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--brand-900) 100%);
    padding: 5.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.section-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--hi) 50%, var(--brand) 100%);
}
.cta-inner h2 {
    font-size: 2.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
}
.cta-inner p {
    font-size: 1.1rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 2.25rem;
}
.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: var(--bg-darker);
    color: var(--text-on-dark-muted);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    padding: 3.5rem 0 2.5rem;
    gap: 3rem;
}
.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    max-width: 300px;
    line-height: 1.6;
}
.footer-links { display: flex; gap: 4rem; }
.footer-col h4 {
    font-size: 0.75rem; font-weight: 600; color: var(--text-on-dark);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.85rem;
}
.footer-col a {
    display: block; font-size: 0.85rem; color: var(--text-on-dark-muted);
    padding: 0.25rem 0; transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 0;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-on-dark-muted); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-visual { order: -1; }
    .value-grid { grid-template-columns: 1fr; }
    .persona-grid { grid-template-columns: 1fr; }
    .diff-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 2rem; }
    .mock-steps { overflow-x: auto; }
    .step-label-sm { display: none; }
}

@media (max-width: 640px) {
    .header-nav, .header-actions { display: none; }
    .mobile-menu-toggle { display: flex; }
    body.nav-open .mobile-nav { display: flex; }
    body.nav-open .mobile-menu-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    body.nav-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .mobile-menu-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .container { padding: 0 1.25rem; }
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero-sub { font-size: 1rem; }
    .hero-proof { display: none; }
    .section { padding: 3.5rem 0; }
    .section-header h2 { font-size: 1.6rem; }
    .section-cta { padding: 3.5rem 0; }
    .cta-inner h2 { font-size: 1.8rem; }
    .cta-actions { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 1.5rem; }
}
