/* SiteSpecs AI landing page — branding pulled from sitespecs.io
   Fonts: Poppins (headings) + Roboto (body)
   Green #2DB342 · Amber #FFA800 · Ink #212121 · Navy #1A1437 · Blue #569AFF */

:root {
    --green: #2db342;
    --green-dark: #239135;
    --green-tint: #e6f6e8;
    --amber: #ffa800;
    --amber-soft: #fab000;
    --amber-tint: #fff5e0;
    --blue: #569aff;
    --blue-tint: #ebf3ff;
    --ink: #212121;
    --navy: #1a1437;
    --navy-2: #241c4a;
    --gray: #475467;
    --gray-light: #98a2b3;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --border: #eaedf0;
    --radius: 16px;
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, .10);
    --shadow-lg: 0 20px 48px rgba(16, 24, 40, .16);
    --font-head: 'Poppins', 'Helvetica Neue', sans-serif;
    --font-body: 'Roboto', 'Helvetica Neue', sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

img { max-width: 100%; height: auto; }

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 840px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
    white-space: nowrap;
}
.btn-lg { font-size: 17px; padding: 15px 32px; border-radius: 12px; }
.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(45, 179, 66, .35);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(45, 179, 66, .45); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { color: var(--green); }
.btn-outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

.cta-friction { margin-top: 14px; font-size: 13px; color: var(--gray-light); }
.cta-friction-dark { color: rgba(255, 255, 255, .55); }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 200ms var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
/* Matches the official sitespecs.io wordmark: all-caps, solid black, spaced */
.nav-wordmark {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}
.nav-ai-badge {
    display: inline-block;
    background: var(--amber);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 2px;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray);
    text-decoration: none;
    transition: color 150ms;
}
.nav-links a:hover { color: var(--green); }
.nav-actions { display: flex; gap: 10px; }
.nav-burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 200ms, opacity 200ms; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-top: 1px solid var(--border); background: #fff; }
.nav-mobile a { padding: 10px 0; font-family: var(--font-head); font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-mobile .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #17285c 100%);
    color: #fff;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 40%, transparent 100%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35; }
.hero-glow-amber { width: 480px; height: 480px; background: var(--amber); top: -140px; right: -80px; }
.hero-glow-green { width: 420px; height: 420px; background: var(--green); bottom: -180px; left: -120px; opacity: .25; }
.hero-inner {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 88px 24px 96px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}
.hero-eyebrow {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}
.grad-text {
    background: linear-gradient(92deg, var(--amber) 10%, #ffd34d 50%, var(--green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub { font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 30px; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 36px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stats dt {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 28px;
    color: var(--amber);
    letter-spacing: -.5px;
}
.hero-stats dd { font-size: 13px; color: rgba(255, 255, 255, .6); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-robot {
    width: min(380px, 80%);
    filter: drop-shadow(0 30px 60px rgba(255, 168, 0, .35));
    animation: float 5s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
.chat-card {
    position: absolute;
    background: rgba(255, 255, 255, .97);
    color: var(--ink);
    border-radius: 14px;
    padding: 12px 16px;
    max-width: 240px;
    font-size: 12.5px;
    line-height: 1.45;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.chat-card strong { font-family: var(--font-head); font-size: 12px; color: var(--navy); }
.chat-dot {
    flex-shrink: 0;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--green);
    margin-top: 5px;
    box-shadow: 0 0 0 3px rgba(45, 179, 66, .2);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(45, 179, 66, .2); }
    50% { box-shadow: 0 0 0 7px rgba(45, 179, 66, .05); }
}
.chat-card-1 { top: 2%; left: -6%; animation: float 6s ease-in-out infinite .5s; }
.chat-card-2 { bottom: 16%; right: -4%; animation: float 7s ease-in-out infinite 1.2s; }
.chat-card-3 { bottom: -6%; left: 2%; animation: float 6.5s ease-in-out infinite .8s; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-light { background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }

.section-eyebrow {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}
.section-dark .section-eyebrow { color: var(--amber); }
.section h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 18px;
    max-width: 760px;
}
.section-lead { font-size: 17.5px; color: var(--gray); max-width: 700px; margin-bottom: 52px; }
.section-dark .section-lead { color: rgba(255, 255, 255, .75); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; margin-top: 8px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 19px; font-weight: 600; margin: 18px 0 10px; }
.card p { font-size: 15px; color: var(--gray); }
.card-icon {
    width: 52px; height: 52px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 26px; height: 26px; }
/* Brand icon: the SiteSpecs "S" badge is itself a rounded square, so it
   fills the tile directly instead of sitting inside a tinted box. */
.icon-brand { background: none; }
.icon-brand img { width: 52px; height: 52px; border-radius: 13px; }
.icon-amber { background: var(--amber-tint); color: var(--amber); }
.icon-green { background: var(--green-tint); color: var(--green); }
.icon-blue { background: var(--blue-tint); color: var(--blue); }

/* ---------- Train flow ---------- */
.train-flow {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 32px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.train-sources { display: grid; gap: 16px; }
.train-chip {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    transition: border-color 200ms, transform 200ms var(--ease);
}
.train-chip:hover { border-color: var(--green); transform: translateX(4px); }
.train-chip svg { width: 24px; height: 24px; color: var(--green); grid-row: span 2; }
.train-chip span { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.train-chip small { color: var(--gray-light); font-size: 12.5px; grid-column: 2; }
.train-arrow svg { width: 40px; height: 40px; color: var(--amber); }
.train-result {
    text-align: center;
    background: linear-gradient(160deg, var(--amber-tint), var(--green-tint));
    border-radius: 16px;
    padding: 28px 36px;
}
.train-result img { width: 120px; }
.train-result span { display: block; font-family: var(--font-head); font-weight: 700; font-size: 17px; margin-top: 8px; }
.train-result small { color: var(--gray); font-size: 12.5px; }

/* ---------- Pipeline ---------- */
.pipeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    counter-reset: step;
}
.pipeline li {
    position: relative;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 26px 20px 22px;
    transition: background 200ms, transform 220ms var(--ease);
}
.pipeline li:hover { background: rgba(255, 255, 255, .10); transform: translateY(-4px); }
.pipeline li::after {
    content: "";
    position: absolute;
    top: 50%; right: -14px;
    width: 10px; height: 10px;
    border-top: 2px solid var(--amber);
    border-right: 2px solid var(--amber);
    transform: translateY(-50%) rotate(45deg);
}
.pipeline li:last-child::after { display: none; }
.pipe-num {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--amber);
    color: var(--navy);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
}
.pipeline h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.pipeline p { font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.pipeline-note { margin-top: 36px; font-size: 15px; color: rgba(255, 255, 255, .7); }

/* ---------- Models banner ---------- */
.models-banner {
    background: linear-gradient(92deg, var(--amber) 0%, var(--amber-soft) 60%, #ffc84d 100%);
    color: var(--navy);
    padding: 52px 0;
}
.models-inner { display: flex; gap: 28px; align-items: center; }
.models-icon { width: 56px; height: 56px; flex-shrink: 0; }
.models-banner h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.5px; margin-bottom: 8px; }
.models-banner p { font-size: 16px; max-width: 720px; color: rgba(26, 20, 55, .85); }

/* ---------- Doc chips ---------- */
.doc-chips { display: flex; flex-wrap: wrap; gap: 14px; }
.doc-chip {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.doc-chip:hover { transform: translateY(-4px) scale(1.04); box-shadow: var(--shadow-md); }
.doc-word { color: #2b579a; border-color: rgba(43, 87, 154, .3); }
.doc-excel { color: #217346; border-color: rgba(33, 115, 70, .3); }
.doc-pdf { color: #d93025; border-color: rgba(217, 48, 37, .3); }
.doc-csv { color: var(--gray); }
.doc-xer { color: var(--blue); border-color: rgba(86, 154, 255, .35); }
.doc-md { color: var(--navy); }
.doc-proposal { color: var(--green); border-color: rgba(45, 179, 66, .35); }
.doc-budget { color: var(--amber); border-color: rgba(255, 168, 0, .4); }

/* ---------- Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-left: 3px solid var(--amber);
    border-radius: 12px;
    padding: 26px 24px;
    transition: background 200ms, transform 220ms var(--ease);
}
.adv-card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.adv-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.adv-card p { font-size: 14px; color: rgba(255, 255, 255, .68); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq-item summary {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
    padding: 20px 52px 20px 24px;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 150ms;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--green);
    transition: transform 200ms var(--ease);
}
.faq-item[open] summary { color: var(--green); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 24px 22px; font-size: 15px; color: var(--gray); }
.faq-item p + ul { margin-top: -12px; }
.faq-item ul { padding: 0 24px 22px 44px; font-size: 15px; color: var(--gray); display: grid; gap: 6px; }
.faq-item ul strong { color: var(--ink); font-weight: 600; }

/* ---------- Final CTA ---------- */
.final-cta {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #17285c 100%);
    color: #fff;
    padding: 88px 0;
    text-align: center;
}
.final-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final-cta img { width: 180px; filter: drop-shadow(0 20px 40px rgba(255, 168, 0, .3)); animation: float 5s ease-in-out infinite; }
.final-cta h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; letter-spacing: -1px; max-width: 640px; }
.final-cta .cta-friction { margin-top: 0; }

/* ---------- Footer ---------- */
.footer { background: #120e26; color: rgba(255, 255, 255, .6); padding: 56px 0 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer-inner > p { max-width: 520px; font-size: 14px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: 14px; transition: color 150ms; }
.footer-links a:hover { color: var(--amber); }
.footer-copy { font-size: 13px; color: rgba(255, 255, 255, .4); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* Stagger siblings inside grids */
.card-grid .reveal.visible:nth-child(2), .adv-grid .reveal.visible:nth-child(2) { transition-delay: 90ms; }
.card-grid .reveal.visible:nth-child(3), .adv-grid .reveal.visible:nth-child(3) { transition-delay: 180ms; }
.adv-grid .reveal.visible:nth-child(4) { transition-delay: 270ms; }
.adv-grid .reveal.visible:nth-child(5) { transition-delay: 360ms; }
.adv-grid .reveal.visible:nth-child(6) { transition-delay: 450ms; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; padding: 64px 24px 72px; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; grid-template-columns: repeat(2, auto); gap: 24px 48px; }
    .hero-visual { margin-top: 24px; }
    .chat-card-1 { left: 0; }
    .chat-card-2 { right: 0; }
    .card-grid-3 { grid-template-columns: 1fr; }
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .train-flow { grid-template-columns: 1fr; text-align: center; }
    .train-arrow { transform: rotate(90deg); justify-self: center; }
    .pipeline { grid-template-columns: 1fr; }
    .pipeline li::after { top: auto; bottom: -16px; right: 50%; transform: translateX(50%) rotate(135deg); }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .models-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 1080px) {
    .nav-links, .nav-actions { display: none; }
    .nav-burger { display: flex; }
    .nav-mobile.open { display: flex; }
}

@media (max-width: 720px) {
    .section { padding: 64px 0; }
    .adv-grid { grid-template-columns: 1fr; }
    .card-grid-4 { grid-template-columns: 1fr; }
    .chat-card { display: none; }
    .hero-robot { width: 260px; }
}
