@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bg:           #07090f;
  --surface:      #0d1117;
  --surface-2:    #141b27;
  --surface-3:    #1c2538;
  --border:       #1e2d45;
  --border-dim:   #131d2e;
  --text:         #c9d1e0;
  --text-bright:  #eef0f8;
  --text-dim:     #586480;
  --accent:       #39e87a;
  --accent-dim:   #1a9148;
  --accent-glow:  rgba(57,232,122,0.12);
  --accent-muted: rgba(57,232,122,0.06);
  --blue:         #5ba4f5;
  --radius:       8px;
  --radius-lg:    14px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Background grid ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-dim) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* ─── Layout ─── */
.site-wrapper { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,9,15,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  /* needed so the mobile dropdown positions relative to the nav bar */
  position: sticky;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 0;
  height: 60px;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 800;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-right: 48px;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-bright);
  background: var(--surface-2);
}
.nav-cta {
  background: var(--accent); color: #021208;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.18s, transform 0.18s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  padding: 88px 0 72px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-muted);
  border: 1px solid rgba(57,232,122,0.2);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 24px; letter-spacing: 0.06em;
}
.hero-tag::before { content: '▶'; font-size: 8px; }
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 17px; color: var(--text-dim);
  line-height: 1.65; margin-bottom: 36px;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #021208;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.18s, transform 0.18s;
  border: none; cursor: pointer;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  padding: 13px 26px; border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.btn-secondary:hover { border-color: var(--accent-dim); color: var(--text-bright); background: var(--surface-2); }

/* ─── Terminal / hero visual ─── */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
}
.terminal-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-red { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green { background: #28c840; }
.terminal-title {
  flex: 1; text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-dim);
}
.terminal-body { padding: 20px 18px; }
.t-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; line-height: 1.9;
  display: flex; align-items: center; gap: 0;
  opacity: 0;
  animation: fadeSlideIn 0.4s ease forwards;
}
.t-line:nth-child(1) { animation-delay: 0.3s; }
.t-line:nth-child(2) { animation-delay: 0.9s; }
.t-line:nth-child(3) { animation-delay: 1.5s; }
.t-line:nth-child(4) { animation-delay: 2.1s; }
.t-line:nth-child(5) { animation-delay: 2.7s; }
.t-line:nth-child(6) { animation-delay: 3.1s; }
.t-line:nth-child(7) { animation-delay: 3.4s; }
.t-src { color: var(--text-dim); }
.t-arrow { color: var(--accent); margin: 0 10px; }
.t-dest { color: var(--text-bright); }
.t-ok { color: var(--accent); margin-left: 10px; font-size: 11px; }
.t-prompt { color: var(--accent); margin-right: 10px; }
.t-cmd { color: var(--blue); }
.t-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.t-stat { color: var(--accent); font-size: 12px; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── FEATURES grid ─── */
.section { padding: 72px 0; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; color: var(--text-bright);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub { color: var(--text-dim); font-size: 16px; max-width: 540px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface);
  padding: 32px 28px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface-2); }
.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-muted);
  border: 1px solid rgba(57,232,122,0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* ─── WHY LIST ─── */
.why-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.why-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 16px; border-radius: var(--radius);
  transition: border-color 0.18s;
}
.why-list li:hover { border-color: var(--accent-dim); }
.why-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── STEPS ─── */
.steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 48px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px; font-weight: 800;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}
.step-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.step-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ─── SYSREQ ─── */
.sysreq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 40px;
}
.sysreq h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.sysreq ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sysreq li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.sysreq li::before { content: '›'; color: var(--accent); }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.cta-banner h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.cta-banner p { color: var(--text-dim); margin-bottom: 28px; }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 2px; margin-top: 40px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--text-bright);
  list-style: none;
  transition: background 0.18s;
  user-select: none;
}
.faq-q:hover { background: var(--surface-2); }
.faq-q::after {
  content: '+'; color: var(--accent);
  font-size: 20px; font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px 20px;
  font-size: 14px; color: var(--text-dim); line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 64px; align-items: start;
  margin-top: 48px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.about-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.about-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.about-card a { color: var(--accent); text-decoration: none; }
.about-card a:hover { text-decoration: underline; }
.about-stack { display: flex; flex-direction: column; gap: 12px; }
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.stat-box .num {
  font-family: 'Syne', sans-serif;
  font-size: 36px; font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box .label { font-size: 13px; color: var(--text-dim); }

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 16px;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.footer-links a {
  font-size: 13px; color: var(--text-dim);
  text-decoration: none; padding: 4px 10px;
  border-radius: var(--radius);
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--text-bright); }
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
}
.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.page-header p { font-size: 17px; color: var(--text-dim); max-width: 540px; }

/* ─── SCREENSHOTS ─── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; margin-top: 40px;
}
.screenshot-thumb {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.screenshot-thumb:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.screenshot-thumb img { width: 100%; height: auto; display: block; }
.screenshot-caption {
  padding: 10px 14px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  background: var(--surface);
}

/* ─── MODAL ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius); }
.modal-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: white;
  font-size: 32px; cursor: pointer; line-height: 1;
}

/* ─── CONTACT ─── */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; max-width: 560px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.18s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-dim);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ─── Hamburger button ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px 10px;
  margin-left: 12px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 48px; }
  .terminal { display: none; }
  .steps { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(7,9,15,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 20px;
    flex-direction: column;
    gap: 2px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 15px;
    padding: 12px 14px;
    border-radius: var(--radius);
  }

  /* Shrink the Download CTA label on small screens */
  .nav-cta { font-size: 12px; padding: 7px 12px; }
}
