:root {
  --void: #05060b;
  --surface: #0b0e1a;
  --line: rgba(237, 239, 247, 0.1);
  --text: #edeff7;
  --muted: #8b93b0;
  --violet: #7c5cff;
  --cyan: #4fd8eb;
  --display: "Syne", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(124, 92, 255, 0.4); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- film grain ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(rgba(5, 6, 11, 0.85), rgba(5, 6, 11, 0));
  transition: background 0.3s;
}

.nav.scrolled {
  background: rgba(5, 6, 11, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(237, 239, 247, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-mark { width: 26px; height: 26px; }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.nav-cta:hover {
  color: var(--text);
  border-color: rgba(79, 216, 235, 0.5);
  background: rgba(79, 216, 235, 0.06);
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem clamp(1.25rem, 4vw, 3rem) 4rem;
}

.aurora { position: absolute; inset: 0; z-index: 0; }

.blob {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.blob-a {
  background: radial-gradient(circle, rgba(124, 92, 255, 0.65), transparent 65%);
  top: -25%;
  left: -8%;
  animation: drift-a 26s ease-in-out infinite alternate;
}

.blob-b {
  background: radial-gradient(circle, rgba(79, 216, 235, 0.45), transparent 65%);
  bottom: -30%;
  right: -15%;
  animation: drift-b 32s ease-in-out infinite alternate;
}

.blob-c {
  background: radial-gradient(circle, rgba(163, 92, 255, 0.22), transparent 60%);
  top: 30%;
  left: 35%;
  animation: drift-c 40s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to { transform: translate3d(14vw, 12vh, 0) scale(1.15); }
}

@keyframes drift-b {
  to { transform: translate3d(-12vw, -10vh, 0) scale(0.9); }
}

@keyframes drift-c {
  to { transform: translate3d(-10vw, 8vh, 0) scale(1.2); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.4rem;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.3vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.grad {
  background: linear-gradient(92deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  background: linear-gradient(92deg, var(--violet), #5f7bff);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.4), 0 12px 40px -8px rgba(124, 92, 255, 0.55);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.6), 0 18px 50px -8px rgba(124, 92, 255, 0.75);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(79, 216, 235, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 216, 235, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(79, 216, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 216, 235, 0); }
}

/* ---------- the levels stack ---------- */

.stack-scene {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.stack {
  position: relative;
  width: 250px;
  height: 420px;
  transform-style: preserve-3d;
  transform: rotateX(52deg) rotateZ(32deg);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotateX(52deg) rotateZ(32deg) translateZ(0); }
  50% { transform: rotateX(52deg) rotateZ(32deg) translateZ(18px); }
}

.pane {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  border: 1px solid rgba(237, 239, 247, 0.14);
  background: linear-gradient(135deg, rgba(237, 239, 247, 0.07), rgba(237, 239, 247, 0.02));
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pane-1 {
  transform: translateZ(90px);
  box-shadow: 0 0 60px -10px rgba(124, 92, 255, 0.45), inset 0 0 30px rgba(124, 92, 255, 0.06);
  border-color: rgba(124, 92, 255, 0.45);
}

.pane-2 { transform: translateZ(30px); opacity: 0.8; }

.pane-3 {
  transform: translateZ(-30px);
  opacity: 0.55;
  box-shadow: 0 0 50px -5px rgba(79, 216, 235, 0.2);
}

.ui-bar {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: rgba(237, 239, 247, 0.16);
}

.w-40 { width: 40%; }
.w-55 { width: 55%; }
.w-70 { width: 70%; }

.ui-dot {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  opacity: 0.9;
}

.ui-block {
  display: block;
  height: 70px;
  border-radius: 12px;
  background: rgba(237, 239, 247, 0.08);
}

.ui-row { display: flex; gap: 0.7rem; }

.ui-row i {
  flex: 1;
  height: 46px;
  border-radius: 10px;
  background: rgba(237, 239, 247, 0.1);
}

.ui-cta {
  display: block;
  height: 38px;
  border-radius: 19px;
  margin-top: auto;
  background: linear-gradient(92deg, rgba(124, 92, 255, 0.75), rgba(79, 216, 235, 0.55));
}

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

.section {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.25rem, 4vw, 3rem);
  scroll-margin-top: 3.5rem;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 2.6rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(237, 239, 247, 0.04), rgba(237, 239, 247, 0.01));
  padding: 1.8rem 1.6rem;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.card:hover {
  border-color: rgba(124, 92, 255, 0.45);
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.08), rgba(237, 239, 247, 0.02));
  transform: translateY(-4px);
}

.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- contact ---------- */

.contact-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(11, 14, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 0 80px -30px rgba(124, 92, 255, 0.35);
}

.contact-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
}

.email {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 2.1rem);
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(92deg, var(--violet), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.35s;
  overflow-wrap: anywhere;
}

.email:hover { background-size: 100% 2px; }

.copy {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}

.copy:hover { color: var(--text); border-color: rgba(79, 216, 235, 0.5); }

.copy.copied { color: var(--cyan); border-color: rgba(79, 216, 235, 0.6); }

.contact-note { color: var(--muted); font-size: 0.92rem; margin-top: 1.4rem; }

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

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.2rem clamp(1.25rem, 4vw, 3rem) 2.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-domain { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; }

/* ---------- reveals ---------- */

.load-reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: translateY(0); }

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

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }

  .stack-scene {
    position: absolute;
    right: -150px;
    top: 44%;
    margin-top: -210px;
    z-index: -1;
    animation: none;
    opacity: 0.16;
    transform: scale(0.85);
  }

  .hero { padding-top: 7rem; }

  .cards { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .blob, .stack, .pulse { animation: none; }

  .load-reveal { animation: none; opacity: 1; transform: none; }

  .reveal { transition: none; opacity: 1; transform: none; }

  .btn, .card, .email { transition: none; }
}
