:root {
  color-scheme: dark;
  --bg: #0f1013;
  --bg-elevated: #171920;
  --bg-panel: rgba(23, 25, 32, 0.8);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.7);
  --accent: #5c7cff;
  --accent-soft: rgba(92, 124, 255, 0.12);
  --accent-border: rgba(92, 124, 255, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --feature-card: rgba(255, 255, 255, 0.04);
  --hero-gradient: radial-gradient(circle at 20% 20%, rgba(92, 124, 255, 0.35), transparent 55%),
                   radial-gradient(circle at 80% 10%, rgba(255, 109, 177, 0.18), transparent 45%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

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

.container {
  width: min(1140px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 16, 19, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.branding {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.branding .glyph {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(92, 124, 255, 0.6), rgba(0, 0, 0, 0.25));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.brand-name {
  font-size: 1.1rem;
}

.site-nav {
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.4rem 0.65rem;
  font-size: 1.2rem;
}

.hero {
  padding: 6rem 0 4.5rem;
  background: var(--hero-gradient), radial-gradient(circle at bottom right, rgba(0, 177, 255, 0.18), transparent 40%);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: repeat( auto-fit, minmax(280px, 1fr));
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.hero-copy .hero-subtitle {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, #5c7cff, #8e9eff);
  color: var(--text);
  box-shadow: 0 14px 32px rgba(92, 124, 255, 0.35);
}

.button.primary:hover {
  transform: translateY(-2px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: var(--border);
}

.button.secondary:hover {
  border-color: var(--accent-border);
  background: rgba(92, 124, 255, 0.15);
}

.button-meta {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-visual .window {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(23, 25, 32, 0.6);
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 54px rgba(8, 10, 20, 0.6);
  overflow: hidden;
}

.chrome-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 16, 19, 0.6);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.dot.red { background: #f55c4a; }
.dot.yellow { background: #f8ce52; }
.dot.green { background: #52c869; }

.chrome-body {
  padding: 1.5rem;
}

.chat-preview {
  display: grid;
  gap: 1.4rem;
}

.chat-message {
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-message.user {
  background: rgba(92, 124, 255, 0.12);
  border-color: rgba(92, 124, 255, 0.35);
}

.chat-message.assistant {
  background: rgba(36, 42, 58, 0.9);
  border-color: rgba(92, 124, 255, 0.22);
}

.chat-message.thoughts {
  background: rgba(0, 0, 0, 0.25);
  border-style: dashed;
  font-size: 0.85rem;
}

.role {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.mono {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.features {
  padding: 5rem 0;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr));
}

.feature-card {
  background: var(--feature-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.2s ease, border 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 124, 255, 0.35);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(92, 124, 255, 0.12), transparent 60%);
}

.timeline-steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr));
}

.timeline-card {
  background: rgba(23, 25, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92, 124, 255, 0.25), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.timeline-card:hover::before {
  opacity: 1;
}

.badge {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(92, 124, 255, 0.2);
  border: 1px solid rgba(92, 124, 255, 0.45);
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-card h3 {
  margin: 0 0 0.75rem;
}

.timeline-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.download {
  padding: 5rem 0;
}

.download-card {
  background: linear-gradient(135deg, rgba(92, 124, 255, 0.32), rgba(14, 17, 28, 0.95));
  border-radius: 24px;
  padding: clamp(2rem, 2.5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(92, 124, 255, 0.32);
  box-shadow: 0 24px 44px rgba(15, 17, 28, 0.5);
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.download-note {
  color: rgba(245, 245, 247, 0.75);
}

.release-notes {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr));
  margin-top: 3rem;
}

.release-notes article {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.6rem;
}

.release-notes h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.release-notes p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.support {
  padding: 5rem 0;
}

.support-card {
  background: linear-gradient(135deg, rgba(23, 25, 32, 0.95), rgba(92, 124, 255, 0.12));
  border-radius: 24px;
  padding: clamp(2.4rem, 3vw, 3.4rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 54px rgba(8, 10, 20, 0.6);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.support-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.support-copy p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.support-details {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.support-label {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(245, 245, 247, 0.7);
}

.btc-address {
  word-break: break-all;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.support-hint {
  font-size: 0.9rem;
}

.support-visual {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.support-visual img {
  width: min(260px, 60vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(8, 10, 20, 0.5);
}

.support-note {
  color: rgba(245, 245, 247, 0.75);
  font-size: 0.9rem;
  margin: 0;
}

.faq {
  padding: 5rem 0 6rem;
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr));
}

.faq-card {
  background: rgba(23, 25, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
}

.faq-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.faq-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 11, 15, 0.95);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.footer-copy {
  color: var(--text-muted);
  margin: 1rem 0 0;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.footer-heading {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.footer-group a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  transition: color 0.2s ease;
}

.footer-group a:hover {
  color: var(--text);
}

.footer-legal {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 245, 247, 0.5);
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    flex-direction: column;
    gap: 1rem;
    background: rgba(15, 16, 19, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    min-width: 200px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .site-header .container {
    padding: 0.85rem 0;
  }

  .download-card {
    align-items: stretch;
  }
}
