*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060910;
  --surface: #0c1118;
  --card: #0f1521;
  --border: #1e1a14;
  --accent: #f68401;
  --accent2: #ffaa44;
  --accent3: #c45e00;
  --text: #e2e8f0;
  --muted: #64748b;
  --danger: #ff4d6d;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── CANVAS BACKGROUND ─── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

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

/* ─── LAYOUT ─── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(6, 9, 16, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 163, 0.08);
  transition: all 0.3s;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(246, 132, 1, 0.4);
  animation: pulse-logo 3s ease-in-out infinite;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes pulse-logo {
  0%, 100% { box-shadow: 0 0 20px rgba(246, 132, 1, 0.4); }
  50% { box-shadow: 0 0 40px rgba(246, 132, 1, 0.7); }
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  font-family: 'Space Mono', monospace;
}

nav ul a:hover { color: var(--accent); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 8px 18px;
  border-radius: 6px;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: #000 !important;
  box-shadow: 0 0 20px rgba(246, 132, 1, 0.4);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(246, 132, 1, 0.08);
  border: 1px solid rgba(246, 132, 1, 0.2);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #fff;
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero h1 .line-accent { color: var(--accent); }
.hero h1 .line-dim { color: var(--muted); }

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-top: 24px;
  line-height: 1.7;
  max-width: 480px;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 30px rgba(246, 132, 1, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(246, 132, 1, 0.5);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}

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

/* ─── TERMINAL ─── */
.hero-terminal {
  animation: fadeUp 0.8s ease 0.4s both;
}

.terminal {
  background: #0a0f18;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0, 255, 163, 0.05);
  position: relative;
}

.terminal::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.terminal-bar {
  background: #0f1521;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.terminal-body {
  padding: 24px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  min-height: 280px;
}

.t-prompt { color: var(--accent); }
.t-cmd { color: #fff; }
.t-comment { color: var(--muted); }
.t-out { color: #a0c4ff; }
.t-warn { color: #ffb347; }
.t-danger { color: var(--danger); }
.t-ok { color: var(--accent); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}

/* ─── STATS ─── */
.stats-strip {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -2px;
  display: block;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: block;
}

/* ─── SECTIONS ─── */
section { position: relative; z-index: 2; }

.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.section-desc {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 560px;
  margin-top: 16px;
}

/* ─── FEATURES ─── */
.features { padding: 120px 0; }

.features-header {
  text-align: center;
  margin-bottom: 72px;
}

.features-header .section-desc { margin: 16px auto 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--card);
  padding: 36px 32px;
  transition: background 0.3s;
  position: relative;
}

.feature-card:hover {
  background: #131e30;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(246, 132, 1, 0.08);
  border: 1px solid rgba(246, 132, 1, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── VIDEO SECTION ─── */
.video-section { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.video-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.video-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,255,163,0.05);
  background: #000;
  aspect-ratio: 16/9;
}

.video-wrapper::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f68401, transparent);
  z-index: 1;
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(ellipse at center, #0f1a2b 0%, #060910 100%);
  cursor: pointer;
}

.play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(246, 132, 1, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(246, 132, 1, 0.7);
}

.play-btn svg { margin-left: 4px; }

.video-placeholder p {
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
}

/* ─── INSTALL ─── */
.install-section { padding: 100px 0; }

.install-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.install-steps { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(246, 132, 1, 0.3);
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.step-content p { font-size: 14px; color: var(--muted); }

.code-block {
  background: #0a0f18;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  padding: 12px 18px;
  background: #0f1521;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-family: 'Space Mono', monospace;
  transition: all 0.2s;
}

.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.code-body {
  padding: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 2;
}

.code-body .l-comment { color: #4a5568; }
.code-body .l-cmd { color: var(--accent); }
.code-body .l-arg { color: #a0c4ff; }
.code-body .l-str { color: #ffb347; }

/* ─── CHECKS ─── */
.checks-section { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--border); }

.checks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 56px;
}

.check-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s;
}

.check-item:hover {
  border-color: rgba(246, 132, 1, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.check-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(246, 132, 1, 0.7);
}

.check-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ─── PROVIDERS ─── */
.providers-section { padding: 100px 0; }

.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.provider-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.provider-card.featured {
  border-color: rgba(246, 132, 1, 0.3);
}

.provider-card.featured::after {
  content: 'Recommended';
  position: absolute;
  top: 16px; right: -28px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  padding: 4px 40px;
  transform: rotate(45deg);
  transform-origin: center;
  letter-spacing: 0.05em;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.provider-icon { font-size: 36px; margin-bottom: 16px; }

.provider-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.provider-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.provider-tag {
  display: inline-block;
  background: rgba(246, 132, 1, 0.08);
  border: 1px solid rgba(246, 132, 1, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-family: 'Space Mono', monospace;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── CTA ─── */
.cta-section {
  padding: 120px 0;
  text-align: center;
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-glow {
  position: absolute;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(246, 132, 1, 0.06) 0%, transparent 70%);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
}

.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-text {
  font-size: 13px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
}

.footer-text a { color: var(--accent); text-decoration: none; }

.social-links { display: flex; gap: 16px; }

.social-link {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 16px;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(246, 132, 1, 0.3);
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SCANLINE EFFECT ─── */
.scanline {
  position: relative;
  overflow: hidden;
}

.scanline::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to bottom, transparent, rgba(0,255,163,0.15), transparent);
  animation: scan 4s linear infinite;
  pointer-events: none;
}

@keyframes scan { to { top: 200%; } }

/* MOBILE */
@media (max-width: 768px) {
  .hero-inner, .video-inner, .install-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-terminal { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .checks-grid { grid-template-columns: repeat(2, 1fr); }
  .providers-grid { grid-template-columns: 1fr; }
  nav ul { display: none; }
}
