:root {
  --bg: #eef2f7;
  --bg-accent: radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.09), transparent 55%),
    radial-gradient(900px 500px at 95% 0%, rgba(14, 165, 233, 0.07), transparent 50%);
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --play: #01875f;
  --play-hover: #016b4c;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 40px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-bg: rgba(255, 255, 255, 0.9);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1017;
    --bg-accent: radial-gradient(1000px 500px at 15% -5%, rgba(37, 99, 235, 0.18), transparent 50%),
      radial-gradient(800px 400px at 90% 5%, rgba(14, 165, 233, 0.1), transparent 45%);
    --surface: #141a24;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #2a3548;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --play: #00a070;
    --play-hover: #00c98a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(12, 16, 23, 0.88);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-accent);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  background: var(--play);
  border-radius: 8px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.wrap {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--header-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.2;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark {
  height: 1.5rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  color: var(--text);
  transition: color 0.15s ease;
}

.brand:hover .brand-text {
  color: var(--accent);
}

.hero {
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(2.25rem, 4vw, 3.25rem);
  text-align: center;
}

.hero-inner {
  max-width: 38rem;
  margin-inline: auto;
}

.hero-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--text);
}

.hero-lead {
  margin: 0 auto 1.35rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.hero-lead a {
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
}

.hero-scroll:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--border) 50%, transparent);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.section-heading {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.section-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.apps {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-title {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.app-meta {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.app-desc {
  margin: 0 0 1.25rem;
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.app-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-card-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg {
  flex-shrink: 0;
}

.btn--play {
  color: #fff;
  background: var(--play);
}

.btn--play:hover {
  color: #fff;
  background: var(--play-hover);
}

.btn--outline {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--secondary {
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer a {
  font-weight: 600;
}
