:root {
  --bg: #07070c;
  --bg-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f2f3f7;
  --text-dim: #a2a6b8;
  --accent: #7c5cff;
  --accent-2: #2fd3c4;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --blob-opacity: 0.55;
  --star-color: 255, 255, 255;
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-soft: rgba(255, 255, 255, 0.75);
  --border: rgba(15, 18, 40, 0.10);
  --text: #12142a;
  --text-dim: #5b6076;
  --shadow: 0 20px 50px rgba(20, 24, 60, 0.12);
  --blob-opacity: 0.35;
  --star-color: 90, 96, 140;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ---------- background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  transition: opacity 0.4s ease;
}

.blob {
  position: absolute;
  display: block;
  width: 46vw;
  height: 46vw;
  min-width: 320px;
  min-height: 320px;
  border-radius: 50%;
}

.blob-1 { background: #7c5cff; top: -12%; left: -8%; animation: drift-1 22s ease-in-out infinite; }
.blob-2 { background: #2fd3c4; top: 24%; right: -12%; animation: drift-2 26s ease-in-out infinite; }
.blob-3 { background: #ff6ec7; bottom: -18%; left: 26%; animation: drift-3 30s ease-in-out infinite; }

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 6vh) scale(1.12); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(-7vw, 10vh) scale(0.92); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(5vw, -8vh) scale(1.1); }
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(16px, 5vw, 64px);
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.scrolled { border-bottom-color: var(--border); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.5);
}

.brand-dim { color: var(--text-dim); }

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

.nav-links a {
  position: relative;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover { transform: rotate(18deg); border-color: var(--accent); }

.theme-icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: inset -5px -3px 0 0 var(--bg);
  transition: all 0.35s ease;
}

:root[data-theme="light"] .theme-icon {
  box-shadow: inset 0 0 0 0 var(--bg), 0 0 0 3px rgba(124, 92, 255, 0.25);
  background: #f0b429;
}

/* ---------- hero ---------- */
main { padding: 0 clamp(16px, 5vw, 64px); }

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(64px, 14vh, 140px) 0 clamp(60px, 12vh, 120px);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, #ff6ec7);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.lede {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}

.typed { color: var(--text); font-weight: 500; }

.caret {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(124, 92, 255, 0.45); }

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

.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }

.status {
  margin-top: 34px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- sections ---------- */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(50px, 9vh, 90px) 0;
}

.section h2 {
  margin: 0 0 32px;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-soft);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(47, 211, 196, 0.22));
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.card h3 { margin: 0 0 8px; font-size: 1.06rem; font-weight: 600; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chips li:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }

.contact { text-align: center; }
.muted { color: var(--text-dim); margin: 0 0 18px; }

.mail {
  display: inline-block;
  font-size: clamp(1.1rem, 3.4vw, 1.6rem);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer {
  padding: 34px clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@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; transform: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
}
