:root {
  --bg: #f7f9f8;
  --bg-deep: #eef3f0;
  --surface: #ffffff;
  --text: #17211b;
  --text-soft: #3e5148;
  --muted: #66736b;
  --border: #e2e8e4;
  --border-strong: #c9d5ce;
  --primary: #16a34a;
  --primary-dark: #087a3b;
  --primary-light: #4ade5a;
  --primary-soft: #eaf8ef;
  --primary-mid: #b7e4c7;
  --accent: #ff3d4f;
  --accent-soft: #fff1f2;
  --shadow: rgba(23, 33, 27, 0.08);
  --gradient: linear-gradient(135deg, #6eef7a 0%, #22c55e 42%, #087a3b 100%);
  --gradient-deep: linear-gradient(145deg, #065f2e 0%, #087a3b 42%, #16a34a 100%);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1120px;
  --header-h: 76px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 40% at 100% -10%, rgba(74, 222, 90, 0.14), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid #86d9a0;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--gradient);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: min(calc(100% - 40px), var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: 0 10px 30px rgba(23, 33, 27, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: 176px;
  height: 52px;
  object-fit: contain;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.logo-mark:hover {
  color: #d9ffe4;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f4f8f5);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(23, 33, 27, 0.04);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px 6px;
}

.nav a:not(.btn) {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:not(.btn):hover,
.nav a.is-active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, background 0.16s ease;
}

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

.btn-primary {
  border: 0;
  background-image: linear-gradient(180deg, #4ade60 0%, #22c55e 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.22);
}

.btn-primary:hover {
  color: #fff;
  background-image: linear-gradient(180deg, #62ee74 0%, #2ad064 100%);
  box-shadow: 0 12px 22px rgba(22, 163, 74, 0.28);
}

.btn-ghost {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7f4 100%);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 1px 2px rgba(23, 33, 27, 0.05);
}

.btn-ghost:hover {
  color: var(--primary-dark);
  border-color: #8ed9a8;
  background: linear-gradient(180deg, #ffffff 0%, #eaf8ef 100%);
}

.btn-accent {
  background-image: linear-gradient(135deg, #ff8a93 0%, #ff3d4f 55%, #e11d48 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.25);
}

.btn-accent:hover {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: linear-gradient(180deg, #f4fff7, var(--primary-soft));
  border: 1px solid #c9eed6;
  padding: 6px 12px;
  border-radius: 999px;
}

h1,
h2,
h3,
.display {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 600;
}

h3 {
  font-size: 1.22rem;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: -0.03em;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-soft);
  max-width: 42rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 84px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  inset: -18% auto auto -12%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(74, 222, 90, 0.28), transparent 68%);
}

.hero::after {
  right: -8%;
  bottom: -20%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 61, 79, 0.1), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy p {
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
  flex-shrink: 0;
}

.hero-stage {
  position: relative;
  min-height: 460px;
}

.mascot-wrap {
  position: absolute;
  left: -6%;
  bottom: -2%;
  width: 58%;
  z-index: 1;
  filter: drop-shadow(0 28px 28px rgba(8, 122, 59, 0.22));
}

.flashcard {
  position: absolute;
  right: 0;
  top: 0;
  width: min(280px, 70%);
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  border: 1px solid rgba(201, 213, 206, 0.9);
  border-radius: 26px;
  padding: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 50px rgba(23, 33, 27, 0.1);
  transform: rotate(6deg);
}

.flashcard.back {
  top: 196px;
  right: 8px;
  transform: rotate(-5deg);
  z-index: 3;
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 22px 40px rgba(8, 122, 59, 0.28);
}

.flashcard .lang {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.flashcard.back .lang {
  color: rgba(255, 255, 255, 0.78);
}

.flashcard .word {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 10px 0 6px;
}

.flashcard .hint {
  color: var(--text-soft);
  margin: 0;
}

.flashcard.back .word,
.flashcard.back .hint {
  color: #fff;
}

.section {
  padding: 80px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), #ffffff 24%, #ffffff);
  border-block: 1px solid rgba(226, 232, 228, 0.8);
}

.section-primary {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255, 255, 255, 0.16), transparent 42%),
    var(--gradient-deep);
  color: #fff;
}

.section-primary h2,
.section-primary h3,
.section-primary .quote {
  color: #fff;
}

.section-primary p {
  color: #e5f8ec;
}

.grid-3,
.grid-2,
.lang-grid,
.steps {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(23, 33, 27, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #b7e4c7;
  box-shadow: 0 18px 40px rgba(23, 33, 27, 0.08);
}

.section-alt .card {
  background: linear-gradient(180deg, #fbfefc, var(--bg));
}

.icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f3fff6, #d8f5e3);
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.1);
}

.lang-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.lang-card {
  text-align: center;
  padding: 26px 16px 22px;
}

.lang-card .flag {
  font-size: 2rem;
  line-height: 1;
  margin: 0;
}

.lang-card h3 {
  margin: 12px 0 4px;
  font-size: 1.08rem;
}

.lang-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background-image: var(--gradient);
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(8, 122, 59, 0.18);
}

.badge.soon {
  color: #8a5a00;
  background-image: linear-gradient(180deg, #fffaf0, #fff1d6);
  box-shadow: none;
  border: 1px solid #f3ddb0;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px 20px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(23, 33, 27, 0.04);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, 0.18), transparent 46%),
    var(--gradient);
  color: #fff;
  border-radius: 32px;
  padding: 36px 40px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 22px 48px rgba(8, 122, 59, 0.22);
}

.cta-band h2,
.cta-band .lede {
  color: #fff;
}

.cta-band .lede {
  margin-bottom: 0;
}

.cta-band .btn-primary {
  flex-shrink: 0;
  border: 0;
  background-image: linear-gradient(180deg, #ffffff 0%, #e9fff1 100%);
  color: var(--primary-dark);
  box-shadow: 0 12px 24px rgba(6, 48, 24, 0.16);
}

.cta-band .btn-primary:hover {
  color: #065f2e;
  filter: none;
}

.quote {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.35;
  margin: 0 0 12px;
}

.prose {
  max-width: 760px;
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose h2 {
  margin-top: 1.4em;
}

.dekalog {
  display: grid;
  gap: 14px;
}

.dekalog article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px 22px;
  box-shadow: 0 10px 28px rgba(23, 33, 27, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dekalog article:hover {
  transform: translateY(-2px);
  border-color: #b7e4c7;
  box-shadow: 0 16px 36px rgba(23, 33, 27, 0.07);
}

.dekalog .num {
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dekalog h2 {
  font-size: 1.35rem;
  margin-bottom: 0.45em;
}

.dekalog p {
  margin: 0 0 0.85em;
  color: var(--text-soft);
  max-width: 58rem;
}

.dekalog p:last-child {
  margin-bottom: 0;
}

.legal h2 {
  font-size: 1.35rem;
  font-family: var(--font);
  margin-top: 1.6em;
}

.legal ol {
  padding-left: 1.2em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.site-footer {
  background: linear-gradient(180deg, #10281c 0%, #0b1c14 100%);
  color: #c9ddd4;
  padding: 56px 0 28px;
  margin-top: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.site-footer a {
  color: #e8f6f0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #b7e4c7;
}

.site-footer h2 {
  color: #fff;
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0 0 8px;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 0.88rem;
  color: #8aa39b;
}

.page-hero {
  position: relative;
  padding: 56px 0 8px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 420px;
  height: 320px;
  background: radial-gradient(circle, rgba(74, 222, 90, 0.2), transparent 70%);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
}

.page-hero .btn {
  margin: 8px 8px 0 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .steps,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band,
  .dekalog article {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-stage {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(calc(100% - 28px), var(--wrap));
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: 0 16px 30px rgba(23, 33, 27, 0.06);
  }

  .nav.is-open {
    display: flex;
  }

  .nav .btn {
    width: 100%;
    margin-top: 6px;
  }

  .hero,
  .section,
  .page-hero {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .page-hero {
    padding-bottom: 8px;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .steps,
  .footer-grid,
  .contact-grid,
  .lang-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 310px;
    order: -1;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .mascot-wrap {
    width: 44%;
    left: 0;
  }

  .flashcard {
    width: 58%;
    right: 2px;
    padding: 14px 16px;
    transform: rotate(3deg);
  }

  .flashcard.back {
    top: 152px;
    right: 0;
    transform: rotate(-3deg);
  }

  .flashcard .word {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.05;
  }

  .cta-band {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .flashcard,
  .card,
  .dekalog article,
  .nav a:not(.btn) {
    transition: none;
  }

  .card:hover,
  .dekalog article:hover,
  .btn:hover {
    transform: none;
  }
}
