/* ═══════════════════ FOUNDATION ═══════════════════ */
:root {
  --blue: #0066FF;
  --cyan: #00CCCC;
  --dark-bg: #0a0a1a;
  --card-bg: #12122a;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e0e4f0;
  --text-muted: #8890a8;
  --radius: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ═══════════════════ NAV ═══════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.logo img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(0, 204, 204, 0.08) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

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

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.25);
  color: #6cb4ff;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0088ee);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(0, 102, 255, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.platform-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ═══════════════════ FEATURES ═══════════════════ */
.features {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 204, 204, 0.1));
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ═══════════════════ DOWNLOAD ═══════════════════ */
.download {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 102, 255, 0.03) 100%);
}

.install-commands {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-command {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px 16px;
  align-items: start;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.install-command-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 6px;
}

.install-command-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.install-command-row code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.install-command-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.install-command-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.install-command-note a {
  color: #6cb4ff;
  text-decoration: none;
}

.install-command-note a:hover {
  text-decoration: underline;
}

.copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 102, 255, 0.08);
  color: #6cb4ff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.copy-btn:hover {
  background: rgba(0, 102, 255, 0.18);
  border-color: rgba(0, 102, 255, 0.35);
  color: #9cc8ff;
}

.copy-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.copy-btn .copy-icon-done {
  display: none;
}

.copy-btn.copied {
  color: #5ee0a8;
  border-color: rgba(94, 224, 168, 0.35);
  background: rgba(94, 224, 168, 0.1);
}

.copy-btn.copied .copy-icon {
  display: none;
}

.copy-btn.copied .copy-icon-done {
  display: block;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: rgba(0, 102, 255, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 102, 255, 0.15);
}

.download-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 204, 204, 0.08));
  color: #6cb4ff;
  margin-bottom: 20px;
}

.download-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-format {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.download-req {
  font-size: 11px;
  color: #555;
}

.download-card.chrome .download-icon {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(15, 157, 88, 0.1));
  color: #4285f4;
}

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-brand img {
  border-radius: 6px;
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer a {
  color: #6cb4ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .install-command {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .install-command-label {
    padding-top: 0;
  }
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

/* ═══════════════════ PROSE (legal / press) ═══════════════════ */
.page-main {
  padding: 120px 0 80px;
  min-height: 70vh;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 0.75rem;
}

.prose ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose a {
  color: #6cb4ff;
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.prose .meta {
  font-size: 13px;
  color: #555;
  margin-bottom: 2rem;
}

.brand-swatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin: 8px 8px 0 0;
  font-size: 13px;
}

.brand-swatch span {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}

.press-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.press-card img {
  border-radius: 16px;
  max-width: 100%;
  height: auto;
}

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