/* =========================================================
   Base
   ========================================================= */

:root {
  --body: #0a0c14;
  --surface: #141824;

  --sidebar: #10131f;
  --sidebar-hover: #1a1e2e;
  --sidebar-border: #232838;

  --accent-50: #f5f3ff;
  --accent-100: #ede9fe;
  --accent-400: #a78bfa;
  --accent-500: #7c6cf0;
  --accent-600: #6552e8;
  --accent-700: #5340c9;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --amber: #fbbf24;
  --amber-light: #fcd34d;

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: var(--body);
  color: #cbd5e1;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

svg {
  display: block;
}

.icon {
  fill: currentColor;
  flex-shrink: 0;
}

.icon-xs {
  width: 12px;
  height: 12px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-shrink {
  flex-shrink: 0;
}

.icon-muted {
  opacity: 0.7;
}

/* =========================================================
   Scrollbar
   ========================================================= */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0c14;
}

::-webkit-scrollbar-thumb {
  background: #232838;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* =========================================================
   Layout
   ========================================================= */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.container-wide {
  max-width: 1152px;
}

.container-hero {
  max-width: 1024px;
}

.container-download {
  max-width: 896px;
}

.main-content {
  flex-grow: 1;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(10, 12, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--sidebar-border);
}

.header-inner {
  height: 64px;
  padding-left: 24px;
  padding-right: 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 32px;
  height: 32px;

  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;

  box-shadow: 0 4px 6px rgba(124, 108, 240, 0.2);

  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;

  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.desktop-nav a {
  transition: color 150ms ease;
}

.desktop-nav a:hover {
  color: #f1f5f9;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   Hero
   ========================================================= */

.hero-section {
  padding: 80px 24px 64px;
  text-align: center;
}

.hero-title {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;

  color: #f1f5f9;

  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;

  letter-spacing: -0.025em;
}

.hero-description {
  max-width: 672px;
  margin: 24px auto 0;

  color: #94a3b8;

  font-size: 18px;
  line-height: 1.625;
  font-weight: 400;
}

.hero-actions {
  margin-top: 40px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.primary-button,
.secondary-button {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 500;

  border-radius: 8px;

  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.primary-button {
  padding: 14px 28px;

  background: var(--accent-500);
  color: white;

  gap: 10px;

  box-shadow: 0 10px 15px -3px rgba(124, 108, 240, 0.25);
}

.primary-button:hover {
  background: var(--accent-600);
}

.primary-button:active {
  background: var(--accent-700);
}

.secondary-button {
  padding: 14px 20px;

  background: var(--sidebar-hover);
  border: 1px solid var(--sidebar-border);

  color: #cbd5e1;

  gap: 8px;
}

.secondary-button:hover {
  background: var(--sidebar-border);
  color: white;
}

.security-warning {
  margin-top: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  color: rgba(251, 191, 36, 0.9);

  font-size: 12px;
  font-weight: 500;
}

.security-warning a {
  text-decoration: underline;
  transition: color 150ms ease;
}

.security-warning a:hover {
  color: #fcd34d;
}

/* =========================================================
   Demo
   ========================================================= */

.demo-section {
  padding-left: 24px;
  padding-right: 24px;
  margin-bottom: 96px;
}

.demo-section img {
  width: 100%;
  height: auto;
}

/* =========================================================
   How It Works
   ========================================================= */

.how-it-works-section {
  padding: 64px 24px;
  border-top: 1px solid var(--sidebar-border);
}

.how-it-works-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-heading {
  max-width: 576px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  color: #f1f5f9;

  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;

  letter-spacing: -0.025em;
}

.steps-grid {
  margin-top: 48px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.step {
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--accent-600);
  color: white;

  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.step h3 {
  margin-top: 16px;

  color: #e2e8f0;

  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

.step p {
  margin-top: 6px;

  color: #94a3b8;

  font-size: 13px;
  line-height: 1.625;
}

/* =========================================================
   Download
   ========================================================= */

.download-section {
  padding: 64px 24px;
  text-align: center;
}

.download-card {
  padding: 32px;

  border-radius: 16px;

  background: var(--sidebar);
  color: white;

  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.2),
    0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

.download-card > h2 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.download-description {
  max-width: 448px;
  margin: 8px auto 0;

  color: #94a3b8;

  font-size: 12px;
}

.download-buttons {
  margin-top: 32px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.os-btn {
  padding: 10px 20px;

  display: flex;
  align-items: center;
  gap: 8px;

  border: 1px solid var(--sidebar-border);
  border-radius: 8px;

  background: var(--sidebar-hover);
  color: #cbd5e1;

  font-size: 12px;
  font-weight: 600;

  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.os-btn:hover {
  background: var(--sidebar-border);
  color: white;
}

.os-btn.active-os {
  background: var(--accent-500);
  border-color: transparent;
  color: white;

  box-shadow: 0 10px 15px -3px rgba(124, 108, 240, 0.3);
}

.os-btn.active-os:hover {
  background: var(--accent-600);
}

/* =========================================================
   First Launch Notes
   ========================================================= */

.first-launch-notes {
  margin-top: 32px;
  padding: 24px;

  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;

  background: rgba(245, 158, 11, 0.05);

  color: #cbd5e1;

  text-align: left;
}

.notes-heading {
  margin-bottom: 8px;

  display: flex;
  align-items: center;
  gap: 10px;

  color: #fbbf24;

  font-size: 16px;
  font-weight: 600;
}

.notes-heading h3 {
  font-size: 16px;
  font-weight: 600;
}

.notes-description {
  color: #94a3b8;

  font-size: 12px;
  line-height: 1.625;
}

.platform-notes-grid {
  margin-top: 24px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;

  font-size: 12px;
}

.platform-note {
  padding: 16px;

  border: 1px solid var(--sidebar-border);
  border-radius: 12px;

  background: rgba(16, 19, 31, 0.5);
}

.platform-note h4 {
  margin-bottom: 8px;

  display: flex;
  align-items: center;
  gap: 8px;

  color: #f1f5f9;

  font-size: 14px;
  font-weight: 700;
}

.platform-note h4 .icon {
  opacity: 0.8;
}

.platform-description {
  margin-bottom: 12px;

  color: #94a3b8;
  line-height: 1.625;
}

.how-to-run {
  display: block;
  margin-bottom: 4px;

  color: #e2e8f0;

  font-weight: 600;
}

.platform-note ol {
  margin: 0;
  padding-left: 20px;

  color: #94a3b8;

  line-height: 1.625;
}

.platform-note li {
  padding-left: 2px;
}

.platform-note strong {
  color: #cbd5e1;
}

.platform-link {
  margin-top: 16px;
  padding-top: 12px;

  border-top: 1px solid var(--sidebar-border);
}

.platform-link a {
  display: flex;
  align-items: center;
  gap: 4px;

  color: var(--accent-400);

  transition: text-decoration 150ms ease;
}

.platform-link a:hover {
  text-decoration: underline;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 32px 24px;

  border-top: 1px solid var(--sidebar-border);

  background: rgba(16, 19, 31, 0.4);

  color: #64748b;

  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-content span:first-child {
  color: #cbd5e1;
  font-weight: 700;
}

/* =========================================================
   Utility
   ========================================================= */

.glow-subtle {
  box-shadow: 0 0 80px -20px rgba(124, 108, 240, 0.15);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }

  .primary-button,
  .secondary-button {
    width: auto;
  }

  .footer-inner {
    justify-content: space-between;
  }

  .footer-content {
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .hero-title {
    font-size: 60px;
  }

  .hero-description {
    font-size: 20px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .platform-notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .header-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .how-it-works-section,
  .download-section {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* =========================================================
   Small Screens
   ========================================================= */

@media (max-width: 639px) {
  .security-warning {
    align-items: flex-start;
  }

  .download-card {
    padding: 24px;
  }

  .first-launch-notes {
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
