:root {
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-card: #0d0d0d;
  --text-primary: #e0e0e0;
  --text-secondary: #888888;
  --accent: #00e5ff;
  --accent-muted: #0099b3;
  --font-mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

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

/* ── Navbar ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
nav .logo img { height: 22px; }
nav .logo span { color: var(--accent); }

nav ul { list-style: none; display: flex; gap: 24px; align-items: center; }
nav ul a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: none;
  position: relative;
}
nav ul a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s;
}
nav ul a:hover::after { width: 100%; }
nav ul a:hover { color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--text-primary); transition: .3s; }

.lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 2px;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .2s;
}
.lang-btn.active { color: var(--accent); border-color: var(--accent); }
.lang-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ── Feature Modal ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}
.modal-content {
  background: #fafafa;
  border-radius: 4px;
  max-width: 720px;
  width: 100%;
  padding: 48px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: #000; }
body.modal-open { overflow: hidden; }

.report-viewer-light h1 { font-size: 1.5rem; font-weight: 700; color: #000; margin: 0 0 16px; }
.report-viewer-light h2 { font-size: 1.15rem; font-weight: 600; color: #111; margin: 24px 0 8px; }
.report-viewer-light h3 { font-size: 1rem; font-weight: 600; color: #0099b3; margin: 20px 0 8px; }
.report-viewer-light p { font-size: 14px; color: #333; margin-bottom: 12px; line-height: 1.8; }
.report-viewer-light strong { color: #000; }
.report-viewer-light hr { border: none; border-top: 1px solid #ddd; margin: 24px 0; }
.report-viewer-light table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.report-viewer-light th, .report-viewer-light td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e0e0e0; }
.report-viewer-light th { font-family: var(--font-mono); font-size: 11px; color: #0099b3; text-transform: none; letter-spacing: 1px; background: #f0f0f0; }
.report-viewer-light td { color: #333; }
.report-viewer-light tr:nth-child(even) td { background: #f5f5f5; }
.report-viewer-light pre { background: #1e1e1e; border-radius: 4px; padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; color: #d4d4d4; margin: 16px 0; line-height: 1.6; }
.report-viewer-light code { font-family: var(--font-mono); font-size: 13px; background: #e8e8e8; padding: 2px 6px; border-radius: 2px; color: #333; }
.report-viewer-light pre code { background: none; padding: 0; color: #d4d4d4; }
.report-viewer-light ul, .report-viewer-light ol { padding-left: 24px; margin-bottom: 12px; }
.report-viewer-light li { font-size: 14px; color: #333; margin-bottom: 6px; }
.report-viewer-light blockquote { border-left: 3px solid #00e5ff; padding: 12px 20px; margin: 20px 0; background: #f0f0f0; color: #444; font-size: 14px; border-radius: 0 4px 4px 0; }
.report-viewer-light a { color: #0099b3; text-decoration: underline; }
.report-viewer-light a:hover { color: #00e5ff; }

@media (max-width: 768px) {
  .modal-content { padding: 32px 20px; }
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero .cta-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 12px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .25s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: rgba(0,229,255,0.08); }
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-outline:hover { border-color: var(--text-primary); color: var(--text-primary); }

.hero .scroll-down {
  margin-top: 60px;
  opacity: 0.4;
}

/* ── Hero Mascot ── */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
  padding: 0 24px;
}
.hero-text { flex: 1; max-width: 600px; }
.hero-mascot {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0,229,255,0.15);
  box-shadow: 0 0 60px rgba(0,229,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-content { flex-direction: column; gap: 32px; }
  .hero-mascot { width: 180px; height: 180px; }
}

/* ── Section Shared ── */
section { position: relative; z-index: 1; padding: 100px 0; }
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}
.section-subtitle {
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── About ── */
#about p { font-size: 1rem; color: var(--text-secondary); max-width: 680px; line-height: 1.8; }

/* ── Product: Spirit ── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.feature-list { display: flex; flex-direction: column; gap: 8px; }
.feature-item {
  background: var(--bg-card);
  border-radius: 4px;
  padding: 20px 24px;
  transition: background .25s;
}
.feature-item:hover { background: #111; }
.feature-item h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
}
.feature-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tech-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(0,229,255,0.06);
  color: var(--accent-muted);
}

.product-image {
  background: var(--bg-card);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.product-image .mockup {
  position: relative;
  width: 200px;
  height: 380px;
  background: linear-gradient(180deg, #080808, #0d0d0d);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  gap: 16px;
}
.mockup .status-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.mockup .chat-bubble {
  width: 100%;
  height: 28px;
  border-radius: 4px;
  background: var(--bg-secondary);
  opacity: 0.4;
}
.mockup .chat-bubble:nth-child(2) { width: 70%; }
.mockup .chat-bubble:nth-child(3) { width: 85%; }
.mockup .chat-bubble:nth-child(4) { width: 55%; }
.mockup .chat-bubble:nth-child(5) { width: 90%; }

/* ── Security —── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 12px;
}
.security-card {
  background: var(--bg-card);
  border-radius: 4px;
  padding: 24px;
  transition: background .25s;
}
.security-card:hover { background: #111; }
.security-card h4 { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.security-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── Download Section ── */
#download {
  text-align: center;
}
.download-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.download-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 32px 28px;
  min-width: 180px;
  text-decoration: none;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.download-card:hover {
  border-color: var(--accent);
  background: #111;
}
.download-card.unavailable {
  cursor: not-allowed;
  opacity: .48;
}
.download-card.unavailable:hover {
  border-color: rgba(255,255,255,0.06);
  background: var(--bg-card);
}
.download-card:hover .download-icon {
  color: var(--accent);
}
.download-card.unavailable:hover .download-icon {
  color: var(--text-secondary);
}
.download-icon {
  color: var(--text-secondary);
  transition: color .25s;
}
.download-card h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
}
.download-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
footer p { color: var(--text-secondary); font-size: 13px; margin-bottom: 12px; }
footer .links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
footer .links a { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
footer .links a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { height: 56px; }
  nav ul { display: none; position: absolute; top: 56px; left: 0; right: 0; background: rgba(5,5,5,0.98); flex-direction: column; padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.06); gap: 20px; }
  nav ul.open { display: flex; }
  .nav-toggle { display: flex; }

  .product-grid { grid-template-columns: 1fr; }
  .product-image { order: -1; min-height: 200px; }
  .product-image .mockup { width: 160px; height: 290px; padding: 14px 10px; }
  .mockup .chat-bubble { height: 22px; }

  .hero { padding: 100px 24px 60px; }
}
