/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0f;
  --bg-2: #111114;
  --bg-3: #18181c;
  --border: #2a2a30;
  --text: #e8e8f0;
  --text-2: #9898a8;
  --text-3: #5a5a6a;
  --accent: #5b8ef0;
  --accent-2: #7c5bf0;
  --green: #3ecf8e;
  --red: #f05b5b;
  --yellow: #f0b93e;
  --orange: #f07a3e;
  --purple: #a05bf0;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.18s ease;
  --max-w: 1100px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
code { font-family: var(--mono); background: var(--bg-3); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
kbd { font-family: var(--mono); background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 0.85em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.3rem; }
.logo-plus { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { color: var(--text-2); font-weight: 500; font-size: 1rem; }
.mobile-menu a:hover { color: var(--text); }

/* ── Section header ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}
.section-header p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  background: rgba(91, 142, 240, 0.12);
  color: var(--accent);
  border: 1px solid rgba(91, 142, 240, 0.25);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 0;
  overflow: hidden;
}
.hero-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 56px;
}
.hero-badge {
  display: inline-block;
  background: rgba(62, 207, 142, 0.1);
  color: var(--green);
  border: 1px solid rgba(62, 207, 142, 0.2);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.8rem; color: var(--text-3); font-weight: 500; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ── Terminal ── */
.hero-terminal {
  padding: 0 24px;
  max-width: 860px;
  margin: 0 auto;
}
.terminal {
  background: #0a0a0c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-title { font-size: 0.78rem; color: var(--text-3); font-family: var(--mono); margin-left: 8px; }
.terminal-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.t-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-dim { color: var(--text-3); }
.t-green { color: var(--green); font-weight: 600; }
.t-blue { color: var(--accent); font-weight: 600; }
.t-yellow { color: var(--yellow); }
.t-red { color: var(--red); font-weight: 600; }
.t-cursor::after {
  content: '█';
  margin-left: 4px;
  animation: blink 1.1s step-end infinite;
  color: var(--accent);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Features ── */
.features { background: var(--bg-2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.feat-blue { background: rgba(91,142,240,0.15); }
.feat-orange { background: rgba(240,122,62,0.15); }
.feat-purple { background: rgba(160,91,240,0.15); }
.feat-red { background: rgba(240,91,91,0.15); }
.feat-green { background: rgba(62,207,142,0.15); }
.feat-yellow { background: rgba(240,185,62,0.15); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card > p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.6;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  list-style: none;
}
.feature-list li {
  font-size: 0.83rem;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* ── Videos ── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.video-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 18px 20px 20px;
}
.video-tag {
  display: inline-block;
  background: rgba(91, 142, 240, 0.12);
  color: var(--accent);
  border: 1px solid rgba(91, 142, 240, 0.2);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.video-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.video-info p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── How It Works ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 660px;
  margin: 0 auto;
  list-style: none;
}
.step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  padding-top: 10px;
}
.step-content p { color: var(--text-2); font-size: 0.9rem; }

/* ── Upcoming ── */
.upcoming { background: var(--bg-2); }

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.upcoming-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}
.upcoming-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.status-soon::before { background: var(--green); }
.status-planned::before { background: var(--accent); }
.status-research::before { background: var(--text-3); }

.upcoming-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-soon .status-dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-planned .status-dot { background: var(--accent); }
.status-research .status-dot { background: var(--text-3); }
.status-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-soon .status-label { color: var(--green); }
.status-planned .status-label { color: var(--accent); }
.status-research .status-label { color: var(--text-3); }

.upcoming-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.upcoming-card p { font-size: 0.87rem; color: var(--text-2); line-height: 1.6; }

/* ── FAQ ── */
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}

.faq-q {
  width: 100%;
  background: var(--bg-2);
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--bg-3); }
.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); color: var(--accent); }

.faq-a {
  padding: 0 20px 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  background: var(--bg-2);
}

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, rgba(91,142,240,0.08) 0%, rgba(124,91,240,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner { text-align: center; max-width: 520px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.cta p { color: var(--text-2); margin-bottom: 32px; font-size: 1rem; }

/* ── Footer ── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-inner {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.footer-brand { max-width: 220px; }
.footer-brand .logo-icon { font-size: 1.2rem; }
.footer-brand .logo-text { font-size: 1rem; font-weight: 700; }
.footer-brand p { margin-top: 10px; font-size: 0.83rem; color: var(--text-3); }

.footer-links { display: flex; gap: 48px; margin-left: auto; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--text-2); transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-3); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav .btn-primary { display: none; }
  .nav-hamburger { display: flex; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .terminal-body { font-size: 0.72rem; }
  .features-grid, .upcoming-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { margin-left: 0; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .t-line { font-size: 0.68rem; }
}

/* ── Focus visible ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Active nav link ── */
.nav-links a.nav-active { color: var(--text); }
