:root {
  --bg: #070B1F;
  --bg-2: #0B1130;
  --surface: rgba(148, 163, 255, .05);
  --surface-2: rgba(148, 163, 255, .08);
  --border: rgba(148, 163, 255, .14);
  --border-strong: rgba(148, 163, 255, .28);
  --text: #E6EAF7;
  --muted: #9AA3C7;
  --blue: #3B82F6;
  --violet: #8B5CF6;
  --cyan: #22D3EE;
  --gold: #F0BE48;
  --grad: linear-gradient(120deg, #3B82F6 0%, #8B5CF6 100%);
  --grad-text: linear-gradient(100deg, #FFFFFF 0%, #C7D2FE 45%, #A5B4FC 70%, #C4B5FD 100%);

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 76rem;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }

body {
  margin: 0;
  background:
    radial-gradient(760px 520px at 80% 160px, rgba(139, 92, 246, .24), transparent 70%),
    radial-gradient(640px 440px at 58% 0, rgba(59, 130, 246, .22), transparent 70%),
    radial-gradient(360px 280px at 82% 120px, rgba(34, 211, 238, .10), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: #fff; }
p { margin: 0; }
a { color: inherit; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--bg);
  padding: .6rem 1rem;
  border-radius: var(--radius-s);
  z-index: 20;
}
.skip:focus { top: 1rem; }

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 28px -8px rgba(99, 102, 241, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.12); box-shadow: 0 10px 36px -6px rgba(124, 58, 237, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; filter: none; border-color: rgba(165, 180, 252, .5); }

.btn-gold { background: var(--gold); color: #1A1405; box-shadow: 0 8px 28px -10px rgba(240, 190, 72, .7); }
.btn-gold:hover { box-shadow: 0 10px 34px -8px rgba(240, 190, 72, .85); }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 11, 31, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; flex: none; }

.nav-links { display: flex; gap: 2.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.lang {
  font: inherit;
  font-weight: 700;
  font-size: .85rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem .8rem;
  cursor: pointer;
}
.lang:hover { border-color: var(--border-strong); }

/* Layout */

main > section { position: relative; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }

.hero-inner, .tz, .section-head, .service-grid, .horus-panel, .steps, .contact-inner, .footer-inner {
  max-width: var(--max);
  margin-inline: auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.035em; }
.section-head p { color: var(--muted); max-width: 38ch; font-size: 1.125rem; justify-self: end; }

/* Hero */

main > section.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2rem, 5vw, 4rem); }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .9rem .4rem .75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .18), 0 0 12px var(--cyan);
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
  max-width: 16ch;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.hero-ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .85rem; }

/* Network visual */

.network { width: 100%; max-width: 440px; justify-self: center; overflow: visible; }
.net-ring { fill: none; stroke: rgba(148, 163, 255, .12); stroke-width: 1; stroke-dasharray: 2 6; }
.net-ring-2 { stroke: rgba(148, 163, 255, .08); }
.net-links path { fill: none; stroke: rgba(165, 180, 252, .22); stroke-width: 1.5; }
.net-nodes circle { fill: #1B2452; stroke: rgba(165, 180, 252, .55); stroke-width: 1.5; }
.net-main, .net-stem {
  fill: none;
  stroke: url(#grad-brand);
  stroke-width: 15;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 18px rgba(124, 58, 237, .45));
}
.net-spark { fill: var(--cyan); filter: drop-shadow(0 0 16px rgba(34, 211, 238, .9)); }
.net-spark-halo { fill: none; stroke: rgba(34, 211, 238, .35); stroke-width: 1.5; }

@media (prefers-reduced-motion: no-preference) {
  .net-main, .net-stem { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.6, .1, .2, 1) .15s forwards; }
  .net-stem { animation-delay: 1s; animation-duration: .6s; }
  .net-core circle, .net-spark, .net-spark + circle { opacity: 0; animation: pop .5s ease forwards; }
  .net-core circle:nth-child(1) { animation-delay: .2s; }
  .net-core circle:nth-child(2) { animation-delay: .45s; }
  .net-core circle:nth-child(3) { animation-delay: .75s; }
  .net-core circle:nth-child(4) { animation-delay: 1.05s; }
  .net-core circle:nth-child(5) { animation-delay: 1.3s; }
  .net-spark, .net-spark + circle { animation-delay: 1.5s; }
  .net-links, .net-nodes, .net-ring { opacity: 0; animation: fade 1.2s ease 1.2s forwards; }
  .net-spark-halo { transform-origin: 200px 72px; opacity: 0; animation: halo 3s ease-out 1.9s infinite; }

  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fade { to { opacity: 1; } }
  @keyframes halo {
    0% { opacity: .9; transform: scale(.6); }
    100% { opacity: 0; transform: scale(1.5); }
  }
}

/* Time-zone band */

.tz {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(148, 163, 255, .07), rgba(148, 163, 255, .03));
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tz-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-bottom: 1.5rem;
}
.tz-clock { color: var(--muted); font-weight: 500; }
.tz-clock strong {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  margin-left: .25rem;
}
.tz-summary {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -.015em;
  color: #fff;
  max-width: 44ch;
}

.tz-rows { display: grid; gap: .65rem; }
.tz-row { display: grid; grid-template-columns: 8rem minmax(0, 1fr); align-items: center; gap: 1rem; }
.tz-label { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tz-label small {
  display: block;
  font-weight: 500;
  font-size: .8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.tz-track {
  position: relative;
  height: 2.25rem;
  border-radius: var(--radius-s);
  background-color: rgba(148, 163, 255, .05);
  background-image: repeating-linear-gradient(90deg,
    transparent 0 calc(100% / 24 - 1px),
    rgba(148, 163, 255, .08) calc(100% / 24 - 1px) calc(100% / 24));
  overflow: hidden;
}

.tz-seg { position: absolute; top: 0; bottom: 0; border-radius: var(--radius-s); transform-origin: left center; }
.tz-seg.team { background: var(--grad); }
.tz-seg.you { background: #2A3566; }
.tz-seg.overlap {
  top: 34%;
  bottom: 34%;
  margin-inline: 6px;
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(34, 211, 238, .8);
  z-index: 1;
}

.tz-needle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; z-index: 2; box-shadow: 0 0 8px rgba(255, 255, 255, .8); }

.tz-axis { position: relative; height: 1.25rem; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tz-axis span { position: absolute; transform: translateX(-50%); }
.tz-axis span:first-child { transform: none; }
.tz-axis span:last-child { transform: translateX(-100%); }

.tz-caption { margin-top: 1rem; font-size: .875rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .tz.is-ready .tz-seg { animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; }
  .tz.is-ready .tz-seg.overlap { animation-delay: .6s; }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Services */

.service-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, rgba(148, 163, 255, .07), rgba(148, 163, 255, .02));
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  transition: border-color .2s ease;
}
.service:hover { border-color: rgba(165, 180, 252, .38); }

.service-icon {
  width: 52px;
  height: 52px;
  padding: 11px;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  background: rgba(99, 102, 241, .14);
  border: 1px solid rgba(129, 140, 248, .3);
  fill: none;
  stroke: #A5B4FC;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service h3 { font-size: 1.5rem; letter-spacing: -.025em; margin-bottom: .75rem; }
.service > p { color: var(--muted); }

.tags { list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; border-top: 1px solid var(--border); }
.tags li {
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(148, 163, 255, .08);
  font-size: .85rem;
  font-weight: 600;
  color: #C7D2FE;
}

/* Horus */

.horus-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: calc(var(--radius-l) + 8px);
  border: 1px solid rgba(240, 190, 72, .22);
  background:
    radial-gradient(500px 320px at 0% 0%, rgba(240, 190, 72, .14), transparent 70%),
    linear-gradient(160deg, #111836, #0A0F28);
  overflow: hidden;
}

.horus-kicker { color: var(--gold); font-weight: 700; margin-bottom: 1.25rem; }
.horus h2 { display: flex; align-items: center; gap: 1rem; font-size: clamp(2.75rem, 7vw, 4.5rem); letter-spacing: -.04em; }
.horus h2 img { width: clamp(3.25rem, 6vw, 4.25rem); height: auto; background: var(--gold); border-radius: 50%; padding: .3rem; box-shadow: 0 0 40px rgba(240, 190, 72, .35); }
.horus-tagline { margin-top: .9rem; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 500; color: #fff; letter-spacing: -.015em; }
.horus-body { margin-top: 1.1rem; max-width: 48ch; color: var(--muted); font-size: 1.075rem; }
.horus-copy .btn { margin-top: 2rem; }

.horus-modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.horus-modules li {
  display: grid;
  gap: .35rem;
  align-content: start;
  padding: 1.35rem;
  min-height: 8.5rem;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(240, 190, 72, .14);
}
.horus-modules strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; }
.horus-modules span { color: var(--muted); font-size: .95rem; }

/* Process */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet), rgba(139, 92, 246, 0));
  opacity: .5;
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-2), var(--bg-2)), var(--grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 0 24px -4px rgba(99, 102, 241, .6);
}
.steps h3 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.steps p { color: var(--muted); }

/* Contact */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.035em; max-width: 12ch; }
.contact-copy > p { margin-top: 1.25rem; max-width: 40ch; font-size: 1.125rem; color: var(--muted); }
.contact-copy > p.contact-direct { margin-top: 2.25rem; color: var(--text); }
.contact-copy > p.contact-place { font-size: 1rem; }
.contact-email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #fff;
  overflow-wrap: anywhere;
  text-decoration: none;
  background: linear-gradient(90deg, var(--blue), var(--violet)) left bottom / 100% 2px no-repeat;
  padding-bottom: 2px;
}
.contact-email:hover { color: #C7D2FE; }

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(148, 163, 255, .08), rgba(148, 163, 255, .03));
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
}

.field { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .92rem; padding: 0; }
.field legend { margin-bottom: .55rem; }

.field input[type="text"], .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(7, 11, 31, .6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: .75rem .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .3); }
.field [aria-invalid="true"] { border-color: #F472B6; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span {
  display: inline-block;
  padding: .5rem .95rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.choices input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.choices input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.form .btn { justify-self: start; }
.form-note { font-size: .875rem; color: var(--muted); margin-top: -.5rem; }
.form-error { color: #F9A8D4; font-weight: 700; font-size: .95rem; }

/* Footer */

.footer { padding: 2.5rem var(--gutter); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; color: var(--muted); font-size: .95rem; }
.footer-tagline { flex: 1; }

/* Responsive */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .network { max-width: 300px; justify-self: start; order: -1; }
  .section-head, .horus-panel, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; }
  .section-head p { justify-self: start; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
  .steps::before { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand span { font-size: 1.05rem; }
  .btn-small { padding: .5rem .9rem; }
  .network { max-width: 200px; }
  .tz-row { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .tz-row .tz-label:empty { display: none; }
  .horus-modules { grid-template-columns: minmax(0, 1fr); }
  .horus-modules li { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-tagline { flex-basis: 100%; order: 3; }
}

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