/* ==========================================================================
   VEONORA — landing page
   Structure: tokens · base · layout · nav · hero · about · what · vision ·
              contact · footer · motion · responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #090B10;
  --bg-2: #0D1017;
  --text: #F4F6FA;
  --muted: #8A92A6;
  --dim: #5A6275;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --blue: #7C9BFF;
  --violet: #9B8CFF;
  --silver: #CBD2E1;
  --grad: linear-gradient(100deg, #FFFFFF 0%, #C9D4FF 38%, #9B8CFF 100%);
  --font: "Inter", "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1200px;
  --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: rgba(124, 155, 255, .35); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 500; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(96px, 14vw, 190px) 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.label span { color: var(--blue); font-variant-numeric: tabular-nums; }
.label span::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 10px; }
.label--center { justify-content: center; }

.h2 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.h2--sm { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s, color .3s; white-space: nowrap; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--solid { background: var(--text); color: #0A0C12; box-shadow: 0 0 0 0 rgba(155, 140, 255, 0); }
.btn--solid:hover { transform: translateY(-1px); box-shadow: 0 8px 40px -6px rgba(140, 150, 255, .55); }
.btn--ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .28); transform: translateY(-1px); }
.arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, backdrop-filter .35s; }
.nav.is-scrolled { background: rgba(9, 11, 16, .62); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--line); }
.nav__inner { height: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 24px; height: 24px; }
.logo__word { font-weight: 600; letter-spacing: .26em; font-size: 14px; padding-left: 2px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { padding: 8px 14px; font-size: 14px; color: var(--muted); border-radius: 999px; transition: color .25s; position: relative; }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.nav__cta { margin-left: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; color: var(--text); }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 56px) 0 150px; overflow: hidden; isolation: isolate; }
.hero__content { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--silver); background: rgba(255, 255, 255, .025); backdrop-filter: blur(8px); }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(124, 155, 255, .6); animation: ping 2.8s infinite; }
.hero__title { margin-top: 28px; font-size: clamp(52px, 9.4vw, 132px); line-height: .96; letter-spacing: -.045em; font-weight: 600; max-width: 12ch; }
.hero__lead { margin-top: 28px; max-width: 540px; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__word { position: absolute; z-index: 0; left: 50%; bottom: -.17em; transform: translateX(-50%); font-size: clamp(80px, 21vw, 330px); font-weight: 700; letter-spacing: -.02em; line-height: 1; white-space: nowrap; user-select: none; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 78%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.scroll { position: absolute; z-index: 3; left: var(--gutter); bottom: 34px; width: 22px; height: 36px; border: 1px solid var(--line-2); border-radius: 12px; }
.scroll span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--silver); animation: wheel 2.2s var(--ease) infinite; }

/* Abstract stage (pure CSS) */
.stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stage__glow { position: absolute; inset: 0; background:
  radial-gradient(48% 46% at 76% 44%, rgba(124, 155, 255, .20), transparent 70%),
  radial-gradient(34% 38% at 86% 62%, rgba(155, 140, 255, .18), transparent 70%),
  radial-gradient(60% 50% at 10% 0%, rgba(255, 255, 255, .04), transparent 70%); }
.stage__floor { position: absolute; left: -20%; right: -20%; bottom: -8%; height: 60%; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; animation: floor 6s linear infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%); mask-image: radial-gradient(closest-side, #000 25%, transparent 100%); opacity: .9; }

.orbit { --s: min(64vw, 700px); position: absolute; right: max(-6vw, -80px); top: 50%; width: var(--s); height: var(--s); transform: translateY(-52%); transition: transform .6s var(--ease); }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); animation: spin 60s linear infinite; }
.ring i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--text); box-shadow: 0 0 14px 2px rgba(155, 140, 255, .8); }
.ring--1 { inset: 0; border-color: rgba(255, 255, 255, .07); }
.ring--1 i { top: 14%; left: 14%; }
.ring--2 { inset: 13%; border-color: rgba(255, 255, 255, .11); animation-duration: 38s; animation-direction: reverse;
  background: conic-gradient(from 90deg, transparent 0 62%, rgba(124, 155, 255, .12) 88%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, transparent 63%, #000 64%); mask-image: radial-gradient(circle, transparent 63%, #000 64%); }
.ring--2 i:nth-child(1) { top: -3px; left: 50%; background: var(--blue); }
.ring--2 i:nth-child(2) { bottom: 18%; right: 3%; width: 4px; height: 4px; }
.ring--3 { inset: 29%; border-color: rgba(255, 255, 255, .16); animation-duration: 24s; }
.ring--3 i { bottom: -3px; left: 50%; background: var(--violet); }
.core { position: absolute; inset: 41%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #C9D4FF 18%, #7C9BFF 42%, #3B3F8F 70%, #12142B 100%); box-shadow: 0 0 80px 14px rgba(124, 155, 255, .35), 0 0 220px 60px rgba(155, 140, 255, .18), inset -14px -16px 34px rgba(5, 6, 20, .7); animation: breathe 7s ease-in-out infinite; }
.beam { position: absolute; left: 50%; top: -28%; bottom: -28%; width: 1px; background: linear-gradient(transparent, rgba(180, 195, 255, .5), transparent); opacity: .5; transform-origin: center; }
.beam--a { transform: rotate(24deg); }
.beam--b { transform: rotate(-38deg); opacity: .28; }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; }
.about .label { align-self: start; padding-top: 14px; }
.about__text { margin-top: clamp(32px, 4vw, 56px); max-width: 780px; font-size: clamp(20px, 2.5vw, 32px); line-height: 1.45; letter-spacing: -.015em; color: var(--muted); }
.about__text em { font-style: normal; color: var(--text); background: linear-gradient(transparent 92%, rgba(124, 155, 255, .55) 92%); }

/* ---------- What we do ---------- */
.what { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.what__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vw, 88px); }
.what__head .h2 { text-align: right; }
.rows { border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 64px 64px minmax(0, 1.1fr) minmax(0, 1fr) 40px; align-items: center; gap: 24px; padding: clamp(30px, 4vw, 48px) 8px; border-bottom: 1px solid var(--line); cursor: default; transition: padding .5s var(--ease); }
.row::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--violet), transparent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.row::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 140% at 0% 50%, rgba(124, 155, 255, .08), transparent 70%); opacity: 0; transition: opacity .5s; }
.row:hover { padding-left: 24px; }
.row:hover::before { transform: scaleX(1); }
.row:hover::after { opacity: 1; }
.row__num { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.row__glyph { width: 44px; height: 44px; color: var(--silver); opacity: .7; transition: color .4s, opacity .4s, transform .6s var(--ease); }
.row:hover .row__glyph { color: var(--blue); opacity: 1; transform: rotate(8deg) scale(1.08); }
.row__title { font-size: clamp(24px, 3vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.row__text { color: var(--muted); max-width: 380px; }
.row__arrow { justify-self: end; color: var(--dim); font-size: 22px; transition: transform .4s var(--ease), color .3s; }
.row:hover .row__arrow { transform: translateX(6px); color: var(--text); }

/* ---------- Vision ---------- */
.vision { text-align: center; overflow: hidden; padding: clamp(140px, 20vw, 260px) 0; isolation: isolate; }
.vision__bg { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; }
.vision__bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 55% at 50% 50%, rgba(124, 155, 255, .12), transparent 70%); }
.vring { position: absolute; border-radius: 50%; border: 1px solid var(--line); aspect-ratio: 1; animation: spin 90s linear infinite; }
.vring--1 { width: min(46vw, 520px); }
.vring--2 { width: min(72vw, 820px); border-style: dashed; border-color: rgba(255, 255, 255, .06); animation-direction: reverse; animation-duration: 120s; }
.vring--3 { width: min(100vw, 1120px); border-color: rgba(255, 255, 255, .05); }
.vring--4 { width: min(140vw, 1500px); border-color: rgba(255, 255, 255, .035); }
.vcore { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 60px 20px rgba(124, 155, 255, .35); opacity: .0; }
.vnode { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 16px 2px rgba(155, 140, 255, .65); animation: twinkle 5s ease-in-out infinite; }
.vnode--1 { top: 22%; left: 24%; }
.vnode--2 { top: 70%; left: 18%; animation-delay: -1.4s; background: var(--blue); }
.vnode--3 { top: 30%; right: 20%; animation-delay: -2.6s; background: var(--violet); }
.vnode--4 { bottom: 20%; right: 26%; animation-delay: -3.5s; }
.vision__content { position: relative; }
.vision__title { margin: 28px auto 0; max-width: 18ch; font-size: clamp(38px, 6.8vw, 96px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
.vision__text { margin: 36px auto 0; max-width: 520px; font-size: clamp(17px, 1.8vw, 21px); color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact__box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; padding: clamp(32px, 6vw, 72px); border: 1px solid var(--line-2); border-radius: 28px; background:
  radial-gradient(70% 120% at 100% 0%, rgba(124, 155, 255, .14), transparent 60%),
  linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)); }
.contact .label { margin-bottom: 24px; }
.contact__side { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; }
.footer__nav a { font-size: 14px; color: var(--muted); transition: color .25s; }
.footer__nav a:hover { color: var(--text); }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.footer__bar a:hover { color: var(--text); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes floor { to { background-position: 0 64px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(124, 155, 255, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(124, 155, 255, 0); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .row { grid-template-columns: 40px 48px minmax(0, 1fr) 32px; gap: 8px 18px; }
  .row__text { grid-column: 3 / 4; }
  .row__title { grid-column: 3 / 4; }
  .row__num { grid-row: 1 / 3; align-self: start; padding-top: 8px; }
  .row__glyph { grid-row: 1 / 3; width: 36px; height: 36px; }
  .row__arrow { grid-column: 4; grid-row: 1 / 3; }
  .orbit { --s: min(92vw, 640px); right: -22vw; opacity: .8; }
  .contact__box { grid-template-columns: 1fr; gap: 32px; align-items: start; }
}

@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; background: rgba(9, 11, 16, .94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a.is-active::after { display: none; }
  .nav__cta { margin: 20px 0 0; height: 48px; justify-content: center; font-size: 15px; }
  .nav.menu-open { background: rgba(9, 11, 16, .94); }

  .hero { align-items: flex-start; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 120px; }
  .hero__title { font-size: clamp(46px, 14.5vw, 76px); }
  .orbit { --s: 120vw; right: -34vw; top: 80%; opacity: .6; }
  .stage__floor { height: 40%; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .scroll { display: none; }

  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .about .label { padding-top: 0; }
  .what__head { flex-direction: column; align-items: flex-start; }
  .what__head .h2 { text-align: left; }
  .row { grid-template-columns: 36px minmax(0, 1fr) 24px; padding: 28px 0; }
  .row__glyph { display: none; }
  .row__num { grid-row: 1 / 3; }
  .row__title, .row__text { grid-column: 2; }
  .row__arrow { grid-column: 3; }
  .row:hover { padding-left: 0; }
  .footer__bar { flex-direction: column; }
}
