/* ── Reset ──────────────────────────────────────────────── */

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

/* ── Tokens ────────────────────────────────────────────── */

:root {
  --black: #000;
  --white: #fff;
  --text: #e0e6ef;
  --text-muted: #6b7a94;
  --text-dim: #3a4558;
  --accent: #69e6fc;
  --accent-deep: #1e5680;
  --accent-navy: #052455;
  --border: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* ── Base ───────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(105, 230, 252, 0.25);
  color: var(--white);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ── Fixed nav ─────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 4vw, 48px);
  transition: all 0.6s var(--ease);
}

.nav-scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(105, 230, 252, 0.2));
  transition: opacity 0.3s;
}

.nav-logo-img:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.4s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ── Gradient orbs (animated background) ───────────────── */

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

/* Hero orbs */
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30, 86, 128, 0.5) 0%, transparent 70%);
  top: -10%; left: 10%;
  animation: float-1 18s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(105, 230, 252, 0.15) 0%, transparent 70%);
  top: 20%; right: -5%;
  animation: float-2 22s ease-in-out infinite;
}
.orb-3 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(5, 36, 85, 0.6) 0%, transparent 70%);
  bottom: -20%; left: 30%;
  animation: float-3 20s ease-in-out infinite;
}
.orb-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(105, 230, 252, 0.1) 0%, transparent 70%);
  top: 60%; left: -5%;
  animation: float-4 16s ease-in-out infinite;
}
.orb-5 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30, 86, 128, 0.3) 0%, transparent 70%);
  top: 10%; right: 20%;
  animation: float-5 24s ease-in-out infinite;
}

/* App section orbs */
.orb-cde-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30, 86, 128, 0.3) 0%, transparent 70%);
  top: 10%; right: -10%;
  animation: float-1 20s ease-in-out infinite;
}
.orb-cde-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(105, 230, 252, 0.08) 0%, transparent 70%);
  bottom: 10%; left: -5%;
  animation: float-2 18s ease-in-out infinite;
}
.orb-gm-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  top: 5%; left: -10%;
  animation: float-3 20s ease-in-out infinite;
}
.orb-gm-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, transparent 70%);
  bottom: 10%; right: -5%;
  animation: float-4 22s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.1); }
  66% { transform: translate(30px, -40px) scale(0.9); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -20px) scale(1.08); }
}
@keyframes float-4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 40px); }
}
@keyframes float-5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, 50px) scale(1.05); }
  66% { transform: translate(-40px, -10px) scale(0.95); }
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 30%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  will-change: transform, opacity;
}

.hero-logo {
  height: clamp(44px, 7vw, 72px);
  width: auto;
  margin-bottom: clamp(2rem, 5vh, 4rem);
  filter: drop-shadow(0 0 60px rgba(105, 230, 252, 0.2));
  animation: logo-enter 1.2s var(--ease) both;
}

@keyframes logo-enter {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: title-enter 1.4s var(--ease) 0.2s both;
}

@keyframes title-enter {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title-outline,
.hero-title-solid {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero-title-outline {
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 400;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-title-solid {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  margin-top: -0.05em;
}

.amp {
  font-weight: 300;
  opacity: 0.4;
  font-style: italic;
}

.hero-scroll-hint {
  position: absolute;
  bottom: -30vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: scroll-hint 1.6s var(--ease) 0.8s both;
}

@keyframes scroll-hint {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--text-dim), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ── App showcases ─────────────────────────────────────── */

.apps {
  position: relative;
  z-index: 2;
}

.app-showcase {
  position: relative;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
  scroll-snap-align: start;

  /* entrance */
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s var(--ease);
}

.app-showcase.in-view {
  opacity: 1;
  transform: translateY(0);
}

.app-showcase-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.6;
}

.app-showcase-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(6rem, 12vh, 10rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

@media (max-width: 800px) {
  .app-showcase-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
}

.app-showcase-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.app-showcase-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.app-showcase-logo.cde-logo {
  height: clamp(50px, 8vw, 70px);
  width: auto;
  filter: drop-shadow(0 0 30px rgba(105, 230, 252, 0.15));
}

.app-showcase-logo.gm-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.85);
}

.app-showcase-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ── Outlined + solid title treatment ──────────────────── */

.title-outline,
.title-solid {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.title-outline {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 400;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.title-solid {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
}

.app-showcase-title {
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

/* ── Features list ─────────────────────────────────────── */

.app-showcase-features {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.6s var(--ease);

  /* entrance */
  opacity: 0;
  transform: translateX(-20px);
}

.feature-item.in-view {
  opacity: 1;
  transform: translateX(0);
}

.feature-item:first-child {
  border-top: 1px solid var(--border);
}

.feature-item:hover {
  padding-left: 8px;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.6;
  min-width: 24px;
  padding-top: 2px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.feature-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Stagger feature items */
.feature-item:nth-child(1) { transition-delay: 0.05s; }
.feature-item:nth-child(2) { transition-delay: 0.12s; }
.feature-item:nth-child(3) { transition-delay: 0.19s; }
.feature-item:nth-child(4) { transition-delay: 0.26s; }

/* ── CTAs ──────────────────────────────────────────────── */

.app-showcase-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.6s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(105, 230, 252, 0.2);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary svg {
  transition: transform 0.4s var(--ease);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.platform-tag {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
}

/* ── Contact ───────────────────────────────────────────── */

.contact {
  position: relative;
  z-index: 2;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  scroll-snap-align: start;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);

  /* entrance */
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease);
}

.contact-inner.in-view {
  opacity: 1;
  transform: translateY(0);
}

.contact-header {
  margin-bottom: 3rem;
}

.contact-title {
  margin-bottom: 12px;
}

.contact-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  background: transparent;
  transition: border-color 0.4s var(--ease);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* Override browser autofill styling */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px #000 inset;
  border-bottom-color: var(--border);
  transition: background-color 5000s ease-in-out 0s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact .btn-primary {
  margin-top: 8px;
}

/* ── Footer ────────────────────────────────────────────── */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(24px, 4vw, 48px);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 600px) {
  .nav-links {
    gap: 20px;
  }

  .hero-title-outline { font-size: 1.6rem; }
  .hero-title-solid { font-size: 2.2rem; }

  .app-showcase {
    height: 100dvh;
    scroll-snap-align: start;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
