:root {
  --home-teal: #004d40;
  --home-teal-light: #0092a4;
  --home-gold: #f5c842;
  --home-surface: #f7faf9;
  --home-text: #1a2e2a;
  --home-muted: #5f736e;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--home-text);
  background: var(--home-surface);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--home-teal-light);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.5rem 1.25rem;
  background: var(--home-teal);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}

.brand-mark {
  color: var(--home-gold);
}

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

.header-nav a {
  color: #fff;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.65rem;
  border-radius: 8px;
  font-weight: 500;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  min-width: 44px;
  justify-content: center;
  padding: 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch a[aria-current="page"] {
  background: var(--home-gold);
  color: #1a2e2a;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--home-teal) 0%, #00695c 45%, var(--home-teal-light) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(245, 200, 66, 0.18), transparent 30%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 auto 2rem;
  max-width: 560px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--home-gold);
  color: #1a2e2a;
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.hero-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  font-size: 3rem;
  opacity: 0.14;
  animation: float 6s ease-in-out infinite;
}

.card-1 { top: 12%; left: 8%; }
.card-2 { top: 18%; right: 10%; animation-delay: 1s; color: #ff8a80; }
.card-3 { bottom: 18%; left: 14%; animation-delay: 2s; color: #ff8a80; }
.card-4 { bottom: 12%; right: 12%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

.section h2 {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 1.75rem;
  color: var(--home-teal);
}

.section-subtitle {
  text-align: center;
  color: var(--home-muted);
  margin: 0 auto 2rem;
  max-width: 640px;
  line-height: 1.6;
}

.demo-section {
  max-width: 1100px;
}

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

.feature-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 77, 64, 0.08);
  box-shadow: 0 10px 30px rgba(0, 77, 64, 0.08);
  text-align: center;
}

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

.feature-card p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.6;
}

.community-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: #fff;
  border-left: 4px solid var(--home-teal-light);
  box-shadow: 0 8px 24px rgba(0, 77, 64, 0.08);
}

.community-card p {
  margin: 0 0 0.75rem;
  line-height: 1.65;
}

.community-card p:last-child {
  margin-bottom: 0;
  color: var(--home-muted);
}

.rules-list {
  display: grid;
  gap: 0.75rem;
}

.rules-list details {
  background: #fff;
  border: 1px solid rgba(0, 77, 64, 0.08);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 6px 18px rgba(0, 77, 64, 0.05);
}

.rules-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--home-teal);
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}

.rules-list summary::-webkit-details-marker {
  display: none;
}

.rules-list summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--home-teal-light);
}

.rules-list details[open] summary::after {
  content: "–";
}

.rules-list details p,
.rules-list details ul,
.rules-list details ol {
  color: var(--home-muted);
  line-height: 1.7;
}

.rules-list ul,
.rules-list ol {
  padding-left: 1.2rem;
}

.cta-band {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
}

.cta-band .btn-primary {
  min-width: 220px;
}

.site-footer {
  background: #0d2b26;
  color: rgba(255, 255, 255, 0.82);
  padding: 1.5rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: #fff;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

@media (max-width: 600px) {
  .hero {
    padding: 3rem 1.25rem 4rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .header-nav a:not(.lang-switch a) {
    display: none;
  }

  .header-nav a.nav-play {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
