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

:root {
  --bg:        #06060c;
  --bg2:       #0a0a1a;
  --card:      rgba(15, 15, 35, 0.45);
  --border:    rgba(255,255,255,0.08);
  --blue:      #4facfe;
  --cyan:      #00f2fe;
  --purple:    #8e2de2;
  --orange:    #f97316;
  --green:     #00e676;
  --text:      #f8fafd;
  --muted:     #94a3b8;
  --radius:    24px;
  --font:      'Outfit', 'Inter', system-ui, sans-serif;
  --glass-border: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  --glow-blue: 0 0 30px rgba(79,172,254,0.25);
}

::selection {
  background: var(--blue);
  color: #000;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
code {
  font-family: 'Courier New', monospace;
  background: rgba(79,172,254,0.1);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.88em;
}

/* ── Scroll Reveal Animations ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(.22,.68,0,1.2), transform 0.7s cubic-bezier(.22,.68,0,1.2);
}
.reveal.from-left  { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.visible    { opacity: 1; transform: translate(0,0); }
.reveal-fast { opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease; transform: translateY(20px); }
.reveal-fast.visible { opacity: 1; transform: translateY(0); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s ease;
  border: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #000;
  box-shadow: 0 0 24px rgba(79,172,254,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(79,172,254,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: rgba(79,172,254,0.4);
  background: rgba(79,172,254,0.06);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Nav ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px;
  backdrop-filter: blur(20px);
  background: rgba(5,5,15,0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-color: var(--border);
  background: rgba(5,5,15,0.92);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg,#fff,#94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-logo span { background: linear-gradient(135deg,var(--blue),var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 40px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 600; transition: all 0.3s ease; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--blue); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  position: relative; overflow: hidden;
  max-width: 1400px; margin: 0 auto;
  gap: 60px;
}

/* Animated background orbs */
.hero-bg {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: drift 8s ease-in-out infinite alternate;
}
.orb-1 { width: 500px; height: 500px; background: rgba(79,172,254,0.12); top: -100px; left: -100px; animation-duration: 9s; }
.orb-2 { width: 400px; height: 400px; background: rgba(142,45,226,0.1); top: 40%; right: -80px; animation-duration: 11s; animation-delay: -3s; }
.orb-3 { width: 350px; height: 350px; background: rgba(0,242,254,0.08); bottom: -60px; left: 30%; animation-duration: 13s; animation-delay: -5s; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(30px,20px) scale(1.05); } }

.hero-content { flex: 1; max-width: 580px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,172,254,0.08); border: 1px solid rgba(79,172,254,0.2);
  padding: 6px 16px; border-radius: 100px; font-size: 0.82rem;
  color: var(--blue); font-weight: 600; margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -2px; margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.08rem; color: var(--muted); line-height: 1.75;
  margin-bottom: 36px; max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 0.8rem; color: var(--muted); }

/* Terminal visual */
.hero-visual {
  flex: 1; max-width: 520px; position: relative; z-index: 1;
}
.terminal-card {
  background: rgba(10, 10, 24, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 80px rgba(79,172,254,0.1);
  position: relative;
}
.terminal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.terminal-bar {
  padding: 12px 16px; background: #0d0d1e;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title { margin-left: auto; font-size: 0.75rem; color: var(--muted); }
.terminal-body { padding: 20px; font-family: 'Courier New', monospace; font-size: 0.82rem; line-height: 1.9; }
.t-line { display: block; }
.t-prompt { color: var(--blue); margin-right: 8px; }
.t-cmd { color: #e2e8f0; }
.t-out { color: var(--muted); padding-left: 4px; }
.t-hi { color: var(--cyan); }
.t-success { color: var(--green); padding-left: 4px; }
.typing::after { content: '|'; animation: blink 1s step-end infinite; color: var(--blue); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Floating cards */
.floating-card {
  position: absolute; background: rgba(20, 20, 45, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
  padding: 12px 20px; font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite alternate;
  z-index: 2;
}
.fc-icon { font-size: 1.2rem; filter: drop-shadow(0 0 8px currentColor); }
.fc-1 { top: -30px; right: -20px; color: var(--cyan); }
.fc-2 { bottom: 80px; right: -50px; color: var(--purple); }
.fc-3 { bottom: -30px; left: 10px; color: var(--green); }
@keyframes float { from{transform:translateY(0) rotate(-1deg)} to{transform:translateY(-15px) rotate(1deg)} }

/* ── Stats Bar ────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
  padding: 32px 24px;
}
.stats-inner {
  max-width: 800px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around;
  gap: 20px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg,var(--blue),var(--cyan)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.stat-div { width: 1px; height: 40px; background: var(--border); }

/* ── Sections ─────────────────────────────────────── */
.section { padding: 100px 24px; }
.section-dark { background: var(--bg2); }
.section-download { background: var(--bg); position: relative; overflow: hidden; }

.container { max-width: 1100px; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 70px; }
.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--blue); margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 900; letter-spacing: -2px; margin-bottom: 20px; line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ── Features Grid ────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius); padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(79,172,254,0.1), transparent 40%);
  opacity: 0; transition: opacity 0.4s ease;
}
.feature-card:hover {
  border-color: rgba(79,172,254,0.3);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(79,172,254,0.2);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 60px; height: 60px;
  border-radius: 18px; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ── Steps ────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; max-width: 700px; margin: 0 auto; }
.step {
  display: flex; align-items: flex-start; gap: 28px;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); padding: 40px;
  position: relative; transition: all 0.3s ease;
}
.step:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(79,172,254,0.2);
}
.step-num {
  font-size: 3rem; font-weight: 950; letter-spacing: -3px;
  background: linear-gradient(135deg,var(--blue),var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 0.8; flex-shrink: 0;
  opacity: 0.8;
}
.step-content h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.step-content p  { color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.step-connector {
  width: 2px; height: 40px; margin: 0 auto;
  background: linear-gradient(to bottom, var(--blue), transparent);
  box-shadow: 0 0 15px var(--blue);
}

/* ── Dual Mode ────────────────────────────────────── */
.dual-mode {
  display: flex; align-items: stretch; gap: 0;
  margin-top: 60px; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.dual-card {
  flex: 1; padding: 36px 40px;
  background: var(--card);
}
.dual-card:first-child { border-right: none; }
.dual-icon { font-size: 2rem; margin-bottom: 16px; }
.dual-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.dual-card > p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.dual-cmds { display: flex; flex-direction: column; gap: 8px; }
.dual-cmd {
  font-family: 'Courier New', monospace; font-size: 0.8rem;
  color: var(--muted); background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 14px;
}
.dual-divider {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 20px 16px;
  background: var(--bg2); border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.dual-divider span { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.dual-divider-line { width: 1px; flex: 1; background: var(--border); }

@media (max-width: 760px) {
  .dual-mode { flex-direction: column; }
  .dual-divider { flex-direction: row; padding: 16px 20px; border: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .dual-divider-line { width: auto; height: 1px; flex: 1; }
}

/* ── Security Split ───────────────────────────────── */
.security-split {
  display: flex; gap: 80px; align-items: center; flex-wrap: wrap;
}
.security-text { flex: 1; min-width: 300px; }
.security-text h2 {
  font-size: clamp(1.8rem,3.5vw,2.4rem);
  font-weight: 800; letter-spacing: -1.5px;
  margin: 12px 0 16px;
}
.security-text > p { color: var(--muted); font-size: 1rem; margin-bottom: 28px; line-height: 1.7; }
.security-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.security-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: rgba(241,245,249,0.8);
}
.security-visual { flex: 1; min-width: 280px; }
.security-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.sc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 0.9rem; color: var(--blue);
}
.sc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.sc-row:last-child { border-bottom: none; }
.sc-row span:first-child { color: var(--muted); }
.sc-badge {
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
  border-radius: 100px; letter-spacing: 0.3px;
}
.sc-badge.green { background: rgba(0,230,118,0.1); color: var(--green); }
.sc-badge.blue  { background: rgba(79,172,254,0.1); color: var(--blue); }
.sc-badge.red   { background: rgba(239,68,68,0.1);  color: #ef4444; }

/* ── Download Section ─────────────────────────────── */
.download-head { text-align: center; margin-bottom: 60px; }
.download-head h2 { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 12px; }
.download-head p { color: var(--muted); font-size: 1.05rem; }
.download-cards {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 20px; margin-bottom: 50px;
}
.download-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); padding: 40px 32px;
  display: flex; flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.download-card:hover {
  border-color: var(--blue);
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 50px 100px rgba(0,0,0,0.7), 0 0 30px rgba(79,172,254,0.15);
}
.dl-os-icon {
  width: 64px; height: 64px; color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,172,254,0.08); border-radius: 16px;
  margin-bottom: 20px;
}
.download-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.arch-tag { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(79,172,254,0.12); color: var(--blue); letter-spacing: 0.5px; }
.download-card > p { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }
.dl-note { font-size: 0.78rem; color: var(--muted); margin-top: 14px; line-height: 1.6; }

.install-block { max-width: 480px; margin: 0 auto; text-align: center; }
.install-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 14px; }
.code-block {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 24px;
  font-family: 'Courier New', monospace; font-size: 0.85rem;
  line-height: 1.8; text-align: left; color: #e2e8f0;
}
.cb-comment { color: var(--muted); }

/* Copy badge on code blocks */
.copy-badge {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  font-size: 0.7rem; font-weight: 700;
  color: var(--muted);
  font-family: var(--font);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 6px;
  letter-spacing: 0.5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.copyable:hover .copy-badge { opacity: 1; }
.copy-badge.copied { color: var(--green); border-color: rgba(0,230,118,0.3); }

/* ── Footer ───────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(135deg,#fff,#64748b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-logo span { background: linear-gradient(135deg,var(--blue),var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.78rem; color: var(--muted); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 860px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-sub { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-visual { width: 100%; }
  .fc-1,.fc-2,.fc-3 { display: none; }
  .nav-links { display: none; }
  .security-split { flex-direction: column; gap: 40px; }
  .stats-inner { gap: 30px; }
  .stat-div { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
