@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Raleway:wght@200;300;400;600;700&display=swap');

:root {
  --bg: #07071a;
  --bg2: #0c0c24;
  --card: rgba(255,255,255,0.035);
  --card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --teal: #00c8b8;
  --teal-dim: rgba(0,200,184,0.15);
  --purple: #7c5cfc;
  --purple-dim: rgba(124,92,252,0.15);
  --white: #ffffff;
  --text: #c4cce0;
  --muted: #5e6a82;
  --grad: linear-gradient(135deg, var(--teal), var(--purple));
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(7,7,26,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 200;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.logo span {
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1px;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a.active {
  color: var(--teal);
}

.nav-cta {
  padding: 10px 22px !important;
  background: var(--teal);
  color: var(--bg) !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: #00dfcd !important;
  color: var(--bg) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,200,184,0.35);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── TYPOGRAPHY ──────────────────────── */
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; }

.display {
  font-size: clamp(3.2rem, 6.5vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -3px;
}

.heading {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--teal);
  margin-bottom: 18px;
}
.label::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

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

/* ── BUTTONS ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--teal);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::after { left: 100%; }
.btn-primary:hover {
  background: #00dfcd;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,200,184,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(0,200,184,0.4);
  color: var(--teal);
  transform: translateY(-2px);
  background: rgba(0,200,184,0.05);
}

/* ── CARDS ───────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,184,0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.card:hover {
  border-color: rgba(0,200,184,0.2);
  transform: translateY(-5px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,200,184,0.15), 0 0 60px rgba(0,200,184,0.04);
  background: var(--card-hover);
}

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

/* ── BADGES ──────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.badge-live { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.badge-dev { background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(0,200,184,0.25); }
.badge-soon { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(124,92,252,0.25); }

/* ── LAYOUT ──────────────────────────── */
section { padding: 100px 36px; }
.container { max-width: 1200px; margin: 0 auto; }

/* Page hero for inner pages */
.page-hero {
  padding: 160px 36px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% -10%, rgba(0,200,184,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Section divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 40%, var(--border) 60%, transparent);
  margin: 0 36px;
}

/* Fade in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── FOOTER ──────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 52px 36px 36px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo { font-size: 1.2rem; }

.footer-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h5 {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }

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

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── CUSTOM CURSOR ──────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #00c8b8;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0,200,184,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-ring.is-hovering {
  width: 52px;
  height: 52px;
  border-color: rgba(0,200,184,0.8);
}
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring {
  opacity: 0;
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── HERO ORB ────────────────────────────────────────────────── */
.hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,184,0.06) 0%, transparent 65%);
  top: 50%;
  left: 65%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* ── SECTION DIAGONAL ────────────────────────────────────────── */
.section-diagonal { position: relative; }
.section-diagonal::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 0; right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
  z-index: 1;
}

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7,7,26,0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 1000;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.4rem; font-weight: 600; color: var(--white); }
  .nav-cta { font-size: 1.2rem !important; padding: 14px 36px !important; }
  .hamburger { display: flex; }
  section { padding: 70px 20px; }
  .divider { margin: 0 20px; }
  .page-hero { padding: 130px 20px 60px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
