/* ── VARIABLES ── */
:root {
  --bg: #07090f;
  --bg-2: #0c0f1a;
  --surface: #111827;
  --border: rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.13);
  --text-primary: #eef2ff;
  --text-secondary: #7d8fb3;
  --text-muted: #5a7394;
  --blue: #4f8ef7;
  --blue-dim: rgba(79,142,247,0.1);
  --blue-border: rgba(79,142,247,0.22);
  --purple: #9b6dff;
  --orange: #f97316;
  --green: #10b981;
}

/* ── RESET ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ── GRID BACKGROUND ── */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none; z-index: 0;
}

/* ── NAV ── */
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(7,9,15,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s, border-color 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark svg { display: block; }
.nav-logo-word {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: 0.22em; color: #eef2ff; text-transform: uppercase;
}
.nav-center-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  font-family: 'Noto Sans SC', sans-serif; font-size: 13.5px; font-weight: 400;
  color: rgba(238,242,255,0.68);
  text-decoration: none; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer; white-space: nowrap; user-select: none;
}
.nav-link:hover, .nav-item.open > .nav-link {
  color: #eef2ff; background: rgba(255,255,255,0.06);
}
.nav-chevron {
  width: 11px; height: 11px; opacity: 0.45;
  transition: transform 0.25s, opacity 0.2s; flex-shrink: 0;
}
.nav-item.open .nav-chevron { transform: rotate(180deg); opacity: 0.85; }

/* dropdown */
#navDropdown {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 199;
  background: rgba(9,11,19,0.98);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 28px 40px 32px;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none; display: none;
}
#navDropdown.dd-open { display: flex; }
#navDropdown.dd-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dd-inner {
  max-width: 800px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%;
}
.dd-col { padding: 0 36px; border-right: 1px solid rgba(255,255,255,0.06); }
.dd-col:first-child { padding-left: 0; }
.dd-col:last-child  { border-right: none; padding-right: 0; }
.dd-col-label {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 16px;
}
.dd-item {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 11px 10px; border-radius: 8px;
  text-decoration: none; transition: background 0.16s; cursor: pointer;
}
.dd-item:hover { background: rgba(255,255,255,0.055); }
.dd-icon {
  width: 34px; height: 34px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.dd-icon-o { background: rgba(249,115,22,0.1); }
.dd-icon-p { background: rgba(155,109,255,0.1); }
.dd-icon-g { background: rgba(16,185,129,0.1); }
.dd-name {
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 13px;
  color: #eef2ff; margin-bottom: 4px; line-height: 1.2;
}
.dd-desc {
  font-size: 11.5px; font-weight: 300; line-height: 1.6;
  color: rgba(238,242,255,0.4);
}
.nav-right-area { display: flex; align-items: center; flex-shrink: 0; }
.nav-cta-btn {
  padding: 7px 18px;
  font-family: 'Syne', sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; color: #eef2ff;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 100px;
  text-decoration: none; transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-cta-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
#navOverlay {
  position: fixed; inset: 0; top: 60px; z-index: 198; display: none;
}
#navOverlay.active { display: block; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 140px 52px 60px;
  overflow: hidden; z-index: 1; text-align: center;
}

.hero-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(79,142,247,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-nabla-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: min(46vw, 520px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(79,142,247,0.05);
  pointer-events: none; user-select: none;
  letter-spacing: -0.05em;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 10px;
  border: 1px solid var(--blue-border); border-radius: 100px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--blue); letter-spacing: 0.12em;
  margin-bottom: 36px; background: var(--blue-dim);
  animation: fadeUp 0.6s ease both;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1;}50%{opacity:0.3;} }

.hero-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.08; letter-spacing: -0.03em;
  color: var(--text-primary); max-width: 700px;
  animation: fadeUp 0.6s ease 0.07s both;
}

.hero-title em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  margin-top: 24px; max-width: 480px;
  color: var(--text-secondary); font-size: 15px; line-height: 1.85; font-weight: 300;
  animation: fadeUp 0.6s ease 0.14s both;
}

@keyframes fadeUp { from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);} }

/* ── SECTION COMMONS ── */
.section-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; color: var(--blue);
  text-transform: uppercase; margin-bottom: 20px;
}
.section-eyebrow::before { content:''; width:20px; height:1px; background:var(--blue); flex-shrink:0; }

.divider { max-width: 1100px; margin: 0 auto; padding: 0 52px; }
.divider-line { height: 1px; background: linear-gradient(90deg, transparent, var(--border-bright), transparent); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px;
  font-family: 'Syne', sans-serif; font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.04em; color: #fff;
  background: var(--blue);
  border: none; border-radius: 100px;
  text-decoration: none; cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 0 28px rgba(79,142,247,0.18);
}
.btn-primary:hover {
  opacity: 0.88; transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(79,142,247,0.28);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px;
  font-family: 'Syne', sans-serif; font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-bright); border-radius: 100px;
  text-decoration: none; cursor: pointer;
  transition: all 0.22s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
}

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 36px 0; position: relative; z-index: 1; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 52px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; color: var(--text-secondary); letter-spacing: 0.12em; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 12px; color: var(--text-secondary); text-decoration: none; letter-spacing: 0.03em; transition: color 0.2s; font-weight: 300; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.1s;} .d2{transition-delay:.2s;} .d3{transition-delay:.3s;} .d4{transition-delay:.4s;} .d5{transition-delay:.5s;}
