@font-face {
  font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(assets/fonts/inter-latin-wght-normal.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(assets/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
}

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --tint: #f6f8ff;
  --blue: #2563eb;
  --brand-1: #3b6cff;
  --brand-2: #8b3dff;
  --brand: linear-gradient(135deg, var(--brand-1), var(--brand-2));

  --iso: #1e3a8a;  --iso-bg: #eff4ff;
  --idn: #15803d;  --idn-bg: #ecfdf3;
  --acc: #b45309;  --acc-bg: #fffbeb;
  --trc: #334155;  --trc-bg: #f1f5f9;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 30px 80px -30px rgba(30, 41, 99, .45);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .88em; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo {
  display: block; width: 34px; height: 34px; border-radius: 23%;
  box-shadow: 0 6px 16px -6px rgba(255, 117, 9, .6);
}
.logo.sm { width: 26px; height: 26px; }
.logo.lg { width: 72px; height: 72px; margin: 0 auto; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); }
.flow-logo { width: 44px; height: 44px; margin: 0 auto; box-shadow: 0 0 30px -4px rgba(255, 117, 9, .6); }
.grad-text {
  background: linear-gradient(100deg, #2f6bff 0%, #6b4dff 45%, #a855f7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(76, 76, 255, .8); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(76, 76, 255, .9); }
.btn-primary .ic { transition: transform .2s; }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn-ghost { background: rgba(255,255,255,.7); border-color: var(--line); color: var(--ink); backdrop-filter: blur(8px); }
.btn-light { background: #fff; color: var(--ink); font-size: 17px; padding: 15px 26px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(255,255,255,.78); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .25s; border-radius: 2px; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.7); }
.lang:hover { color: var(--blue); border-color: #c9dbff; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 110px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #f7f9ff 0%, #fff 100%); }
.hero-bg .grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(59,108,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(59,108,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 16s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: #8fb0ff; top: -160px; right: -80px; }
.orb-2 { width: 420px; height: 420px; background: #c7a6ff; top: 180px; right: 320px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #9fe8d0; bottom: -120px; left: -60px; opacity: .35; animation-delay: -9s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px, 30px) scale(1.06); } }

.hero-inner { display: grid; grid-template-columns: 1.15fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--blue);
  background: rgba(255,255,255,.8); border: 1px solid #d5e1ff; box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; display: inline-block; flex: none; }
.pill .dot, .live .dot, .dot.g { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 80%,100% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }

h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.04em; margin: 22px 0 22px; font-weight: 800; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 540px; margin: 0 0 32px; }
.lead strong { color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.hero-tags span { display: inline-flex; gap: 8px; align-items: center; }
.hero-tags .ic { color: var(--idn); width: 16px; height: 16px; }

.founder {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; padding: 12px 16px 12px 12px;
  border-radius: 14px; background: rgba(255,255,255,.75); border: 1px solid var(--line); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); max-width: 560px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.founder:hover { transform: translateY(-2px); border-color: #c9dbff; box-shadow: 0 16px 34px -18px rgba(37, 99, 235, .45); }
.founder img { flex: none; width: 34px; height: 34px; }
.founder span { display: flex; flex-direction: column; line-height: 1.35; }
.founder b { font-size: 14.5px; color: var(--ink); }
.founder small { font-size: 12.5px; color: var(--muted); }
.founder .ic { flex: none; width: 16px; height: 16px; color: var(--blue); transition: transform .2s; }
.founder:hover .ic { transform: translateX(3px); }
.hero-visual { position: relative; }
.window {
  border-radius: 16px; overflow: hidden;
  background: rgba(13, 18, 38, .92); color: #e2e8f0;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-visual:hover .window { transform: perspective(1400px) rotateY(0) rotateX(0); }
.window-bar, .app-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.window-title { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: #94a3b8; }
.live { margin-left: auto; display: inline-flex; gap: 7px; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #86efac; font-weight: 600; }
.feed { height: 360px; overflow: hidden; padding: 8px 0; position: relative; mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 100%); }
.feed-row {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 16px; font-family: var(--mono); font-size: 12.5px;
  animation: slideIn .5s cubic-bezier(.2,.8,.2,1);
  border-bottom: 1px dashed rgba(255,255,255,.05);
}
.feed-row .m { font-weight: 600; }
.feed-row .m.GET { color: #7dd3fc; } .feed-row .m.PUT, .feed-row .m.POST { color: #fbbf24; } .feed-row .m.DENY { color: #f87171; }
.feed-row .p { color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-row .p small { display: block; color: #64748b; font-size: 11px; }
.feed-row .s { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(34,197,94,.14); color: #86efac; }
.feed-row .s.ko { background: rgba(248,113,113,.15); color: #fca5a5; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.float-card {
  position: absolute; display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); border: 1px solid #e8edff;
  font-size: 13.5px; animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-1 { left: -44px; bottom: -28px; }
.fc-2 { right: -24px; top: -30px; animation-delay: -3s; }
.fc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.fc-ic svg { width: 19px; height: 19px; }
.fc-ic.iso { background: var(--iso-bg); color: var(--iso); }
.fc-ic.acc { background: var(--acc-bg); color: var(--acc); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-tint { background: var(--tint); }
.section-head { max-width: 800px; margin-bottom: 56px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.03em; margin: 0; font-weight: 800; }
.sub { font-size: 18px; color: var(--ink-2); margin: 20px 0 0; }
.section-head.center { text-align: center; margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.chips span { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.ic-badge { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid; }
.ic-badge svg { width: 22px; height: 22px; }
.ic-badge.tone { background: var(--cbg); color: var(--c); border-color: color-mix(in srgb, var(--c) 22%, transparent); }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.pillar-top { position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.pillar::before {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%;
  background: var(--cbg); transition: transform .5s;
}
.pillar:hover::before { transform: scale(1.5); }
.pillar > :not(.pillar-top) { position: relative; z-index: 1; }
.pillar-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pillar-ic {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  color: var(--c); background: linear-gradient(145deg, #fff, var(--cbg));
  border: 1px solid color-mix(in srgb, var(--c) 18%, transparent);
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--c) 70%, transparent);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.pillar-ic svg { width: 25px; height: 25px; }
.pillar:hover .pillar-ic { transform: rotate(-6deg) scale(1.08); }
.pillar .q { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 14px; line-height: 1.35; }
.pillar h3 { color: var(--c); font-size: 21px; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.pillar > p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* ---------- dark flow ---------- */
.section-dark { background: radial-gradient(1200px 500px at 50% -10%, #23307a 0%, #0b1024 55%), #0b1024; color: #e2e8f0; overflow: hidden; }
.section-head.light h2 { color: #fff; }
.section-head.light .sub { color: #a5b4d4; }
.section-head.light .eyebrow { color: #8fb0ff; }
.flow { display: grid; grid-template-columns: 1fr 1.1fr 1fr 1.1fr 1fr; align-items: center; margin: 10px 0 56px; }
.flow-node {
  text-align: center; padding: 26px 18px; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
}
.flow-node b { display: block; margin-top: 14px; font-size: 17px; color: #fff; }
.flow-node small { color: #94a3b8; font-size: 13px; }
.flow-core { background: linear-gradient(160deg, rgba(59,108,255,.22), rgba(139,61,255,.18)); border-color: rgba(143,176,255,.35); box-shadow: 0 0 60px -10px rgba(99,102,241,.55); }
.glass-badge { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #c7d2fe; }
.flow-link { position: relative; height: 2px; margin: 0 6px; background: linear-gradient(90deg, rgba(143,176,255,.15), rgba(143,176,255,.6), rgba(143,176,255,.15)); }
.flow-link em { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 12px; color: #8fa3cf; font-family: var(--mono); }
.packet { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #8fb0ff; box-shadow: 0 0 12px 3px rgba(143,176,255,.8); animation: travel 2.4s linear infinite; }
.packet.p2 { animation-delay: -1.2s; }
@keyframes travel { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }

.code-log { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); font-size: 13.5px; }
.log-row { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr .6fr; gap: 12px; padding: 14px 22px; align-items: center; border-top: 1px solid rgba(255,255,255,.06); }
.log-row.head { border-top: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #7c8db5; background: rgba(255,255,255,.03); }
.log-row code { color: #fdba74; }
.log-row code.ag { color: #c4b5fd; }
.log-row .tag { font-family: var(--mono); font-size: 12px; color: #cbd5e1; }
.st { justify-self: start; font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 7px; }
.st.ok { background: rgba(34,197,94,.15); color: #86efac; }
.st.ko { background: rgba(248,113,113,.15); color: #fca5a5; }
.log-row span:last-child { color: #94a3b8; }

/* ---------- product ---------- */
.product { max-width: 1080px; margin: 0 auto; }
.tabs { display: flex; gap: 4px; width: max-content; margin: 0 auto 26px; padding: 5px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tab { border: 0; background: none; font: 600 14.5px Inter, sans-serif; padding: 10px 20px; border-radius: 10px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.tab.active { color: #fff; background: var(--brand); box-shadow: 0 8px 18px -8px rgba(76,76,255,.8); }

.app { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #dfe5f2; box-shadow: var(--shadow-lg); }
.app-bar { background: #f3f5fa; border-bottom: 1px solid var(--line); }
.app-url { margin: 0 auto; display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 4px 14px; border-radius: 8px; }
.app-url .ic { width: 12px; height: 12px; color: var(--idn); }
.panel { display: none; height: 440px; font-size: 13.5px; }
.panel.active { display: flex; animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.side { width: 220px; flex: none; border-right: 1px solid var(--line); padding: 16px 12px; background: #fbfcfe; }
.side.right { border-right: 0; border-left: 1px solid var(--line); }
.side-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 6px 12px; }
.new-agent { background: #ffedd5; color: #c2410c; font-weight: 600; text-align: center; padding: 8px; border-radius: 9px; margin-bottom: 12px; font-size: 13px; }
.sess { display: flex; gap: 9px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess.active { background: #fff3e8; color: #c2410c; font-weight: 600; }
.kv { display: flex; justify-content: space-between; padding: 9px 6px; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.kv span { color: var(--muted); }
.kv b { font-family: var(--mono); font-weight: 500; font-size: 12px; }

.chat { flex: 1; display: flex; flex-direction: column; padding: 22px 30px; background: #f6f7fb; gap: 12px; min-width: 0; }
.msg.user { align-self: flex-end; background: #ffe6d1; padding: 9px 14px; border-radius: 12px 12px 4px 12px; }
.steps { font-family: var(--mono); font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 7px 12px; border-radius: 9px; }
.msg.agent p { margin: 0 0 8px; }
.msg.agent ul { margin: 0 0 8px; padding-left: 18px; }
.msg.agent code { background: #eef1f7; padding: 1px 6px; border-radius: 5px; }
.msg.agent .meta { font-size: 12px; color: var(--muted); }
.composer { margin-top: auto; display: flex; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: #94a3b8; }
.composer .model { color: var(--ink); font-weight: 600; font-size: 12.5px; }

.terminal { flex: 1; background: #0b0f17; color: #d1d5db; font-family: var(--mono); font-size: 13px; padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; }
.t-logo { color: #e07a52; }
.t-line b { color: #fff; }
.t-p { color: #e07a52; }
.caret { display: inline-block; width: 8px; height: 16px; background: #d1d5db; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-out div { animation: slideIn .3s ease; padding: 1px 0; }
.t-out .ok { color: #86efac; } .t-out .dim { color: #6b7280; } .t-out .warn { color: #fca5a5; }
.t-foot { margin-top: auto; border-top: 1px solid #1f2937; padding-top: 12px; color: #6b7280; font-size: 12px; }

.console { flex: 1; padding: 24px 30px; background: #f6f7fb; overflow: hidden; }
.console h4 { margin: 0 0 16px; font-size: 20px; }
.tbl { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.6fr 1.2fr 1.3fr 1.3fr .6fr; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--line); align-items: center; font-size: 12.5px; }
.tr.th { border-top: 0; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fbfcfe; }
.tr .r { text-align: right; }
.lnk { color: #c2410c; font-weight: 500; }
.b { font-style: normal; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); margin-right: 4px; background: #fff; }
.b.idle { background: #d1fae5; border-color: #a7f3d0; color: #047857; }
.b.run { background: #dbeafe; border-color: #bfdbfe; color: #1d4ed8; }
.b.sl { background: #f1f5f9; }
.b.rd { color: #047857; }

.costs { flex: 1; padding: 26px 30px; background: #f6f7fb; display: flex; flex-direction: column; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpis small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kpis b { font-size: 26px; letter-spacing: -.02em; }
.kpis b.big { font-size: 34px; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 10px; }
.bar { flex: 1; display: flex; flex-direction: column-reverse; border-radius: 5px 5px 0 0; overflow: hidden; height: 0; transition: height 1s cubic-bezier(.2,.8,.2,1); }
.bar i { display: block; }
.legend { display: flex; white-space: nowrap; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }

/* ---------- customers ---------- */
.customers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 560px)); justify-content: center; gap: 18px; }
.customer {
  position: relative; display: flex; align-items: center; gap: 20px; padding: 24px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.customer::before {
  content: ""; position: absolute; inset: auto -30% -70% auto; width: 220px; height: 220px; border-radius: 50%;
  background: #f1ebff; transition: transform .5s;
}
.customer > * { position: relative; }
.customer:hover { transform: translateY(-4px); border-color: #d9ccff; box-shadow: 0 24px 50px -24px rgba(91, 53, 240, .45); }
.customer:hover::before { transform: scale(1.5); }
.customer-logo { flex: none; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 18px -8px rgba(91, 53, 240, .7); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.customer:hover .customer-logo { transform: rotate(-6deg) scale(1.06); }
.customer-text { display: flex; flex-direction: column; min-width: 0; }
.customer-name { font-size: 21px; letter-spacing: -.02em; }
.customer-tag { color: var(--ink-2); font-size: 15px; }
.customer-desc { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.customer-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: #5b35f0; white-space: nowrap; }
.customer-link .ic { width: 16px; height: 16px; transition: transform .2s; }
.customer:hover .customer-link .ic { transform: translateX(3px); }

/* ---------- deploy ---------- */
.deploy { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dep { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.dep:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(15,23,42,.3); }
.dep { display: flex; gap: 20px; align-items: flex-start; }
.dep .ic-badge { flex: none; }
.dep .eyebrow { margin-bottom: 6px; }
.dep h3 { font-size: 21px; letter-spacing: -.02em; margin: 0; line-height: 1.3; }

/* ---------- cta ---------- */
.cta { position: relative; overflow: hidden; padding: 120px 0; color: #fff; text-align: center; background: linear-gradient(135deg, #1d3fd8 0%, #4b2fd6 50%, #7b2ff0 100%); }
.cta-bg .orb { opacity: .45; }
.cta-bg .orb-1 { background: #5ec8ff; top: -220px; left: -120px; right: auto; }
.cta-bg .orb-2 { background: #ff8bd6; top: auto; bottom: -260px; right: -100px; opacity: .3; }
.cta-inner { position: relative; max-width: 720px; }
.cta h2 { margin: 26px 0 14px; }
.cta p { font-size: 18px; color: rgba(255,255,255,.82); margin: 0 0 34px; }
.footer { background: #0b1024; color: #a5b4d4; padding: 64px 0 28px; font-size: 14.5px; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .brand { color: #fff; }
.footer-brand p { margin: 14px 0 18px; max-width: 340px; line-height: 1.6; }
.footer-authelia { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #c7d2fe; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.footer-authelia img { border-radius: 50%; background: #fff; padding: 1px; }
.footer-col h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-col h4:not(:first-child) { margin-top: 26px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-langs { margin: 0; }
.footer-langs [aria-current] { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; align-items: center; gap: 22px; padding-top: 24px; font-size: 13px; color: #7c8db5; }
.footer-bottom .link-btn:hover { color: #fff; }
.footer-top-link { margin-left: auto; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* One column: the visual centred under the copy, its floating cards with room on both sides. */
  .hero-visual { max-width: 560px; width: 100%; margin: 12px auto 0; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .side.right { display: none; }
}
/* One-column hero on tablets (and phones in desktop mode): everything centred,
   so the copy lines up with the visual under it. Phones keep it left-aligned. */
@media (min-width: 721px) and (max-width: 1020px) {
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-tags { justify-content: center; }
  .founder span { text-align: left; }
}
@media (max-width: 720px) {
  .pillars, .deploy { grid-template-columns: 1fr; }
  .footer { padding-top: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; gap: 10px 18px; }
  .customers { grid-template-columns: 1fr; }
  .customer { flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; padding: 22px; }
  .customer-logo { width: 44px; height: 44px; border-radius: 11px; }
  .customer-text { flex: 1 1 0; min-width: 0; }
  /* Its own row, under the text: beside it, it squeezed the text. */
  .customer-link { flex-basis: 100%; padding-left: 60px; }
  .pillars { gap: 14px; }
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow-link { width: 2px; height: 24px; margin: 0 auto; }
  .flow-node { padding: 16px; }
  .flow-node b { margin-top: 8px; }
  .flow-link em, .flow-link .packet { display: none; }
  .log-row { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) auto; gap: 8px; padding: 12px 14px; font-size: 12px; }
  .log-row code { overflow-wrap: anywhere; }
  .log-row > :nth-child(4), .log-row > :nth-child(5) { display: none; }
  .side { display: none; }
  .tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tab { padding: 10px 8px; }
  .panel { height: auto; min-height: 380px; }
  .chat, .console, .costs, .terminal { padding: 18px; }
  .bars { min-height: 180px; }
  h2 br { display: none; }
  .tr { grid-template-columns: 1.5fr 1fr .6fr; }
  .tr > :nth-child(2), .tr > :nth-child(4) { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .tr .b + .b { display: none; }
  .legend { flex-wrap: wrap; gap: 6px 14px; }
  .float-card { display: none; }
  .window { transform: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 400px) {
  .footer-top { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .container { width: calc(100% - 32px); }
  .pillar, .dep { padding: 22px; }
}
h1, h2, h3 { overflow-wrap: break-word; }

/* ---------- cookie consent ---------- */
.consent {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 20px; margin: 0 auto;
  width: min(720px, calc(100% - 32px)); display: flex; align-items: center; gap: 18px;
  padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .35);
  font-size: 13.5px; color: var(--ink-2);
}
.consent[hidden], .consent-backdrop[hidden] { display: none; }
.consent:focus { outline: none; }
.consent-backdrop {
  position: fixed; inset: 0; z-index: 59; background: rgba(4, 6, 15, .6);
}
.consent-open { overflow: hidden; }
.consent p { margin: 0; flex: 1; }
.consent b { color: var(--ink); }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent .btn { min-width: 96px; justify-content: center; }
.consent-refuse { background: var(--ink); color: #fff; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
@media (max-width: 600px) {
  .consent { flex-direction: column; align-items: stretch; bottom: 12px; gap: 12px; }
  .consent .btn { flex: 1; }
}
