/* Insights home page — standalone stylesheet (other pages still use styles.css).
   Palette taken from the logo: navy #002245, cyan #00C8EE, orange #FF7A18. */

:root {
    --navy: #002245;
    --navy-deep: #00152c;
    --navy-ink: #000d1c;
    --navy-line: rgba(0, 200, 238, 0.16);
    --cyan: #00c8ee;
    --cyan-soft: rgba(0, 200, 238, 0.12);
    --orange: #ff7a18;
    --white: #ffffff;
    --text: #dbe6f3;
    --muted: #8ea4bf;
    --card: rgba(255, 255, 255, 0.035);
    --card-line: rgba(255, 255, 255, 0.09);
    --radius: 18px;
    --display: 'Unbounded', 'IBM Plex Sans', sans-serif;
    --body: 'IBM Plex Sans', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

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

body {
    margin: 0;
    background: var(--navy-deep);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
b, strong { color: var(--white); font-weight: 600; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); color: var(--white); margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.15; font-weight: 700; }
h1 em, h2 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--cyan), #6fe6ff 55%, var(--orange));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.kicker {
    font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--orange); margin: 0 0 14px;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
    background: var(--orange); color: #1b0b00;
    box-shadow: 0 0 0 0 rgba(255, 122, 24, .5), 0 10px 30px -10px rgba(255, 122, 24, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(255, 122, 24, .15), 0 14px 34px -10px rgba(255, 122, 24, .8); }
.btn-ghost { color: var(--white); border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- Nav ---------------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(0, 21, 44, 0.72);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--navy-line);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: 48px; }
.brand span { font-family: var(--display); font-weight: 500; letter-spacing: 0.32em; font-size: 1rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text); font-size: 0.95rem; }
.nav-links a:hover { color: var(--cyan); }
.nav-links .nav-cta { padding: 9px 18px; border-radius: 999px; background: var(--orange); color: #1b0b00; font-weight: 600; }
.nav-links .nav-cta:hover { color: #1b0b00; filter: brightness(1.08); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; background: var(--navy); padding: 72px 0 96px; }
.hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--navy-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 65% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 40%, #000 20%, transparent 75%);
}
.hero-glow {
    position: absolute; width: 900px; height: 900px; right: -250px; top: -300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 238, .22), transparent 60%);
    filter: blur(10px); pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; right: -6%; top: 50%; width: 62%; height: 70%; margin-top: -18%; border-radius: 50%;
    border: 2px solid rgba(255, 122, 24, .3); transform: rotate(-14deg); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-inner > * { min-width: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
    font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan);
    padding: 7px 14px; border: 1px solid var(--navy-line); border-radius: 999px; background: rgba(0, 200, 238, .06);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(0, 200, 238, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(0, 200, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 200, 238, 0); } }

.hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.05; font-weight: 800; margin-bottom: 24px; }
.hero h1 em { display: block; }
.lede { font-size: 1.15rem; color: var(--text); max-width: 34em; margin: 0 0 32px; }

.agent-row { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.agent-row li { font-family: var(--mono); font-size: 0.82rem; color: var(--white); padding: 5px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--card-line); }
.agent-row li:first-child { background: none; border: 0; color: var(--muted); padding-left: 0; }

.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------------- Console (agent conversation) ---------------- */
.console {
    position: relative; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(0, 13, 28, .92), rgba(0, 13, 28, .98));
    border: 1px solid rgba(0, 200, 238, .28);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 60px -20px rgba(0, 200, 238, .45);
    animation: rise 1s .25s cubic-bezier(.2, .7, .2, 1) both;
}
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--card-line); font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.console-bar b { color: var(--cyan); font-weight: 500; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.dots i:first-child { background: var(--orange); }
.console-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #5ee08a; text-transform: uppercase; letter-spacing: .1em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #5ee08a; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.console-body { padding: 20px 20px 8px; height: 480px; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.msg { border-radius: 14px; padding: 12px 16px; font-size: 0.95rem; line-height: 1.5; animation: pop .35s ease both; }
.msg p { margin: 0; }
.msg .who { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.msg-user { align-self: flex-end; max-width: 88%; background: rgba(255, 122, 24, .12); border: 1px solid rgba(255, 122, 24, .35); color: var(--white); }
.msg-user .who { color: var(--orange); }
.msg-agent { background: var(--card); border: 1px solid var(--card-line); }
.msg-agent .who { color: var(--cyan); }
.msg-agent ol, .msg-agent ul { margin: 0; padding-left: 20px; }
.msg-agent li { margin: 3px 0; animation: pop .35s ease both; }
.msg-agent code { font-family: var(--mono); font-size: .85em; color: var(--orange); }
.caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: var(--orange); margin-left: 2px; animation: blink 1s infinite; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool {
    font-family: var(--mono); font-size: 0.76rem; color: var(--cyan);
    padding: 5px 10px 5px 26px; border-radius: 8px; position: relative;
    background: var(--cyan-soft); border: 1px solid rgba(0, 200, 238, .3); animation: pop .3s ease both;
}
.tool::before {
    content: ''; position: absolute; left: 9px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
    border: 2px solid var(--cyan); border-right-color: transparent; animation: spin .7s linear infinite;
}
.tool.done::before { border: 0; animation: none; width: 12px; height: 12px; margin-top: -6px; left: 8px;
    background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%235ee08a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.console-tabs { display: flex; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--card-line); overflow-x: auto; }
.console-tabs button {
    flex: 1; white-space: nowrap; font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
    background: transparent; border: 1px solid var(--card-line); border-radius: 999px; padding: 7px 12px; cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.console-tabs button:hover { color: var(--white); }
.console-tabs button[aria-selected="true"] { color: var(--navy-ink); background: var(--cyan); border-color: var(--cyan); }
.console-note { margin: 0; padding: 0 16px 14px; font-size: 0.72rem; color: var(--muted); }

/* ---------------- Statement ---------------- */
.statement { background: var(--navy-ink); padding: 80px 0; border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }
.statement p { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 3.4vw, 2.6rem); line-height: 1.25; color: var(--muted); text-align: center; }
.statement span { color: var(--white); }

/* ---------------- How it works ---------------- */
.how, .ask, .more { padding: 110px 0; }
.how h2, .ask h2, .more h2 { max-width: 20em; margin-bottom: 56px; }

.flow { display: grid; grid-template-columns: 1fr 60px 1.1fr 60px 1fr; align-items: stretch; }
.flow-col { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.flow-core { border-color: rgba(0, 200, 238, .35); background: linear-gradient(180deg, rgba(0, 200, 238, .08), rgba(0, 200, 238, .02)); }
.flow-label { font-family: var(--mono); font-size: 0.8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin: 0 0 18px; }
.flow-text { color: var(--muted); font-size: 0.95rem; margin: auto 0 0; padding-top: 18px; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.85rem; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--card-line); color: var(--white); }

.flow-link { position: relative; display: flex; align-items: center; }
.flow-link span { position: relative; display: block; width: 100%; height: 2px; background: rgba(0, 200, 238, .18); overflow: hidden; }
.flow-link span::after {
    content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: flow 1.8s linear infinite;
}
.flow-link:nth-of-type(4) span::after { background: linear-gradient(90deg, transparent, var(--orange), transparent); animation-delay: .9s; }
@keyframes flow { to { left: 100%; } }

.core { position: relative; display: grid; place-items: center; padding: 26px 0 10px; }
.core img { position: relative; width: 170px; filter: drop-shadow(0 0 24px rgba(0, 200, 238, .45)); animation: float 6s ease-in-out infinite; }
.core-ring { position: absolute; width: 210px; height: 210px; border-radius: 50%; border: 1px dashed rgba(0, 200, 238, .35); animation: spin 30s linear infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.core-list { list-style: none; padding: 0; margin: 18px 0 0; }
.core-list li { padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--card-line); font-size: 0.95rem; color: var(--white); }
.core-list li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.agent-card { border-radius: 12px; padding: 16px; background: var(--navy-ink); border: 1px solid rgba(255, 122, 24, .35); }
.agent-card code { display: block; font-family: var(--mono); font-size: 0.82rem; color: var(--orange); word-break: break-all; margin-bottom: 10px; }
.agent-card p { margin: 0; font-size: 0.92rem; }

/* ---------------- Ask grid ---------------- */
.ask { background: linear-gradient(180deg, var(--navy-deep), var(--navy) 50%, var(--navy-deep)); }
.ask-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ask-card {
    position: relative; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line);
    display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.ask-card:hover { transform: translateY(-4px); border-color: rgba(0, 200, 238, .45); background: rgba(0, 200, 238, .05); }
.ask-card .role { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 0 0 14px; }
.ask-card h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 500; margin-bottom: 12px; }
.ask-card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 20px; }
.tool-tag { margin-top: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--orange); opacity: .85; }

/* ---------------- Trust ---------------- */
.trust { padding: 110px 0; background: var(--navy-ink); border-top: 1px solid var(--navy-line); }
.trust-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.trust-copy h2 { margin-bottom: 20px; }
.trust-copy p:last-child { color: var(--muted); font-size: 1.05rem; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trust-list li { padding: 20px; border-radius: 14px; border: 1px solid var(--card-line); background: var(--card); }
.trust-list b { display: block; margin-bottom: 4px; }
.trust-list b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); margin-right: 10px; vertical-align: 2px; }
.trust-list span { color: var(--muted); font-size: 0.92rem; }

/* ---------------- Proof ---------------- */
.proof { padding: 70px 0; background: var(--navy); border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 6px; }
.stat:nth-child(odd) b { color: var(--cyan); }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* ---------------- More ---------------- */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.more-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); border: 1px solid var(--card-line); background: var(--card); color: var(--text); transition: border-color .3s, transform .3s; }
.more-card:hover { border-color: rgba(255, 122, 24, .5); transform: translateY(-4px); }
.more-card h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 10px; }
.more-card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; }
.more-card span { margin-top: auto; color: var(--orange); font-weight: 600; font-size: 0.95rem; }

/* ---------------- Closing ---------------- */
.closing { position: relative; overflow: hidden; padding: 110px 0; background: var(--navy); text-align: center; }
.closing .hero-glow { right: auto; left: 50%; top: -200px; transform: translateX(-50%); }
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.closing img { width: 260px; margin-bottom: 36px; }
.closing h2 { margin-bottom: 18px; }
.closing p { color: var(--muted); font-size: 1.1rem; margin: 0 0 32px; }
.closing .cta-row { justify-content: center; }

/* ---------------- Footer ---------------- */
.foot { background: var(--navy-ink); border-top: 1px solid var(--navy-line); padding: 36px 0; font-size: 0.9rem; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--display); letter-spacing: .3em; font-size: .85rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--cyan); }
.foot p { margin: 0; }

/* ---------------- Scroll reveal ---------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero::after { top: auto; bottom: -8%; right: -20%; width: 120%; height: 46%; margin-top: 0; }
    .flow { grid-template-columns: 1fr; }
    .flow-link { height: 44px; justify-content: center; }
    .flow-link span { width: 2px; height: 100%; }
    .flow-link span::after { left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--cyan), transparent); animation-name: flow-v; }
    .flow-link:nth-of-type(4) span::after { background: linear-gradient(180deg, transparent, var(--orange), transparent); }
    .ask-grid, .more-grid { grid-template-columns: 1fr 1fr; }
    .trust-inner { grid-template-columns: 1fr; gap: 40px; }
    .proof-grid { grid-template-columns: 1fr 1fr; }
}
@keyframes flow-v { to { top: 100%; } }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(0, 13, 28, .97); border-bottom: 1px solid var(--navy-line); padding: 8px 16px 18px;
        display: none;
    }
    .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--card-line); font-size: 1.05rem; }
    .nav-links .nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
    .nav.open .nav-links { display: flex; }
    .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap, .nav-inner { padding-left: 16px; padding-right: 16px; }
    .hero { padding: 44px 0 64px; }
    .lede { font-size: 1.05rem; }
    .cta-row .btn { flex: 1 1 100%; justify-content: center; }
    .console-body { height: 540px; padding: 16px 14px 6px; }
    .hero h1 { font-size: 1.9rem; }
    .eyebrow { font-size: 0.7rem; letter-spacing: 0.06em; }
    .hero::after { display: none; }
    .console-title { font-size: 0.72rem; }
    .live { display: none; }
    .msg { font-size: 0.9rem; }
    .how, .ask, .more, .trust, .closing { padding: 76px 0; }
    .how h2, .ask h2, .more h2 { margin-bottom: 36px; }
    .ask-grid, .more-grid, .trust-list { grid-template-columns: 1fr; }
    .statement { padding: 56px 0; }
    .closing img { width: 200px; }
    .foot-inner { flex-direction: column; align-items: flex-start; }
}

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