:root {
  --bg: #050b16;
  --ink: #eaf6ff;
  --ink-2: #a8bfd6;
  --ink-3: #6f87a1;
  --ice: #9fe6ff;
  --ice-deep: #6cc6ff;
  --lilac: #b3a8ff;
  --line: rgba(170, 220, 255, 0.12);
  --line-2: rgba(170, 220, 255, 0.24);
  --glass: rgba(12, 24, 42, 0.46);
  --grad: linear-gradient(100deg, #f4fdff 0%, #a6e9ff 35%, #86c4ff 62%, #b9adff 85%, #f4fdff 100%);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; }
.nowrap { white-space: nowrap; }
a { color: inherit; }
::selection { background: rgba(159, 230, 255, 0.3); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 96px; }

/* ---------- background layers ---------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}
.has-3d .scene { opacity: 1; }
.scene canvas { width: 100%; height: 100%; display: block; }
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(3, 7, 15, 0.7) 100%);
}

.burst {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.announce, .nav, main, .footer { position: relative; z-index: 2; }

/* ---------- announcement + nav ---------- */

.announce {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #c8f2ff, #a8dcff 50%, #cfc6ff);
  color: #061424;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.announce-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announce svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.announce:hover svg { transform: translateX(3px); }

.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  margin-top: 16px;
  padding: 0 16px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 24, 42, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: background 0.3s, border-color 0.3s;
}
.scrolled .nav-inner { background: rgba(8, 17, 31, 0.78); border-color: var(--line-2); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  color: var(--ice);
  font-weight: 600;
  text-decoration: none;
}
.nav-cta-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #e6f9ff, #93d6ff);
  color: #04121f;
  transition: transform 0.25s var(--ease-out);
}
.nav-cta:hover .nav-cta-icon { transform: rotate(45deg); }
.nav-cta svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */

.hero {
  min-height: calc(100svh - 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(40px, 9vh, 104px) 16px 0;
  text-align: center;
}
.hero-copy { max-width: 1000px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 24, 42, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #8ff0ff;
  box-shadow: 0 0 0 0 rgba(143, 240, 255, 0.6);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(143, 240, 255, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(143, 240, 255, 0); }
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; }

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.grad {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: frost-shimmer 9s ease-in-out infinite alternate;
}
@keyframes frost-shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.lead {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, border-color 0.25s, background 0.25s;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: linear-gradient(180deg, #e8faff, #9edbff);
  color: #04121f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 32px -10px rgba(120, 210, 255, 0.65);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 14px 40px -10px rgba(120, 210, 255, 0.85);
}
.btn-ghost {
  background: rgba(10, 20, 36, 0.4);
  border-color: var(--line-2);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(159, 230, 255, 0.55); transform: translateY(-1px); }

.hero-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 340px;
}
.fallback-mango {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(40vh, 62vw);
  height: min(40vh, 62vw);
  opacity: 0;
  transition: opacity 1s ease;
  filter: drop-shadow(0 0 48px rgba(120, 210, 255, 0.55));
  animation: float 7s ease-in-out infinite;
}
.no-3d .fallback-mango { opacity: 1; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .hero {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: left;
  }
  .hero-copy { flex: 1 1 56%; padding-bottom: 6vh; }
  .hero h1 { font-size: clamp(3.4rem, 6vw, 5.6rem); }
  .lead { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-stage { flex: 1 1 44%; align-self: stretch; min-height: 0; }
}

/* hero entrance */
.hero-copy > * { animation: rise 1s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- sections ---------- */

.section { padding: clamp(88px, 14vh, 160px) 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-head { max-width: 660px; margin-bottom: 48px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--ice);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice));
}
h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.section-head p {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.glass,
.card,
.stats,
.how-list,
.mail-card {
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* what we do */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 24px;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(150, 225, 255, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(160, 230, 255, 0.18), rgba(140, 150, 255, 0.06));
  color: var(--ice);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--ink-2); line-height: 1.6; }

/* statement */
.statement-title {
  max-width: 920px;
  font-size: clamp(2.3rem, 5.8vw, 4.75rem);
  line-height: 1.02;
}
.statement-text {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 64px 0 0;
  border-radius: 24px;
  overflow: hidden;
}
.stat { padding: 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  letter-spacing: -0.04em;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat dd { margin: 8px 0 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }

/* how we work */
.how {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.how-head { position: sticky; top: 120px; margin-bottom: 0; }
.how-list {
  list-style: none;
  margin: 0;
  padding: 6px 32px;
  border-radius: 28px;
}
.how-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.how-list li:first-child { border-top: 0; }
.how-num {
  padding-top: 5px;
  color: var(--ice);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.how-list h3 { margin: 0 0 8px; font-size: 1.32rem; letter-spacing: -0.02em; }
.how-list p { margin: 0; color: var(--ink-2); line-height: 1.6; }

/* contact */
.clock {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem !important;
}
.clock time { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.mail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px 64px 24px 24px;
  border-radius: 22px;
  transition: border-color 0.3s;
}
.mail-card:hover { border-color: var(--line-2); }
.mail-main {
  grid-column: 1 / -1;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(130, 200, 255, 0.14), transparent 60%),
    var(--glass);
}
.mail-label { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.mail-addr {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.mail-addr:hover { color: var(--ice); }
.mail-main .mail-addr {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.mail-note { margin: 0; color: var(--ink-3); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

.copy-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.copy-icon:hover { color: var(--ice); border-color: var(--line-2); }
.copy-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- footer ---------- */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(5, 11, 22, 0.4), rgba(5, 11, 22, 0.9));
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { margin: 0; font-family: var(--font-display); font-weight: 600; }
.footer-legal { margin: 2px 0 0; color: var(--ink-3); font-size: 0.82rem; letter-spacing: 0.05em; }
.footer-meta p { margin: 0; color: var(--ink-3); font-size: 0.9rem; line-height: 1.8; text-align: right; }
.footer-meta a { color: var(--ink-2); text-decoration: none; }
.footer-meta a:hover { color: var(--ice); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(14, 28, 48, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; gap: 8px; }
  .how-head { position: static; margin-bottom: 32px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .cards { grid-template-columns: 1fr; }
  .footer-meta p { text-align: left; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav { padding: 0 12px; }
  .brand { font-size: 16px; }
  .card { padding: 24px; }
  .mail-grid { grid-template-columns: 1fr; }
  .how-list { padding: 4px 20px; }
  .how-list li { grid-template-columns: 40px 1fr; }
  .stat { padding: 22px 18px; }
  .hero-stage { min-height: 300px; }
}

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