:root {
  color-scheme: dark;
  --bg: #06070b;
  --bg-elevated: #0c0e16;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text: #eef1f6;
  --text-secondary: #8b95a8;
  --text-tertiary: #5c6578;
  --accent: #7c6aef;
  --accent-light: #a78bfa;
  --cyan: #67e8f9;
  --emerald: #6ee7b7;
  --amber: #fbbf24;
  --rose: #fb7185;
  --max-w: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }

/* ═══ Ambient background ═══ */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.35;
  animation: orbFloat 20s ease-in-out infinite;
}
.orb--1 {
  width: 600px; height: 600px; top: -15%; left: -10%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}
.orb--2 {
  width: 500px; height: 500px; top: 10%; right: -8%;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  animation-delay: -7s; animation-duration: 25s; opacity: 0.2;
}
.orb--3 {
  width: 450px; height: 450px; bottom: 20%; left: 30%;
  background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
  animation-delay: -14s; animation-duration: 30s; opacity: 0.15;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ═══ Layout ═══ */
.wrap { width: min(100% - 40px, var(--max-w)); margin: 0 auto; }

/* ═══ Header ═══ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(6,7,11,0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff;
  box-shadow: 0 0 20px rgba(124,106,239,0.3);
}
.logo__text { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; }

.nav { display: none; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s ease;
}
.nav a:hover { color: var(--text); background: var(--surface); }

.header__cta {
  display: inline-flex; align-items: center; height: 36px;
  padding: 0 16px; border-radius: 99px;
  border: 1px solid rgba(124,106,239,0.3);
  background: rgba(124,106,239,0.1);
  font-size: 12px; font-weight: 600; color: var(--accent-light);
  transition: all 0.25s ease;
}
.header__cta:hover {
  border-color: rgba(124,106,239,0.5);
  background: rgba(124,106,239,0.18);
  box-shadow: 0 0 24px rgba(124,106,239,0.15);
  transform: translateY(-1px);
}

/* ═══ Hero ═══ */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px;
}
.hero__content { max-width: 760px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; margin-bottom: 28px;
  border-radius: 99px; border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  animation: fadeUp 0.8s ease both;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(110,231,183,0.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(48px, 11vw, 88px);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.03em;
  animation: fadeUp 0.8s ease 0.1s both;
}
.gradient-text {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 50%, var(--cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__sub {
  margin-top: 24px; max-width: 580px;
  font-size: clamp(17px, 2.5vw, 20px); line-height: 1.7;
  color: var(--text-secondary); font-weight: 400;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
  transition: all 0.25s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #9b7fff);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,106,239,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,106,239,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--surface-hover); border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ═══ Metrics strip ═══ */
.metrics {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr;
  gap: 1px; margin-top: -40px; margin-bottom: 40px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}
.metric-card {
  padding: 28px 24px;
  background: var(--bg-elevated);
  transition: background 0.3s ease;
}
.metric-card:hover { background: rgba(12,14,22,0.95); }
.metric-card__value {
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--accent-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.metric-card__label {
  margin-top: 6px; font-size: 13px; color: var(--text-tertiary); font-weight: 500;
}

/* ═══ Sections common ═══ */
section { position: relative; z-index: 2; padding: 100px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-light); margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 24px; height: 2px; border-radius: 2px;
  background: currentColor;
}
.section-heading {
  font-size: clamp(32px, 6vw, 52px); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.02em; max-width: 700px;
}
.section-desc {
  margin-top: 18px; max-width: 600px;
  font-size: 16px; line-height: 1.75; color: var(--text-secondary);
}

/* ═══ Capabilities ═══ */
.cap-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin-top: 48px;
}
.cap-card {
  position: relative; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: all 0.35s ease; overflow: hidden;
}
.cap-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cap-accent, var(--accent)), transparent);
  opacity: 0; transition: opacity 0.35s ease;
}
.cap-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.cap-card:hover::before { opacity: 1; }

.cap-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(124,106,239,0.15), rgba(103,232,249,0.08));
  border: 1px solid rgba(124,106,239,0.2);
  color: var(--accent-light);
}
.cap-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.cap-card p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

/* ═══ Products ═══ */
.products-section {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(124,106,239,0.03) 0%, transparent 50%);
}
.product-bento {
  display: grid; grid-template-columns: 1fr;
  gap: 16px; margin-top: 48px;
}
.product-hero-card {
  position: relative; padding: 32px; min-height: 380px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,106,239,0.06), rgba(103,232,249,0.03));
  overflow: hidden;
}
.product-hero-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.product-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 99px;
  border: 1px solid rgba(110,231,183,0.25);
  background: rgba(110,231,183,0.08);
  font-size: 11px; font-weight: 700; color: var(--emerald);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.product-badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}
.product-name {
  margin-top: 24px;
  font-size: clamp(36px, 8vw, 64px); font-weight: 800;
  line-height: 0.95; letter-spacing: -0.03em;
}
.product-desc {
  margin-top: 18px; max-width: 520px;
  font-size: 15px; line-height: 1.75; color: var(--text-secondary);
}
.product-features {
  display: grid; gap: 10px; margin-top: 28px; max-width: 440px;
}
.product-feat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.product-feat__label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.product-feat__value { font-size: 13px; font-weight: 700; color: var(--text); }

.product-upcoming-stack { display: grid; gap: 16px; }
.upcoming-card {
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  transition: all 0.3s ease;
}
.upcoming-card:hover {
  border-color: var(--border-hover); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.upcoming-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber);
}
.upcoming-card h3 { font-size: 18px; font-weight: 700; margin-top: 12px; }
.upcoming-card p {
  margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--text-secondary);
}

/* ═══ Founder ═══ */
.founder-section { border-top: 1px solid var(--border); }
.founder-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 36px; align-items: center; margin-top: 48px;
}
.founder-visual {
  display: flex; flex-direction: column; gap: 20px;
}
.founder-avatar {
  width: 80px; height: 80px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: grid; place-items: center;
  font-size: 24px; font-weight: 800; color: #fff;
  box-shadow: 0 8px 32px rgba(124,106,239,0.25);
}
.founder-info h3 { font-size: 26px; font-weight: 800; }
.founder-info p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.founder-bio {
  font-size: 16px; line-height: 1.8; color: var(--text-secondary);
}

/* ═══ CTA ═══ */
.cta-section {
  position: relative; overflow: hidden;
}
.cta-panel {
  position: relative; padding: 48px 32px;
  border-radius: var(--radius); border: 1px solid rgba(124,106,239,0.2);
  background: linear-gradient(135deg, rgba(124,106,239,0.08), rgba(103,232,249,0.04));
  overflow: hidden; text-align: center;
}
.cta-panel::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 120%, rgba(124,106,239,0.12), transparent 60%);
  animation: ctaGlow 6s ease-in-out infinite alternate;
}
@keyframes ctaGlow {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}
.cta-panel h2 {
  position: relative; font-size: clamp(28px, 5vw, 44px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
}
.cta-panel p {
  position: relative; margin-top: 16px;
  font-size: 16px; color: var(--text-secondary); line-height: 1.7;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-panel .btn { position: relative; margin-top: 28px; }

/* ═══ Footer ═══ */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border); padding: 24px 0;
}
.footer__inner {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--text-tertiary);
}

/* ═══ Animations ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══ Responsive ═══ */
@media (min-width: 680px) {
  .nav { display: flex; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 900px) {
  .product-bento { grid-template-columns: 1.5fr 1fr; }
  .founder-grid { grid-template-columns: auto 1fr; }
  .cta-panel { padding: 64px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
