/* Velon landing — design tokens lifted verbatim from the .dc.html source. */
:root {
  --bg: #060b18;
  --surface: #0a1226;
  --surface-2: #0d1830;
  --surface-3: #13233f;
  --line: #14213d;
  --line-2: #1e3a5f;
  --accent: #5eead4;
  --accent-hover: #99f6e4;
  --accent-line: #134e4a;
  --text: #e2e8f0;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --dim: #475569;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@keyframes pulse { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: translateY(0) } }
@keyframes scanline { 0% { transform: translateX(-100%) } 100% { transform: translateX(340%) } }
@keyframes glow { 0%, 100% { opacity: .5 } 50% { opacity: .9 } }

/* Scroll reveal. The `off` state is scoped to .js so the page still reads
   with JavaScript disabled — the inline head script adds that class. */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-on { opacity: 1; transform: translateY(0); }

.page {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  z-index: 20;
}
.skip-link:focus { left: 0; color: var(--bg); }

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  row-gap: 12px;
  position: sticky;
  top: 0;
  background: rgba(6, 11, 24, .92);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.mark {
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.mark__dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.brand__name { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.brand__version {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 6px;
}
.nav__links { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.nav__link { color: var(--muted); white-space: nowrap; }
.lang {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.lang__current { background: var(--surface-3); color: var(--accent); padding: 5px 10px; }
.lang__link { color: var(--faint); padding: 5px 10px; }

.btn--outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 400;
  padding: 9px 20px;
  border-radius: 8px;
  white-space: nowrap;
}
.btn--solid {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
}
.btn--solid:hover { color: var(--bg); background: var(--accent-hover); }
.btn--quiet {
  border: 1px solid var(--line-2);
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
}
.btn--quiet:hover { color: var(--text); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 110px 64px 90px; text-align: center; overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(94, 234, 212, .14), transparent 65%);
  animation: glow 5s ease-in-out infinite;
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero__command {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 22px;
  animation: fadeUp .6s ease both;
}
.hero__title {
  font-family: var(--display);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  text-wrap: balance;
  animation: fadeUp .7s ease .1s both;
}
.hero__lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 58ch;
  animation: fadeUp .7s ease .22s both;
}
.hero__actions { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; animation: fadeUp .7s ease .34s both; }
.hero__badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  animation: fadeUp .7s ease .46s both;
}

/* ---------- hero chat mock ---------- */
.demo {
  width: 100%;
  max-width: 720px;
  margin-top: 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
  text-align: left;
  animation: fadeUp .8s cubic-bezier(.16, 1, .3, 1) .5s both;
  position: relative;
}
.demo__scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanline 3.2s linear 1.4s infinite;
}
.demo__chrome { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.demo__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.demo__dot--live { background: var(--accent); }
.demo__body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.demo__ask { display: flex; justify-content: flex-end; }
.bubble--user {
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-radius: 14px 14px 4px 14px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  max-width: 78%;
}
.demo__reply { display: flex; gap: 12px; align-items: flex-start; }
.demo__avatar {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.demo__reply-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bubble--bot {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}
.caret { color: var(--accent); animation: pulse 1.4s infinite; margin-left: 4px; }
.demo__cites { display: flex; flex-wrap: wrap; gap: 8px; }
.cite {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 99px;
  padding: 5px 11px;
}
.demo__input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  margin-top: 4px;
}
.demo__placeholder { font-size: 14px; color: var(--dim); flex: 1; }
.demo__enter { font-family: var(--mono); font-size: 11px; color: var(--accent); }

/* ---------- sections ---------- */
.section {
  border-top: 1px solid var(--line);
  padding: 80px 64px;
  max-width: 1280px;
  margin: 0 auto;
}
.section--narrow { max-width: 960px; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 12px; }
.section__title {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -.01em;
  margin: 0 0 48px;
}
.section__title--tight { margin-bottom: 16px; }
.section__title--faq { margin-bottom: 36px; }
.section__lede { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 48px; max-width: 64ch; }

.grid--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.stage { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: var(--surface); }
.stage__tag { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 14px; }
.stage__title { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.stage__body { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- business flow ---------- */
.diagram { display: flex; justify-content: center; margin: 0 0 56px; }
.diagram svg { width: 100%; max-width: 880px; height: auto; }
.flow { display: flex; flex-wrap: wrap; gap: 24px 0; align-items: stretch; }
.flow__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 16px;
}
.flow__card {
  flex: 1 1 230px;
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flow__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.flow__num { font-family: var(--mono); font-size: 11px; color: var(--accent); white-space: nowrap; }
.flow__actor {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.flow__title { font-size: 15px; font-weight: 500; color: var(--text); }
.flow__body { font-size: 13px; line-height: 1.55; color: var(--muted); }
.flow__note {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.flow__note-icon { color: var(--accent); }

/* ---------- features ---------- */
.feature { padding: 24px; border: 1px solid var(--line); border-radius: 10px; }
.feature__title { font-size: 16px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.feature__body { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- markets bento ---------- */
.markets { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.market {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.market__sector {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: auto;
  padding-bottom: 16px;
}
.market__graphic { display: flex; justify-content: center; padding: 8px 0 20px; }
.market__graphic svg { width: 100%; height: auto; }
.market__usecase { font-family: var(--display); font-weight: 500; color: var(--text); letter-spacing: -.01em; }
.market__body { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 48ch; }

/* ---------- security ---------- */
.security { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.security__title { font-family: var(--display); font-size: 32px; font-weight: 400; letter-spacing: -.01em; margin: 0 0 20px; }
.security__body { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0; }
.security__list { display: flex; flex-direction: column; gap: 14px; }
.security__row { display: flex; gap: 14px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.security__tag { font-family: var(--mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.security__text { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ---------- integrations ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 99px;
}

/* ---------- testimonials ---------- */
.quotes { margin-top: 36px; }
.quote {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}
.quote__text { font-size: 15px; line-height: 1.65; color: var(--text-2); }
.quote__name { font-size: 14px; font-weight: 500; }
.quote__role { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 2px; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
}
.faq__mark { font-family: var(--mono); color: var(--accent); }
.faq__answer { font-size: 14px; line-height: 1.65; color: var(--muted); padding: 0 0 20px; max-width: 64ch; }

/* ---------- closing cta ---------- */
.cta { border-top: 1px solid var(--line); padding: 96px 64px; text-align: center; }
.cta__command { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 16px; }
.cta__title { font-family: var(--display); font-size: 36px; font-weight: 400; letter-spacing: -.01em; margin: 0 0 16px; }
.cta__lede { font-size: 16px; color: var(--muted); margin: 0 0 32px; }
.cta__button {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  display: inline-block;
}
.cta__button:hover { color: var(--bg); background: var(--accent-hover); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--faint);
}
.footer__links { display: flex; gap: 24px; }
.footer__link { color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .markets { grid-template-columns: repeat(2, 1fr); }
  .markets > .market { grid-column: span 1 !important; grid-row: span 1 !important; }
  .markets > .market--featured { grid-column: span 2 !important; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .security { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav { padding: 16px 20px; }
  .nav__links { gap: 14px; font-size: 13px; }
  .hero { padding: 72px 20px 64px; }
  .hero__title { font-size: 34px; }
  .hero__lede { font-size: 16px; }
  .hero__badges { gap: 16px; }
  .section { padding: 56px 20px; }
  .section__title, .security__title { font-size: 26px; margin-bottom: 32px; }
  .section__title--tight { margin-bottom: 14px; }
  .grid--4, .grid--3, .markets { grid-template-columns: 1fr; }
  .markets > .market--featured { grid-column: span 1 !important; }
  .market__usecase { font-size: 20px !important; }
  .flow__arrow { width: 100%; padding: 4px 0; transform: rotate(90deg); }
  .cta { padding: 72px 20px; }
  .cta__title { font-size: 28px; }
  .footer { padding: 28px 20px; }
}

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