:root {
  --bg: #f3efe6;
  --bg-accent: #e2d4b7;
  --surface: rgba(255, 252, 245, 0.86);
  --surface-strong: #fffdf7;
  --text: #1f241f;
  --muted: #5a6059;
  --line: rgba(31, 36, 31, 0.12);
  --brand: #9e4f2b;
  --brand-deep: #5c2f16;
  --leaf: #547043;
  --shadow: 0 18px 48px rgba(52, 39, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(158, 79, 43, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(84, 112, 67, 0.2), transparent 28%),
    linear-gradient(180deg, #f7f2e8 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

.site-shell,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.topbar-home {
  color: var(--brand-deep);
  text-decoration: none;
  font: 700 0.95rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.8);
  border: 1px solid var(--line);
}

.lang-switch a,
.lang-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--brand-deep);
  font: 700 0.82rem/1 "Space Grotesk", sans-serif;
}

.lang-switch a.is-active,
.lang-static {
  background: var(--brand);
  color: #fff7ef;
}

.hero,
.page-hero,
.apps-section,
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero,
.page-hero {
  border-radius: 32px;
  padding: 40px;
}

.eyebrow,
.app-kicker {
  margin: 0 0 12px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-family: "Space Grotesk", sans-serif;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-family: "Space Grotesk", sans-serif;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

p {
  margin: 0;
  line-height: 1.72;
  color: var(--muted);
}

.hero-copy,
.page-intro {
  margin-top: 20px;
  max-width: 720px;
  font-size: 1.05rem;
}

.hero-grid,
.facts-grid,
.feature-grid,
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.info-card,
.fact-card,
.feature-card,
.app-card {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.info-card h2,
.fact-card h2,
.feature-card h2,
.feature-card h3,
.app-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.apps-section,
.content-card {
  margin-top: 24px;
  border-radius: 32px;
  padding: 32px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.app-card {
  display: block;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-2px);
  background: #fcf5e9;
  border-color: rgba(92, 47, 22, 0.24);
  outline: none;
}

.app-card p {
  margin-top: 8px;
}

.tab-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #e8e0d0;
  color: var(--brand-deep);
  font: 600 0.95rem/1 "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.tab-button:hover,
.tab-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  background: #d8ccb4;
}

.tab-button.is-active {
  background: var(--brand);
  color: #fff7ef;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.app-summary {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 252, 245, 0.96), rgba(244, 237, 225, 0.9));
  border: 1px solid var(--line);
}

.link-grid,
.action-row {
  display: grid;
  gap: 12px;
  align-content: start;
}

.link-grid a,
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff8ee;
  border: 1px solid rgba(92, 47, 22, 0.14);
  text-decoration: none;
  font-weight: 600;
  color: var(--brand-deep);
  transition: background 180ms ease, transform 180ms ease;
}

.link-grid a:hover,
.action-link:hover,
.link-grid a:focus-visible,
.action-link:focus-visible {
  background: #f0e3ce;
  transform: translateY(-1px);
  outline: none;
}

.page-shell {
  padding-top: 24px;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 112, 67, 0.28), transparent 70%);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.meta-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.9);
  font: 600 0.9rem/1 "Space Grotesk", sans-serif;
  color: var(--brand-deep);
}

.content-stack {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.content-card h2 {
  margin-bottom: 14px;
}

.content-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.72;
}

.content-card li + li {
  margin-top: 10px;
}

.page-footer {
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 860px) {
  .hero,
  .page-hero,
  .apps-section,
  .content-card {
    padding: 24px;
    border-radius: 24px;
  }

  .hero-grid,
  .facts-grid,
  .feature-grid,
  .app-summary {
    grid-template-columns: 1fr;
  }

  .site-shell,
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-bottom: 40px;
  }
}
