:root {
  color-scheme: dark;
  --purple-primary: #ad46ff;
  --purple-solid-hover: #c06cff;
  --purple-accent: rgba(173, 70, 255, 0.2);
  --purple-accent-strong: rgba(173, 70, 255, 0.34);
  --automotive-accent: #008c99;
  --accent: var(--automotive-accent);
  --accent-foreground: #000000;
  --accent-action-foreground: var(--text-primary);
  --accent-glow-opacity: 0.25;
  --accent-glow: rgba(0, 140, 153, var(--accent-glow-opacity));
  --launcher-play: #48c774;

  --bg-gradient: linear-gradient(135deg, rgb(25, 25, 25) 5.61%, rgb(42, 36, 50) 94.39%);
  --text-primary: rgba(255, 255, 255, 1);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-subtle: rgba(255, 255, 255, 0.3);

  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-bg-elevated: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-stroke-gradient: linear-gradient(
    166deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 41%,
    rgba(255, 255, 255, 0) 57%,
    rgba(255, 255, 255, 0.1) 100%
  );

  --focus-ring: rgba(173, 70, 255, 0.25);
  --danger-surface: rgba(244, 63, 94, 0.14);
  --danger-border: rgba(251, 113, 133, 0.28);
  --danger-text: rgba(254, 205, 211, 0.95);
  --warning-surface: rgba(245, 158, 11, 0.18);
  --warning-border: rgba(251, 191, 36, 0.3);
  --warning-text: rgba(253, 230, 138, 0.95);
  --success-surface: rgba(34, 197, 94, 0.14);
  --success-border: rgba(34, 197, 94, 0.28);
  --success-text: rgba(187, 247, 208, 0.95);

  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-inner: 16px;
  --radius-control: 14px;
  --transition-quiet: 180ms ease;
}

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

* {
  margin: 0;
}

html {
  min-height: 100%;
  background: var(--bg-gradient);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background: transparent;
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

.glass-surface,
.glass-surface-elevated {
  position: relative;
  isolation: isolate;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.glass-surface {
  background: var(--glass-bg);
}

.glass-surface-elevated {
  background: var(--glass-bg-elevated);
}

.glass-surface::before,
.glass-surface-elevated::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--glass-stroke-gradient);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.accent-surface {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-action-foreground);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 20px -16px var(--accent-glow);
}

/* Layout and Components */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

main {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Branding Pill */
.branding-pill {
  position: sticky;
  top: 24px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-pill);
  z-index: 100;
  margin-bottom: 64px;
  overflow: hidden;
  background: rgba(20, 20, 24, 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  transition: opacity 180ms ease;
}

.brand-link:hover,
.brand-link:focus,
.brand-link:focus-visible,
.brand-link:active {
  text-decoration: none;
}

.brand-link:hover {
  opacity: 0.8;
}

.brand-name {
  display: flex;
  align-items: center;
  font-style: italic;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 17.5px; /* Scaled 1.25x from 14px */
  line-height: 1;
  user-select: none;
  padding: 7.5px 10px 7.5px 15px; /* Scaled 1.25x */
}

.brand-sim {
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-launcher {
  letter-spacing: 0.01em;
  color: var(--accent);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-launcher svg {
  height: 1em;
  width: 1em;
  fill: var(--launcher-play);
  margin-left: 0;
  flex-shrink: 0;
}

.launcher-play-mark {
  transform: skewX(-10deg);
}

.divider {
  position: relative;
  z-index: 10;
  width: 1px;
  height: 20px; /* Scaled 1.25x from 16px */
  background: var(--glass-border);
  opacity: 0.35;
}

.github-stars {
  display: flex;
  align-items: center;
  gap: 7.5px;
  color: var(--text-secondary);
  font-size: 17.5px;
  font-weight: 500;
  padding: 7.5px 12.5px 7.5px 10px;
  text-decoration: none;
}

.github-stars svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.github-stars-label {
  color: var(--text-muted);
  font-size: 13px;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  margin-bottom: 96px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.version-tag {
  opacity: 0.7;
  font-size: 0.85em;
  margin-left: 8px;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-decoration: none;
  transition: all 180ms ease;
  cursor: pointer;
  border: none;
  will-change: transform;
}

.btn:hover {
  transform: scale(1.04);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-action-foreground);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 20px -16px var(--accent-glow);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
    0 0 18px -8px var(--accent-glow),
    0 0 42px -18px var(--accent-glow);
}

.btn-secondary {
  background: var(--glass-bg-elevated);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--glass-border);
  color: var(--text-primary);
}

.hero-screenshot-placeholder {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 64px;
}

/* Features Section */
.features {
  width: 100%;
  max-width: 960px;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Supported Grid Section */
.supported-grid {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 120px;
}

.grid-group {
  padding: 32px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
}

.group-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Who Is This For Section */
.comparison-grid {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 120px;
}

.pros, .cons {
  padding: 32px;
  border-radius: var(--radius-card);
}

.pros h3, .cons h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pros li, .cons li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.check-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--launcher-play);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.x-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #f87171;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-screenshot-frame {
  width: 100%;
  max-width: 960px;
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 12px;
  margin-bottom: 64px;
  /* Optional elegant fade effect at the bottom if the image is too tall */
  /* mask-image: linear-gradient(to bottom, black 85%, transparent 100%); */
}

/* Footer */
.site-footer {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.support-heart {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #f87171;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 6px;
  transition: fill 0.2s ease;
}

.support-link:hover .support-heart {
  fill: rgba(248, 113, 113, 0.2);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0;
}

.hero-screenshot {
  width: 100%;
  border-radius: var(--radius-inner);
  display: block;
}
