/* Kalin Trades — Duolingo-inspired design tokens */
:root {
  --duo-green: #58CC02;
  --duo-green-light: #61E002;
  --duo-green-dark: #46A302;
  --duo-green-shadow: #58A700;
  --ink: #3C3C3C;
  --ink-strong: #4B4B4B;
  --muted: #777777;
  --muted-light: #AFAFAF;
  --canvas: #FFFFFF;
  --wash-blue: #DDF4FF;
  --surface: #FFFFFF;
  --surface-alt: #F7F7F7;
  --border: #E5E5E5;
  --border-strong: #DADADA;
  --link-blue: #1CB0F6;
  --link-blue-dark: #1B99D6;
  --navy: #042C60;
  --super-navy: #100F3E;
  --super-ink: #000437;
  --footer-soft: #D7FFB8;
  --warning: #FFC800;
  --streak: #FF9600;
  --error: #FF4B4B;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --max: 988px;
  --wide: 1090px;
  --section-pad: 96px;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-display: "Nunito", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  color: var(--muted);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link-blue);
  text-decoration: none;
}

a:hover {
  color: var(--link-blue-dark);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: var(--wide);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--duo-green);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--link-blue);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: var(--canvas);
  border-bottom: 2px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--duo-green);
  text-decoration: none;
}

.logo:hover {
  color: var(--duo-green-dark);
}

.logo__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.header-cta {
  font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.1s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--duo-green);
  color: #fff;
  box-shadow: 0 4px 0 var(--duo-green-shadow);
}

.btn--primary:hover {
  background: var(--duo-green-light);
  color: #fff;
}

.btn--primary:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn--secondary {
  background: var(--surface);
  color: var(--link-blue);
  border: 2px solid var(--border);
  box-shadow: 0 4px 0 var(--border-strong);
}

.btn--secondary:hover {
  background: var(--wash-blue);
  border-color: var(--link-blue);
  color: var(--link-blue-dark);
}

.btn--secondary:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn--super {
  background: #fff;
  color: var(--super-ink);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.3);
}

.btn--super:hover {
  background: var(--wash-blue);
  color: var(--super-ink);
}

.btn--super:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn--block {
  width: 100%;
  max-width: 330px;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__visual {
  order: 1;
}

.hero__content {
  order: 2;
}

.hero__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  background: var(--wash-blue);
  color: var(--link-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

.hero__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--duo-green);
}

.hero__subtitle {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-strong);
}

.hero__desc {
  margin: 0 0 28px;
  max-width: 473px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

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

.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted-light);
}

/* Hero illustration */
.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 424px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.hero-illustration__bg {
  position: absolute;
  inset: 8%;
  background: var(--wash-blue);
  border-radius: 50%;
}

.hero-illustration__chart {
  position: absolute;
  inset: 15% 10% 20%;
}

.hero-illustration__coin {
  position: absolute;
  top: 5%;
  right: 8%;
  width: 64px;
  height: 64px;
  animation: float 3s ease-in-out infinite;
}

.hero-illustration__streak {
  position: absolute;
  bottom: 12%;
  left: 5%;
  animation: float 3.5s ease-in-out infinite reverse;
}

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

/* Feature rail */
.feature-rail {
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
}

.feature-rail__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feature-rail__inner::-webkit-scrollbar {
  display: none;
}

.feature-rail__label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 16px;
  background: var(--surface-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.feature-chip__icon {
  font-size: 20px;
  line-height: 1;
}

/* Benefits list */
.benefits {
  padding: var(--section-pad) 0;
}

.benefits__title {
  margin: 0 0 40px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--duo-green);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.benefit-card:hover {
  border-color: var(--duo-green);
  transform: translateY(-4px);
}

.benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--wash-blue);
  border-radius: 50%;
  font-size: 28px;
}

.benefit-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-strong);
}

.benefit-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* Feature sections */
.feature-section {
  padding: var(--section-pad) 0;
}

.feature-section--alt {
  background: var(--surface-alt);
}

.feature-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-section__grid--reverse .feature-section__visual {
  order: 2;
}

.feature-section__grid--reverse .feature-section__text {
  order: 1;
}

.feature-section__heading {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--duo-green);
}

.feature-section__body {
  margin: 0 0 24px;
  max-width: 473px;
  font-size: 17px;
  line-height: 1.5;
}

.feature-section__list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.feature-section__list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--ink);
}

.feature-section__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--duo-green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.feature-visual__card {
  width: 100%;
  max-width: 400px;
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 0 var(--border);
}

.progress-bar {
  height: 16px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar__fill {
  height: 100%;
  width: 78%;
  background: var(--duo-green);
  border-radius: var(--radius-pill);
  transition: width 1s ease;
}

.level-nodes {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.level-node {
  flex: 1;
  text-align: center;
}

.level-node__circle {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
  border: 3px solid var(--border);
  background: var(--surface-alt);
  color: var(--muted);
}

.level-node--done .level-node__circle {
  background: var(--duo-green);
  border-color: var(--duo-green-dark);
  color: #fff;
}

.level-node--active .level-node__circle {
  background: var(--warning);
  border-color: #E6B400;
  color: var(--ink-strong);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.level-node__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}

.streak-card {
  text-align: center;
  padding: 32px;
}

.streak-card__flame {
  font-size: 48px;
  margin-bottom: 8px;
}

.streak-card__count {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--streak);
  line-height: 1;
}

.streak-card__label {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Bundle section */
.bundle {
  padding: var(--section-pad) 0;
  background: var(--wash-blue);
}

.bundle__inner {
  text-align: center;
}

.bundle__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--navy);
}

.bundle__subtitle {
  margin: 0 0 48px;
  font-size: 18px;
  color: var(--muted);
}

.bundle__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 40px;
}

.bundle-card {
  padding: 32px 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 0 var(--border-strong);
  text-align: left;
}

.bundle-card__icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.bundle-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-strong);
}

.bundle-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.bundle__plus {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--duo-green);
}

/* Testimonials */
.testimonials {
  padding: var(--section-pad) 0;
}

.testimonials__title {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--duo-green);
}

.testimonials__subtitle {
  margin: 0 0 48px;
  text-align: center;
  font-size: 17px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial-card__stars {
  color: var(--warning);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-card__quote {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}

.testimonial-card__author {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.testimonial-card__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 4px 12px;
  background: var(--duo-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
}

/* Super / premium block */
.super-block {
  padding: 120px 0;
  background: var(--super-navy);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.super-block::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(88, 204, 2, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.super-block__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  position: relative;
}

.super-block__title span {
  color: var(--duo-green);
}

.super-block__body {
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
}

.super-block__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
}

.super-stat__number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--warning);
  line-height: 1;
}

.super-stat__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* Final CTA */
.final-cta {
  padding: var(--section-pad) 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--canvas) 0%, #E8F9D0 100%);
}

.final-cta__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--duo-green);
}

.final-cta__body {
  margin: 0 auto 32px;
  max-width: 520px;
  font-size: 17px;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.final-cta__reminder {
  margin-top: 20px;
  padding: 12px 20px;
  background: rgba(255, 200, 0, 0.2);
  border: 2px solid var(--warning);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  max-width: 480px;
}

/* Footer */
.site-footer {
  background: var(--duo-green);
  color: #fff;
  padding: 48px 0 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.site-footer__tagline {
  font-size: 15px;
  color: var(--footer-soft);
  margin: 0 0 20px;
  max-width: 400px;
  line-height: 1.5;
}

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

.site-footer__links li {
  margin-bottom: 8px;
}

.site-footer__links a {
  color: var(--footer-soft);
  font-size: 15px;
  font-weight: 600;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__heading {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.site-footer__legal {
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--footer-soft);
}

.site-footer__legal p {
  margin: 0 0 12px;
}

.site-footer__copy {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid,
  .feature-section__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    order: 1;
  }

  .hero__content {
    order: 2;
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    align-items: center;
  }

  .feature-section__grid--reverse .feature-section__visual,
  .feature-section__grid--reverse .feature-section__text {
    order: unset;
  }

  .feature-section__body {
    max-width: none;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .bundle__cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .bundle__plus {
    display: none;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .super-block__stats {
    gap: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-pad: 64px;
  }

  .site-header__inner .btn--primary {
    padding: 0 16px;
    font-size: 13px;
  }

  .hero {
    padding-top: 32px;
  }

  .feature-rail__label {
    display: none;
  }
}
