/* LeadLoop 2.0 — design tokens */
:root {
    --ink: #0e1626;          /* night sky — hero */
    --ink-2: #16223a;        /* raised card on ink */
    --line-dark: rgba(255, 255, 255, 0.09);
    --paper: #ffffff;
    --paper-2: #f4f6fa;      /* cool light section */
    --text: #1c2536;
    --muted: #5a6478;
    --muted-dark: #97a3bd;   /* muted on ink */
    --accent: #5b5bea;       /* periwinkle indigo */
    --accent-deep: #4343c9;
    --amber: #f0a93b;        /* the warm voice */
    --ok: #34c77b;           /* live dot */
    --radius: 14px;
    --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
    --body: 'Figtree', -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Spline Sans Mono', Consolas, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

section[id] { scroll-margin-top: 84px; }

body {
    font-family: var(--body);
    color: var(--text);
    background: var(--paper);
    line-height: 1.65;
    font-size: 1.0625rem;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

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

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* ---------- nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(14, 22, 38, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-dark);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1rem;
}

.brand {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand .loop { color: var(--amber); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

.nav-links a.btn-primary { color: #fff; }

.menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -8px rgba(91, 91, 234, 0.5);
}

.btn-ghost { color: #fff; border: 1px solid var(--line-dark); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9375rem; }

/* ---------- hero ---------- */
.hero {
    background:
        radial-gradient(52rem 30rem at 78% 10%, rgba(91, 91, 234, 0.22), transparent 60%),
        radial-gradient(30rem 20rem at 15% 90%, rgba(240, 169, 59, 0.07), transparent 60%),
        var(--ink);
    color: #fff;
    padding: 5.5rem 0 6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--amber);
}

.hero-sub {
    color: var(--muted-dark);
    font-size: 1.1875rem;
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-ctas { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.hero-note {
    font-size: 0.9375rem;
    color: var(--muted-dark);
}

/* ---------- live call card (signature) ---------- */
.call-card {
    background: var(--ink-2);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.875rem;
}

.call-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--line-dark);
    color: var(--muted-dark);
    font-size: 0.8125rem;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ok);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 123, 0.55); }
    50% { box-shadow: 0 0 0 7px rgba(52, 199, 123, 0); }
}

.call-head .after-hours { margin-left: auto; color: var(--amber); }

.call-body { padding: 1.25rem; min-height: 300px; display: flex; flex-direction: column; gap: 0.7rem; }

.msg {
    max-width: 88%;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.msg.shown { opacity: 1; transform: none; }

.msg .who {
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    color: var(--muted-dark);
}

.msg-caller { background: rgba(255, 255, 255, 0.07); color: #e8ecf5; align-self: flex-start; }

.msg-ai {
    background: rgba(91, 91, 234, 0.18);
    border: 1px solid rgba(91, 91, 234, 0.35);
    color: #e8ecf5;
    align-self: flex-end;
}

.msg-ai .who { color: #a9a9f7; }

.msg-result {
    align-self: center;
    background: rgba(52, 199, 123, 0.12);
    border: 1px solid rgba(52, 199, 123, 0.3);
    color: #7fe0ae;
    font-size: 0.8125rem;
}

/* ---------- sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--paper-2); }

.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
}

.section-head p { color: var(--muted); font-size: 1.0625rem; }

/* how it works — a real sequence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.step {
    background: var(--paper);
    border: 1px solid #e3e8f2;
    border-radius: var(--radius);
    padding: 1.75rem;
}

.step .num {
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.75rem;
}

.step h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.9875rem; }

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

.feature { padding: 0.25rem 0; }

.feature .glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eef0fd;
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
}

.feature h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.9875rem; }

/* industries */
.chips { display: flex; flex-wrap: wrap; gap: 0.625rem; justify-content: center; }

.chip {
    background: var(--paper);
    border: 1px solid #dfe4f0;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

/* support banner */
.support-banner {
    background: var(--ink);
    border-radius: var(--radius);
    color: #fff;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.support-banner h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.4rem; }
.support-banner p { color: var(--muted-dark); max-width: 34rem; }
.support-banner a.mail { color: var(--amber); font-weight: 700; text-decoration: none; }
.support-banner a.mail:hover { text-decoration: underline; }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; }

.faq-item {
    background: var(--paper);
    border: 1px solid #e3e8f2;
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 0.875rem;
}

.faq-item summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
    line-height: 1;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p { margin-top: 0.875rem; color: var(--muted); font-size: 0.9875rem; }

/* demo */
.demo-frame {
    background: var(--paper);
    border: 1px solid #e3e8f2;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 20px 40px -24px rgba(28, 37, 54, 0.25);
}

/* footer */
footer {
    background: var(--ink);
    color: var(--muted-dark);
    padding: 3.5rem 0 2.5rem;
    font-size: 0.9375rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-grid .brand { font-size: 1.125rem; }

.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: var(--muted-dark); text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-meta {
    border-top: 1px solid var(--line-dark);
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.legal h1 { font-size: 2rem; font-weight: 800; margin: 1.5rem 0 0.5rem; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.5rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--accent); }
.back-link {
    display: inline-block;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .steps, .features { grid-template-columns: 1fr; }
    .hero { padding: 3.5rem 0 4rem; }
    .section { padding: 3.5rem 0; }

    .menu-btn { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--ink);
        border-bottom: 1px solid var(--line-dark);
        padding: 0.5rem 1.5rem 1rem;
    }

    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 0.75rem 0; font-size: 1.0625rem; }
    .nav-links a.btn-primary { text-align: center; padding: 0.8rem 1.5rem; margin-top: 0.5rem; }
}
