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

:root {
  --bg: #07081a;
  --surface: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --accent: #6366f1;
  --cyan: #22d3ee;
  --text: #f0f4ff;
  --muted: #576a9e;
}

html {
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  background-image: radial-gradient(
    ellipse 55% 55% at 78% 20%,
    rgba(99, 102, 241, 0.1),
    transparent
  );
  color: var(--text);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ── NAV ──────────────────────────────────────────────────────── */

nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-r {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}
.nav-link:hover {
  color: var(--text);
}

.nav-cta {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.55rem 1.35rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

/* ── HERO ─────────────────────────────────────────────────────── */

.hero {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 3rem;
  position: relative;
  overflow: hidden;
}

/* subtle background grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* ── COPY ─────────────────────────────────── */

.copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 1.5px;
  background: var(--cyan);
  border-radius: 99px;
}

h1 {
  font-size: clamp(2.8rem, 4.6vw, 5.4rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.grad {
  background: linear-gradient(115deg, var(--accent) 10%, var(--cyan) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 27rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: var(--accent);
}

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

.btn-primary {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border: none;
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}
.btn-ghost:hover {
  color: var(--text);
}

.stats {
  display: flex;
  gap: 2.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-n {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-l {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── VISUAL ────────────────────────────────── */

.vis {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  perspective: 900px;
}

.arch {
  width: 96%;
  max-width: 700px;
  height: 58vh;
  height: 58dvh;
  border-radius: 20px;
  background: rgba(4, 6, 24, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.22);
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.07),
    0 0 50px rgba(34, 211, 238, 0.07),
    0 0 120px rgba(99, 102, 241, 0.1),
    inset 0 0 80px rgba(99, 102, 241, 0.04);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.arch:hover {
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.18),
    0 0 60px rgba(34, 211, 238, 0.2),
    0 0 140px rgba(99, 102, 241, 0.26),
    inset 0 0 80px rgba(99, 102, 241, 0.08);
}

/* animated shimmer line along the top edge */
.arch::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  right: -100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 211, 238, 0) 20%,
    rgba(34, 211, 238, 0.9) 45%,
    rgba(139, 92, 246, 0.9) 55%,
    rgba(34, 211, 238, 0) 80%,
    transparent 100%
  );
  animation: scan-line 4s linear infinite;
  z-index: 4;
}
@keyframes scan-line {
  0% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(60%);
  }
}

/* subtle inner top-glow matching the bar */
.arch::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.07) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* window title bar */
.arch-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 7px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(99, 102, 241, 0.04);
  z-index: 3;
  flex-shrink: 0;
}
.arch-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.arch-dot:nth-child(1) {
  background: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.5);
}
.arch-dot:nth-child(2) {
  background: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.5);
}
.arch-dot:nth-child(3) {
  background: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}
.arch-label {
  margin-left: auto;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(99, 102, 241, 0.45);
}

/* HUD corner brackets */
.arch-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  opacity: 0.55;
}
.arch-corner svg {
  display: block;
}
.arch-corner.tl {
  top: 48px;
  left: 12px;
}
.arch-corner.tr {
  top: 48px;
  right: 12px;
  transform: scaleX(-1);
}
.arch-corner.bl {
  bottom: 12px;
  left: 12px;
  transform: scaleY(-1);
}
.arch-corner.br {
  bottom: 12px;
  right: 12px;
  transform: scale(-1, -1);
}

/* Logo reveal on h1 hover */
.arch-logo-reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 24, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.arch-logo-reveal.visible {
  opacity: 1;
}
.arch-logo-img {
  width: 81%;
  max-width: 416px;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.45))
    drop-shadow(0 0 60px rgba(99, 102, 241, 0.35));
  animation: logo-float 3.8s ease-in-out infinite;
}
@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 3D globe canvas */
#globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* animated orb inside arch */
.orb {
  z-index: 2;
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(34, 211, 238, 0.7) 45%,
    rgba(99, 102, 241, 0.5) 100%
  );
  filter: blur(3px);
  opacity: 0.65;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* floating sparkle stars */
.sp {
  position: absolute;
  pointer-events: none;
  animation: float var(--dur, 4s) ease-in-out var(--del, 0s) infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.sp.s1 {
  top: 14%;
  right: 5%;
  --dur: 3.8s;
  --del: 0s;
}
.sp.s2 {
  top: 42%;
  left: -2%;
  --dur: 5.1s;
  --del: 0.9s;
}
.sp.s3 {
  bottom: 22%;
  right: 8%;
  --dur: 4.4s;
  --del: 1.6s;
}
.sp.s4 {
  top: 7%;
  left: 28%;
  --dur: 3.3s;
  --del: 0.4s;
}

/* steppe motto */
.motto {
  position: absolute;
  bottom: 2.2rem;
  right: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}
.motto-art {
  width: 72px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.85;
}
.motto-text {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
  max-width: 14rem;
  font-style: italic;
}

/* location pill */
.loc {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}
.loc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
  animation: ping 2.4s ease-in-out infinite;
}
@keyframes ping {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
  }
  60% {
    box-shadow: 0 0 0 9px rgba(34, 211, 238, 0);
  }
}

/* ── DIALOGS ──────────────────────────────────────────────────── */

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.overlay.open {
  display: flex;
}

.dialog {
  background: #0b0d20;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  animation: dlg-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dlg-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dialog-x {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
  font-family: inherit;
}
.dialog-x:hover {
  color: var(--text);
  border-color: var(--accent);
}

.dialog h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.033em;
  margin-bottom: 0.5rem;
}
.dialog .dsub {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}
.field input.err,
.field textarea.err {
  border-color: #f43f5e;
  animation: shake 0.28s ease;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.btn-full {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border: none;
  border-radius: 9999px;
  padding: 0.9rem;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-full:hover {
  opacity: 0.86;
}

.mail-hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.mail-hint a {
  color: var(--cyan);
  text-decoration: none;
}
.mail-hint a:hover {
  text-decoration: underline;
}

.success {
  display: none;
  text-align: center;
  padding: 0.75rem 0;
}
.success .icon {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  color: var(--cyan);
}
.success h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.success p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ── TEAM ──────────────────────────────────── */

.team {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.person-svg {
  width: 58px;
  height: auto;
  animation: working 2.4s ease-in-out var(--pd, 0s) infinite;
}

@keyframes working {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  20% {
    transform: translateY(-4px) rotate(-1deg);
  }
  50% {
    transform: translateY(-2px) rotate(1deg);
  }
  70% {
    transform: translateY(-5px) rotate(-0.5deg);
  }
}

.arm-l {
  transform-origin: 18px 34px;
  animation: type-l 0.5s ease-in-out var(--pd, 0s) infinite alternate;
}
.arm-r {
  transform-origin: 42px 34px;
  animation: type-r 0.5s ease-in-out var(--pd, 0s) infinite alternate;
}
@keyframes type-l {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-8deg);
  }
}
@keyframes type-r {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(8deg);
  }
}

.arm-point {
  transform-origin: 42px 30px;
  animation: point 1.8s ease-in-out var(--pd, 0s) infinite;
}
@keyframes point {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-15deg);
  }
}

.arm-phone {
  transform-origin: 42px 30px;
  animation: phone-nod 2s ease-in-out var(--pd, 0s) infinite;
}
@keyframes phone-nod {
  0%,
  100% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(-8deg);
  }
  60% {
    transform: rotate(5deg);
  }
}

.person-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── TEAM ───────────────────────────────────────────────────────── */

.team {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.person-svg {
  width: 58px;
  height: auto;
  animation: working 2.4s ease-in-out var(--pd, 0s) infinite;
}

@keyframes working {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  20% {
    transform: translateY(-4px) rotate(-1deg);
  }
  50% {
    transform: translateY(-2px) rotate(1deg);
  }
  70% {
    transform: translateY(-5px) rotate(-0.5deg);
  }
}

.arm-l {
  transform-origin: 18px 34px;
  animation: type-l 0.5s ease-in-out var(--pd, 0s) infinite alternate;
}
.arm-r {
  transform-origin: 42px 34px;
  animation: type-r 0.5s ease-in-out var(--pd, 0s) infinite alternate;
}
@keyframes type-l {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-8deg);
  }
}
@keyframes type-r {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(8deg);
  }
}

.arm-point {
  transform-origin: 42px 30px;
  animation: point 1.8s ease-in-out var(--pd, 0s) infinite;
}
@keyframes point {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-15deg);
  }
}

.arm-phone {
  transform-origin: 42px 30px;
  animation: phone-nod 2s ease-in-out var(--pd, 0s) infinite;
}
@keyframes phone-nod {
  0%,
  100% {
    transform: rotate(0deg);
  }
  40% {
    transform: rotate(-8deg);
  }
  60% {
    transform: rotate(5deg);
  }
}

.person-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* about grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.acard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
}
.acard .n {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.acard .l {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */

@media (max-width: 800px) {
  body {
    overflow: auto;
    height: auto;
  }

  nav {
    padding: 1.2rem 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    padding: 5.5rem 1.5rem 3rem;
    gap: 2.5rem;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 3.75rem);
  }

  .vis {
    height: 60vw;
    min-height: 280px;
  }
  .arch {
    max-width: 90vw;
    height: 100%;
  }

  .loc {
    bottom: 1rem;
    left: 1.5rem;
  }
  .sp.s2,
  .sp.s4 {
    display: none;
  }

  .motto {
    position: relative;
    bottom: auto;
    right: auto;
    justify-content: center;
    padding: 0.5rem 1.5rem 1rem;
  }
}
