@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg-base: #0A0F1C;
  --bg-surface: #0D1526;
  --bg-card: rgba(255, 255, 255, 0.03);
  --blue: #2563EB;
  --blue-light: #3B82F6;
  --cyan: #00C4FF;
  --gradient: linear-gradient(135deg, #2563EB, #00C4FF);
  --gradient-text: linear-gradient(135deg, #60A5FA, #00C4FF);
  --text-primary: #FFFFFF;
  --text-secondary: #7A90B8;
  --text-muted: #4A5E7A;
  --border: rgba(37, 99, 235, 0.18);
  --border-hover: rgba(0, 196, 255, 0.3);
  --glow: 0 0 40px rgba(37, 99, 235, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(0, 196, 255, 0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { color: var(--text-secondary); }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 13, 26, 0.8);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 196, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(0, 196, 255, 0.08);
  border-color: var(--cyan);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.card:hover::before { opacity: 1; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-blue {
  background: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-cyan {
  background: rgba(0, 196, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 196, 255, 0.2);
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Section ── */
section { position: relative; z-index: 1; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header p { margin-top: 16px; max-width: 540px; font-size: 1.05rem; }
.section-header.centered p { margin: 16px auto 0; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Icon Box ── */
.icon-box {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 1.4rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  margin-top: 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Scroll Animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}

.page-hero p {
  font-size: 1.1rem;
  margin-top: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient);
  z-index: 200;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Hamburger → X ── */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Typewriter cursor ── */
.typewriter-wrap { display: inline; }
#typewriter { display: inline; }
.cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--cyan);
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Floating Orbs ── */
.orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: float 12s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: #2563EB; top: -100px; left: -100px; animation-duration: 14s; }
.orb-2 { width: 350px; height: 350px; background: #00C4FF; top: 30%; right: -80px; animation-duration: 10s; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: #2563EB; bottom: 0; left: 30%; animation-duration: 16s; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── iPhone Mockup ── */
.iphone-mockup {
  position: relative;
  width: 240px;
  margin: 0 auto;
  flex-shrink: 0;
}
.iphone-frame {
  position: relative;
  width: 240px;
  background: #0A0F1C;
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  padding: 14px 10px;
  overflow: hidden;
}
.iphone-notch {
  width: 80px; height: 22px;
  background: #0A0F1C;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 10px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top: none;
  position: relative; z-index: 2;
}
.iphone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 9/19.5;
}
.iphone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.iphone-screen-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a2a4a 0%, #0a1628 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
.iphone-screen-placeholder span {
  font-size: 2rem;
}
.iphone-screen-placeholder p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 0 12px;
}
.iphone-btn-side {
  position: absolute;
  right: -3px;
  top: 80px;
  width: 3px; height: 60px;
  background: rgba(255,255,255,0.1);
  border-radius: 0 2px 2px 0;
}
.iphone-btn-vol-up {
  position: absolute;
  left: -3px; top: 70px;
  width: 3px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px 0 0 2px;
}
.iphone-btn-vol-down {
  position: absolute;
  left: -3px; top: 114px;
  width: 3px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px 0 0 2px;
}

/* ── Legal Pages ── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}
.legal-content h2 { font-size: 1.4rem; margin: 40px 0 12px; color: var(--text-primary); }
.legal-content h3 { font-size: 1rem; margin: 24px 0 8px; color: var(--text-secondary); font-weight: 600; }
.legal-content p { font-size: 0.92rem; line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; margin-bottom: 12px; }
.legal-content ul li { font-size: 0.92rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 6px; }
.legal-content a { color: var(--blue-light); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 40px;
}

/* ── Footer Legal Links ── */
.footer-inner {
  align-items: flex-start !important;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── 404 Page ── */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative; z-index: 1;
}
.not-found-inner { max-width: 520px; }
.not-found-code {
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.not-found h2 { margin-bottom: 16px; }
.not-found p { margin-bottom: 36px; }
.not-found-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 4px; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(10, 15, 28, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .nav-links.open a { padding: 12px 16px; border-radius: 8px; width: 100%; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column !important; text-align: center; align-items: center !important; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-col { align-items: center; }
}
