:root {
  --color-bg-primary: #0a0e1a;
  --color-bg-card: rgba(30, 41, 59, 0.55);
  --color-border: rgba(148, 163, 184, 0.12);
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-accent: #06b6d4;
  --color-accent-2: #10b981;
  --color-accent-glow: rgba(6, 182, 212, 0.25);
  --radius-lg: 16px;
  --radius-full: 9999px;
  --max-width: 1080px;
}

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

html {
  color-scheme: dark;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.5;
  position: relative;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(900px 500px at 50% -10%, rgba(6, 182, 212, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
}

h1,
h2 {
  letter-spacing: -0.02em;
}

/* === Header === */

.site-header {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  border-radius: 8px;
  display: block;
}

/* === Buttons / badges === */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #04121a;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-full);
  padding: 8px 18px;
}

.badge-muted {
  color: var(--color-text-secondary);
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--color-border);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge-dot {
    animation: none;
  }
}

/* === Hero === */

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  padding: 72px 0 56px;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 560px;
}

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

/* === Feature cards === */

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

.feature-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(16, 185, 129, 0.22));
  border: 1px solid rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* === Panels (Get the app / Docs / Store) === */

.panel {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
}

.panel h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.panel p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  max-width: 60ch;
}

.panel-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.panel-note a {
  color: var(--color-accent);
  text-decoration: none;
}

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

.panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel-row .panel {
  margin-bottom: 0;
}

/* === Footer === */

.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

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

/* === Responsive === */

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }

  .panel-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 40px;
  }
}
