:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-contrast: #f8fafc;
  --bg-alt: #f1f5f9;
  --card-surface: #ffffff;
  --card-border: rgba(148, 163, 184, 0.2);
  --card-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --fg: #e2e8f0;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --accent-contrast: #0f172a;
    --bg-alt: #1e293b;
    --card-surface: rgba(30, 41, 59, 0.9);
    --card-border: rgba(148, 163, 184, 0.25);
    --card-shadow: 0 12px 28px rgba(15, 23, 42, 0.45);
  }
}

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

body {
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  margin: 0 auto;
  max-width: 960px;
  padding: 0 1.5rem;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
}

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

.hero {
  background: var(--bg);
  padding: 5rem 0 4rem;
}

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

@media (max-width: 720px) {
  .site-header .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-header nav {
    gap: 0.75rem;
    justify-content: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    justify-self: center;
  }
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-media img {
  border-radius: 0;
  max-width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-self: start;
  max-width: 522px;
}

.hero-content h2 {
  font-size: 2.4rem;
  line-height: 1.2;
}

.hero-content p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-badge {
  margin-top: 1.5rem;
}

.hero-badge img {
  display: block;
  height: auto;
  max-width: 100%;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.section-lead {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 640px;
}

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

.grid article,
.grid section {
  background: rgba(15, 23, 42, 0.02);
  border-radius: 12px;
  padding: 1.5rem;
}

#features .grid article {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

#core-symbols .symbol-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

@media (prefers-color-scheme: dark) {
  .grid article,
  .grid section {
    background: rgba(148, 163, 184, 0.08);
  }
}

.grid h4,
.grid h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.symbols-grid {
  margin-top: 2.5rem;
}

.symbol-card {
  --symbol-color: var(--accent);
  --symbol-border: rgba(37, 99, 235, 0.35);
  --symbol-surface: rgba(37, 99, 235, 0.12);
  --symbol-icon-bg: rgba(37, 99, 235, 0.18);
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: grid;
  column-gap: 1.5rem;
  grid-template-columns: auto 1fr;
  row-gap: 0.75rem;
  box-shadow: var(--card-shadow);
  padding: 1.75rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.symbol-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

@media (prefers-color-scheme: dark) {
  .symbol-card:hover {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.45);
  }
}

.symbol-card p {
  color: var(--muted);
  margin: 0;
  grid-column: 1 / -1;
}

.symbol-icon {
  align-items: center;
  background: var(--symbol-icon-bg);
  border-radius: 24px;
  display: inline-flex;
  height: 96px;
  justify-content: center;
  width: 96px;
}

.symbol-icon img {
  display: block;
  height: auto;
  width: auto;
}

@media (max-width: 720px) {
  .symbol-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .symbol-icon {
    justify-self: center;
  }
}

.symbol-copy h4 {
  font-size: 1.6rem;
  margin: 0;
}

.symbol-copy {
  align-self: center;
}

.symbol-card--milestones {
  --symbol-color: #ffcc00;
  --symbol-border: rgba(255, 204, 0, 0.55);
  --symbol-surface: rgba(255, 204, 0, 0.14);
  --symbol-icon-bg: rgba(255, 204, 0, 0.28);
}

.symbol-card--events {
  --symbol-color: #0a84ff;
  --symbol-border: rgba(10, 132, 255, 0.5);
  --symbol-surface: rgba(10, 132, 255, 0.14);
  --symbol-icon-bg: rgba(10, 132, 255, 0.28);
}

.symbol-card--rules {
  --symbol-color: #af52de;
  --symbol-border: rgba(175, 82, 222, 0.55);
  --symbol-surface: rgba(175, 82, 222, 0.14);
  --symbol-icon-bg: rgba(175, 82, 222, 0.28);
}

.symbol-card--second-life {
  --symbol-color: #c6b1ed;
  --symbol-border: rgba(198, 177, 237, 0.55);
  --symbol-surface: rgba(198, 177, 237, 0.14);
  --symbol-icon-bg: rgba(198, 177, 237, 0.28);
}

.symbol-card--loans {
  --symbol-color: #34c759;
  --symbol-border: rgba(52, 199, 89, 0.55);
  --symbol-surface: rgba(52, 199, 89, 0.14);
  --symbol-icon-bg: rgba(52, 199, 89, 0.28);
}

.symbol-card--warranty {
  --symbol-color: #fa9d96;
  --symbol-border: rgba(250, 157, 150, 0.55);
  --symbol-surface: rgba(250, 157, 150, 0.14);
  --symbol-icon-bg: rgba(250, 157, 150, 0.28);
}

ul {
  padding-left: 1.2rem;
}

ul li + li {
  margin-top: 0.5rem;
}

.link {
  display: inline-block;
  margin-top: 1rem;
}

.app-store-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.app-store-links a {
  display: inline-flex;
}

.app-store-links img {
  display: block;
  height: auto;
  max-width: 100%;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 2rem 0;
  text-align: center;
}

.meta {
  color: var(--muted);
  margin-bottom: 1rem;
}

.mt {
  margin-top: 3rem;
}

.subscribe-form {
  display: grid;
  gap: 0.75rem;
}

.subscribe-form input,
.subscribe-form button {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font: inherit;
  padding: 0.75rem;
}

.subscribe-form button {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  cursor: not-allowed;
}

.helper {
  color: var(--muted);
  font-size: 0.9rem;
}

.screenshots-carousel {
  background: var(--bg);
  border-radius: 24px;
  column-gap: 1.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  margin-top: 2rem;
  overflow-x: auto;
  padding: 1.5rem 1rem;
  scroll-snap-type: x mandatory;
}

.screenshots-carousel::-webkit-scrollbar {
  height: 8px;
}

.screenshots-carousel::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.15);
  border-radius: 4px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.3);
  border-radius: 4px;
}

.screenshots-item {
  background: transparent;
  border: none;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
}

.screenshots-item img {
  display: block;
  height: auto;
  width: 100%;
}
