@font-face {
  font-family: "Cairo";
  src: url("/assets/cairo-variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #effaf9;
  --background-deep: #dff2ef;
  --ink: #08202c;
  --muted: #536970;
  --primary: #0b9e96;
  --primary-bright: #57d8d0;
  --glass: rgba(255, 255, 255, 0.57);
  --glass-strong: rgba(255, 255, 255, 0.74);
  --stroke: rgba(8, 76, 84, 0.13);
  --shadow: 0 30px 90px rgba(8, 73, 77, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 5%, rgba(82, 216, 207, 0.21), transparent 36rem),
    linear-gradient(155deg, var(--background), var(--background-deep));
  color: var(--ink);
  font-family: "Cairo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.aurora {
  position: fixed;
  z-index: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.34;
  animation: float 12s ease-in-out infinite alternate;
}

.aurora-one {
  inset: 5% -10rem auto auto;
  background: #4ed4c8;
}

.aurora-two {
  inset: auto auto -12rem -8rem;
  background: #79a9ff;
  animation-delay: -4s;
}

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img,
.card-topline img {
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(7, 91, 91, 0.22);
}

.pilot-badge {
  padding: 9px 15px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.hero {
  display: grid;
  min-height: calc(100vh - 250px);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  padding-block: 48px 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(3.15rem, 7.2vw, 6.7rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

h1 span {
  background: linear-gradient(105deg, #087f7a, #11aca2 52%, #46cbc2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 17px;
  font-size: 0.9rem;
  font-weight: 800;
}

.primary-action {
  background: var(--ink);
  color: #f4fffe;
  box-shadow: 0 15px 35px rgba(7, 38, 48, 0.2);
}

.secondary-action {
  border: 1px solid var(--stroke);
  background: var(--glass-strong);
  transition: transform 180ms ease, border-color 180ms ease;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 60%, transparent);
  transform: translateY(-2px);
}

.privacy-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.8;
}

.product-card {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.36)),
    var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  backdrop-filter: blur(34px) saturate(170%);
}

.product-card::before {
  position: absolute;
  inset: -35% 35% auto -25%;
  height: 220px;
  border-radius: 50%;
  background: rgba(79, 216, 207, 0.24);
  content: "";
  filter: blur(44px);
}

.card-topline,
.lesson-preview,
.progress-copy,
.progress-track,
.card-footer {
  position: relative;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.card-topline div {
  display: grid;
  gap: 4px;
}

.soft-label {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-topline strong {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
}

.lesson-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
}

.lesson-preview div:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lesson-preview span {
  color: var(--muted);
  font-size: 0.74rem;
}

.lesson-preview strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 24px rgba(11, 158, 150, 0.28);
}

.play-mark svg {
  width: 25px;
  fill: currentColor;
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  font-size: 0.83rem;
}

.progress-copy span {
  color: var(--muted);
}

.progress-copy strong {
  color: var(--primary);
  font-size: 1.16rem;
}

.progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 73, 80, 0.1);
}

.progress-track span {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
}

.card-footer {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}

.card-footer span {
  padding: 10px 7px;
  border-radius: 13px;
  background: rgba(7, 50, 57, 0.055);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.features {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 80px;
}

.features article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--stroke);
  border-radius: 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.feature-number {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 850;
}

.features h2 {
  margin: 34px 0 8px;
  font-size: 1.25rem;
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.85;
}

footer {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.74rem;
}

@keyframes float {
  from { transform: translate3d(0, -2%, 0) scale(0.96); }
  to { transform: translate3d(5%, 7%, 0) scale(1.08); }
}

@media (max-width: 840px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .hero-copy {
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .features article {
    min-height: auto;
  }

  .features h2 {
    margin-top: 20px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .pilot-badge {
    padding-inline: 11px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(2.7rem, 12.5vw, 3.65rem);
  }

  .hero-actions > * {
    width: 100%;
  }

  .product-card {
    border-radius: 28px;
  }

  .card-footer {
    grid-template-columns: 1fr;
  }

  footer {
    gap: 12px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #061922;
    --background-deep: #092530;
    --ink: #eefcfb;
    --muted: #a6babd;
    --primary: #53d8cf;
    --primary-bright: #85ece5;
    --glass: rgba(17, 46, 57, 0.48);
    --glass-strong: rgba(19, 52, 63, 0.65);
    --stroke: rgba(182, 246, 241, 0.13);
    --shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
  }

  body {
    background:
      radial-gradient(circle at 88% 5%, rgba(58, 211, 200, 0.16), transparent 36rem),
      linear-gradient(155deg, var(--background), var(--background-deep));
  }

  .product-card {
    border-color: rgba(205, 255, 251, 0.13);
    background: linear-gradient(145deg, rgba(25, 66, 77, 0.66), rgba(13, 39, 49, 0.35));
  }

  .lesson-preview {
    background: rgba(255, 255, 255, 0.045);
  }

  .card-footer span {
    background: rgba(224, 255, 252, 0.055);
  }

  .primary-action {
    background: #55d9d0;
    color: #05262d;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
