:root {
  --bg: #F5F0EB;
  --fg: #1A1A1A;
  --muted: #5A5652;
  --primary: #FF5A3E;
  --primary-dark: #E84430;
  --surface: #FFFFFF;
  --border: rgba(26, 26, 26, 0.12);
  --shadow: 0 2px 8px rgba(26, 26, 26, 0.08);
  --radius: 0.75rem;
  --max-width: 60rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -2.5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--surface);
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

header {
  padding: 1.25rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo img {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: var(--radius);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

.hero {
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--fg);
}

.features {
  padding: 2rem 0 4rem;
}

.features h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.download {
  padding: 2rem 0 3.5rem;
}

.download h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.platform-card .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.platform-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.platform-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}

.meta code {
  display: inline-block;
  word-break: break-all;
  font-size: 0.75rem;
  background: var(--bg);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

footer a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

footer a:hover {
  color: var(--primary-dark);
}

.disclosure {
  max-width: 44rem;
  line-height: 1.5;
}

.page-article {
  text-align: left;
  max-width: 44rem;
  margin: 0 auto;
  padding-top: 1rem;
}

.page-article h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.page-article a {
  color: var(--primary-dark);
}

.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;
}
