@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #08080a;
  --panel: #131313;
  --panel-alt: #19191c;
  --border: #2b2b2e;
  --text: #f0f0f0;
  --text-dim: #8c8c8c;
  --accent: #b568ff;
  --accent-alt: #c98bff;
  --radius: 12px;
  --mono: 'JetBrains Mono', monospace;
  --maxw: 1040px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.5;
  background-image: radial-gradient(circle at 15% 0%, rgba(181, 104, 255, 0.08), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 3px;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #0a090c; }

/* ---------- Warning Modal ---------- */
.warning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

.warning-modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(181, 104, 255, 0.15);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.warning-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.warning-content {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 24px;
}

.warning-content p {
  margin: 0;
}

.warning-content strong {
  color: var(--accent);
  font-weight: 600;
}

.warning-overlay .btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(8, 8, 10, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 0;
}

.nav-home {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.nav-mark { color: var(--accent); }

.nav-cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}
.nav-link:hover { color: var(--text); }

.nav-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #0a090c;
}
.nav-btn:hover { background: var(--accent-alt); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 24px 70px;
  display: flex;
  justify-content: center;
}

.hero-inner {
  max-width: var(--maxw);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

/* ---------- 3D Terminal ---------- */
.terminal-window {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 60px rgba(181, 104, 255, 0.08);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.terminal-window:hover {
  border-color: var(--accent);
  z-index: 10;
}

/* Terminal children get depth layers */
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border);
  transform: translateZ(25px);
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a3a;
}
.term-dot:nth-child(1) { background: #ff5c5c; }
.term-dot:nth-child(2) { background: #ffd24c; }
.term-dot:nth-child(3) { background: #4cff8a; }

.term-title {
  margin-left: 8px;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.4px;
}

.terminal-body {
  padding: 16px 18px;
  font-size: 12px;
  min-height: 130px;
  color: var(--text-dim);
  white-space: pre-wrap;
  transform: translateZ(15px);
}

.terminal-body .line-accent { color: var(--accent); }
.terminal-body .line-text { color: var(--text); }

.term-caret {
  display: inline-block;
  width: 6px;
  height: 13px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.9s steps(1) infinite;
}

.hero-title {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.08;
}

.hero-sub {
  max-width: 520px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.btn {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #0a090c;
}
.btn-primary:hover { background: var(--accent-alt); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-alt); color: var(--accent-alt); }

.btn-large {
  font-size: 15px;
  padding: 16px 34px;
}

.download-arrow { font-size: 14px; }

/* ---------- Sections ---------- */
.section {
  padding: 80px 24px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: var(--maxw);
  width: 100%;
}

.eyebrow {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ---------- 3D Parallax Feature Cards ---------- */
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: default;
  position: relative;
}

.feature-card:hover {
  border-color: var(--accent);
  z-index: 10;
}

/* Each child element gets its own depth layer */
.feature-card > * {
  transform: translateZ(20px);
  pointer-events: none;
}

.feature-card .feature-icon {
  transform: translateZ(35px);
}

.feature-card h3 {
  transform: translateZ(25px);
}

.feature-card p {
  transform: translateZ(10px);
}

.feature-icon {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.feature-card p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---------- Download section ---------- */
.section-download {
  background: radial-gradient(circle at 50% 0%, rgba(181, 104, 255, 0.06), transparent 60%);
}

.download-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-sub {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 28px;
}

.download-meta {
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.meta-dot { margin: 0 8px; opacity: 0.5; }

.download-note {
  margin-top: 24px;
  max-width: 420px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.footer-inner {
  max-width: var(--maxw);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
}

.footer-links {
  font-size: 11px;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .feature-grid { 
    grid-template-columns: 1fr; 
  }
  .navbar { padding: 14px 18px; }
  .hero { padding: 70px 18px 50px; }
  .section { padding: 56px 18px; }
  .warning-modal {
    padding: 32px 24px;
  }
}
