:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #1c1c1c;
  --muted: #5b5854;
  --accent: #ff6b2d;
  --accent-soft: rgba(255, 107, 45, 0.16);
  --border: rgba(27, 24, 21, 0.12);
  --shadow: 0 24px 60px rgba(18, 18, 18, 0.14);
  --app-primary: #1e63d5;
  --app-primary-bright: #2e7bf6;
  --app-background: #f4f6fb;
  --app-surface: #ffffff;
  --app-surface-muted: #f1f2f6;
  --app-border: #d8dee8;
  --app-text-primary: #172136;
  --app-text-secondary: #4b5565;
  --app-text-muted: #6b7285;
  --app-space-xs: 4px;
  --app-space-sm: 8px;
  --app-space-md: 12px;
  --app-space-lg: 16px;
  --app-space-xl: 24px;
  --app-space-xxl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.95), transparent 45%),
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.7), transparent 40%),
    radial-gradient(rgba(27, 24, 21, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 20px 20px;
}

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

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

.container {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 239, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  padding: 6px 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
}

.lang-option {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}

.lang-option.is-active {
  background: var(--accent);
  color: #fffaf7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fffaf7;
  box-shadow: 0 16px 30px rgba(255, 107, 45, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(255, 107, 45, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 107, 45, 0.35);
  outline-offset: 3px;
}

.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  margin: 12px 0 8px;
}

.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
}

.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.hero-highlights {
  display: grid;
  gap: 16px;
  font-size: 0.95rem;
}

.highlight-title {
  display: block;
  font-weight: 600;
}

.highlight-sub {
  color: var(--muted);
}

.hero-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.program-card {
  background: var(--app-surface);
  border-color: var(--app-border);
  color: var(--app-text-primary);
}

.program-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--app-space-lg);
  font-size: 14px;
  line-height: 20px;
  color: var(--app-text-muted);
}

.program-label {
  font-weight: 600;
  color: var(--app-text-primary);
}

.program-card-body h3 {
  margin: 0 0 var(--app-space-sm);
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: var(--app-text-primary);
}

.program-card-body p {
  margin: 0 0 var(--app-space-lg);
  font-size: 16px;
  line-height: 24px;
  color: var(--app-text-secondary);
}

.program-list {
  display: grid;
  gap: var(--app-space-md);
}

.program-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--app-space-md);
  padding: var(--app-space-md) var(--app-space-lg);
  border-radius: 16px;
  background: var(--app-surface-muted);
}

.program-row > div {
  flex: 1;
  min-width: 0;
}

.program-title {
  display: block;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--app-text-primary);
}

.program-subtitle {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--app-text-muted);
}

.program-badge {
  padding: var(--app-space-xs) var(--app-space-md);
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  white-space: nowrap;
}

.program-card-footer {
  margin-top: var(--app-space-lg);
  display: grid;
  gap: var(--app-space-sm);
}

.program-btn {
  background: var(--app-primary);
  color: #ffffff;
  width: fit-content;
  box-shadow: 0 16px 30px rgba(30, 99, 213, 0.25);
}

.program-note {
  font-size: 14px;
  line-height: 20px;
  color: var(--app-text-muted);
}

.section {
  padding: 56px 0;
  scroll-margin-top: 100px;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  margin: 0 0 8px;
}

.section-header p {
  margin: 0 0 24px;
  color: var(--muted);
}

.download-grid {
  display: grid;
  gap: 20px;
}

.download-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  display: grid;
  gap: 20px;
}

.download-copy h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.qr-block {
  background: rgba(247, 244, 239, 0.8);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.qr-block img {
  width: 160px;
  height: 160px;
}

.release-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.release-list li {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
}

.support-grid {
  display: grid;
  gap: 28px;
}

.support-email {
  font-weight: 600;
  margin: 12px 0 20px;
}

.support-note {
  background: var(--accent-soft);
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--muted);
}

.support-form {
  display: block;
  background: var(--surface);
  padding: 0;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.support-form iframe {
  display: block;
  width: 100%;
  min-height: 860px;
  border: 0;
}

.form-note {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.legal {
  padding: 80px 0 60px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--muted);
}

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

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .download-card {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .support-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 88px 0 64px;
  }

  .section {
    padding: 72px 0;
  }
}
