/* ============ Tokens ============ */
:root {
  --bg: #0a0a0f;
  --bg-soft: #11111a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f2f7;
  --text-dim: #9a9aa8;
  --accent: #8b7cf6;
  --accent-2: #5eead4;
  --accent-3: #f0abfc;
  --radius: 22px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

::selection { background: rgba(139, 124, 246, 0.4); }

/* ============ Background orbs ============ */
.orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  filter: blur(90px);
}
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.32;
  animation: drift 24s ease-in-out infinite alternate;
}
.orb-1 { width: 48vw; height: 48vw; background: #4c3d9e; top: -14vw; left: -10vw; }
.orb-2 { width: 38vw; height: 38vw; background: #134e4a; top: 32vh; right: -12vw; animation-delay: -8s; }
.orb-3 { width: 30vw; height: 30vw; background: #701a55; bottom: -10vw; left: 22vw; animation-delay: -16s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(5vw, 6vh, 0) scale(1.18); }
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 6vw, 72px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-brand span { color: var(--accent); }
.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.nav-brand:hover .brand-mark { transform: rotate(180deg); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
}
.nav-cta:hover { background: var(--surface-strong); }

/* ============ Hero ============ */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(90px, 16vh, 170px) 24px clamp(70px, 12vh, 130px);
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: rgba(94, 234, 212, 0.06);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-3), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--text-dim);
  font-size: clamp(17px, 2vw, 19px);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #6d5ce6);
  color: #fff;
  box-shadow: 0 8px 30px rgba(139, 124, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(139, 124, 246, 0.5); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-strong); transform: translateY(-2px); }

/* ============ Sections ============ */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin: 14px auto 0;
  max-width: 560px;
}

/* ============ App cards ============ */
.apps {
  max-width: 1020px;
  margin: 0 auto;
  padding: 30px 24px 60px;
}
.apps .section-sub { margin-bottom: 56px; }

.app-card {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.app-card:hover { border-color: rgba(139, 124, 246, 0.4); transform: translateY(-3px); }

.app-icon-wrap { flex-shrink: 0; }
.app-icon-wrap img {
  width: clamp(88px, 10vw, 120px);
  height: auto;
  border-radius: 26.5%;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.app-body h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.app-fullname { font-size: 16px; font-weight: 400; color: var(--text-dim); }
.app-tagline {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 15px;
  margin-top: 2px;
}
.app-desc { color: var(--text-dim); margin-top: 14px; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 18px;
}
.platforms li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 12px;
  border-radius: 999px;
}

.store-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store-btn {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.store-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); }
.store-btn-ghost { background: transparent; color: var(--text-dim); }
.store-btn-ghost:hover { color: var(--text); }

/* ============ Contact ============ */
.contact { padding: 50px 24px 110px; }
.contact-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 52px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.contact-card form { margin-top: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.2);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239a9aa8' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Honeypot stays off-screen for humans */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit { width: 100%; margin-top: 6px; }
.btn-submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.form-status { margin-top: 16px; text-align: center; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--accent-2); }
.form-status.err { color: #fda4af; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14.5px;
}
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--text); }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .app-card { flex-direction: column; align-items: center; text-align: center; }
  .platforms, .store-links { justify-content: center; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .nav-links a:not(.nav-cta) { display: none; }
}
