:root {
  --brand-primary: #0d9488;
  --brand-turquoise: #16b8a6;
  --brand-aqua: #22d3c5;
  --brand-mint: #34d399;
  --brand-yellow: #f6b81a;
  --brand-ink: #123b39;
  --brand-copy: #4b6966;
  --brand-canvas: #f2fbf8;
  --brand-line: rgba(13, 148, 136, 0.15);
  --brand-shadow: 0 28px 80px rgba(8, 105, 96, 0.15);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--brand-canvas);
  color: var(--brand-ink);
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.page-leaving {
  opacity: 0;
  transform: translateY(6px);
}

.skip-link {
  position: fixed;
  z-index: 1200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-primary);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.hero {
  min-height: 760px;
  padding: 0 24px 74px;
  text-align: left;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at 88% 14%, rgba(34, 211, 197, 0.24), transparent 27%),
    radial-gradient(circle at 70% 50%, rgba(52, 211, 153, 0.15), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f3fffc 44%, #e7faf5 100%);
  isolation: isolate;
}

.hero::before {
  width: 540px;
  height: 540px;
  top: -210px;
  right: -100px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.13), transparent 69%);
}

.hero::after {
  width: 480px;
  height: 480px;
  bottom: -270px;
  left: -200px;
  background: radial-gradient(circle, rgba(34, 211, 197, 0.18), transparent 69%);
}

.site-nav {
  position: relative;
  z-index: 20;
  width: min(1180px, 100%);
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-ink);
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.23);
}

.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: 16px; font-weight: 900; letter-spacing: -0.02em; }
.brand-copy span { margin-top: 5px; color: #64817e; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  color: #41625f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-aqua));
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(8, 105, 96, 0.1);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-login:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 14px 32px rgba(8, 105, 96, 0.17);
}

.nav-login svg { width: 17px; height: 17px; }

.hero-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.86fr);
  align-items: center;
  gap: clamp(44px, 7vw, 88px);
}

.hero-copy {
  animation: heroCopyIn 680ms cubic-bezier(.2,.72,.2,1) both;
}

.hero-badge {
  margin-bottom: 22px;
  padding: 8px 13px;
  border: 1px solid rgba(13, 148, 136, 0.15);
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-primary);
  box-shadow: 0 10px 30px rgba(8, 105, 96, 0.09);
  backdrop-filter: blur(12px);
}

.hero-badge .dot {
  background: var(--brand-aqua);
  box-shadow: 0 0 0 5px rgba(34, 211, 197, 0.14);
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--brand-ink);
  font-size: clamp(42px, 5.7vw, 72px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(115deg, #0f766e, var(--brand-primary) 48%, var(--brand-aqua));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p.hero-lead {
  max-width: 610px;
  margin: 0 0 27px;
  color: #4b6966;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
}

.hero-pills {
  justify-content: flex-start;
  margin-bottom: 31px;
}

.pill {
  padding: 8px 12px;
  border: 1px solid rgba(13, 148, 136, 0.13);
  background: rgba(255, 255, 255, 0.78);
  color: #365b57;
  box-shadow: 0 8px 22px rgba(8, 105, 96, 0.07);
}

.pill svg { color: var(--brand-primary); }

.hero-actions { justify-content: flex-start; }

.hero-cta {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f766e, var(--brand-turquoise));
  color: #fff;
  box-shadow: 0 16px 34px rgba(13, 148, 136, 0.28);
}

.hero-cta:hover {
  box-shadow: 0 21px 42px rgba(13, 148, 136, 0.34);
}

.hero-cta.secondary {
  border-color: rgba(13, 148, 136, 0.2);
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-ink);
  box-shadow: 0 12px 28px rgba(8, 105, 96, 0.09);
}

.hero-visual {
  position: relative;
  min-height: 555px;
  animation: heroVisualIn 760ms 100ms cubic-bezier(.2,.72,.2,1) both;
}

.hero-photo-frame {
  position: absolute;
  inset: 12px 14px 22px 40px;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 40px;
  background: #d8f8f0;
  box-shadow: var(--brand-shadow);
  transform: rotate(2.2deg);
}

.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(6, 78, 72, 0.16));
  pointer-events: none;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.91);
  color: var(--brand-ink);
  box-shadow: 0 18px 40px rgba(8, 105, 96, 0.18);
  backdrop-filter: blur(16px);
  animation: floatCard 4.5s ease-in-out infinite;
}

.floating-card strong { display: block; font-size: 13px; font-weight: 900; }
.floating-card span { display: block; margin-top: 2px; color: #5b7774; font-size: 10px; font-weight: 700; }
.floating-card.app { top: 5px; right: -18px; }
.floating-card.app img { width: 47px; height: 47px; border-radius: 13px; }
.floating-card.progress { bottom: 0; left: 0; animation-delay: -1.4s; }
.progress-ring { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand-mint) 0 82%, #dff5ef 82%); }
.progress-ring::after { content: '82%'; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #047857; font-size: 9px; font-weight: 900; }

.hero-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 25px;
  color: #587572;
  font-size: 12px;
  font-weight: 700;
}

.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--brand-mint); }

.section {
  max-width: 1180px;
  padding: 88px 24px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head.center { margin-right: auto; margin-left: auto; text-align: center; }
.section-eyebrow { color: var(--brand-primary); }
.section-title { color: var(--brand-ink); font-size: clamp(30px, 4vw, 45px); letter-spacing: -0.035em; }
.section-subtitle { color: var(--brand-copy); line-height: 1.65; }

.journey-section {
  position: relative;
  background: #fff;
  border-top: 1px solid rgba(13, 148, 136, 0.09);
  border-bottom: 1px solid rgba(13, 148, 136, 0.09);
}

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

.journey-card {
  position: relative;
  min-height: 218px;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f2fcf8);
  box-shadow: 0 12px 36px rgba(8, 105, 96, 0.08);
}

.journey-card::after {
  content: attr(data-step);
  position: absolute;
  right: 18px;
  bottom: -22px;
  color: rgba(13, 148, 136, 0.07);
  font-size: 102px;
  font-weight: 900;
  line-height: 1;
}

.journey-icon,
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.14), rgba(34, 211, 197, 0.17));
  color: var(--brand-primary);
}

.journey-icon svg,
.feature-icon svg { width: 23px; height: 23px; }
.journey-card h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 900; }
.journey-card p { position: relative; z-index: 1; color: var(--brand-copy); font-size: 14px; line-height: 1.65; }

.packages-wrap {
  position: relative;
  background:
    radial-gradient(circle at 10% 40%, rgba(34, 211, 197, 0.11), transparent 26%),
    radial-gradient(circle at 92% 10%, rgba(52, 211, 153, 0.1), transparent 25%),
    var(--brand-canvas);
}

.purchase-trust-bar {
  margin-bottom: 30px;
  border-color: var(--brand-line);
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(8, 105, 96, 0.08);
}

.trust-icon {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(34, 211, 197, 0.16));
  color: var(--brand-primary);
}

.grade-grid {
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 18px;
}

.grade-card {
  position: relative;
  border-color: rgba(13, 148, 136, 0.11);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(8, 105, 96, 0.1);
}

.grade-card::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--package-color), var(--package-accent));
}

.grade-card:hover {
  transform: translateY(-8px);
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: 0 25px 55px rgba(8, 105, 96, 0.17);
}

.card-header { min-height: 170px; padding: 26px 22px 23px; }
.card-header::before {
  content: '';
  position: absolute;
  right: 24px;
  bottom: -40px;
  width: 90px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  transform: rotate(34deg);
}
.card-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 17px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
}
.card-icon svg { width: 29px; height: 29px; }
.card-header h2 { font-size: 25px; }
.card-body { padding: 18px 21px 21px; }
.notebook-tag { background: var(--package-soft); border-color: transparent; color: var(--package-color); }
.card-action { min-height: 45px; border-radius: 14px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); }
.card-action svg { width: 17px; height: 17px; }
.modal-grade-badge { color: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14); }
.modal-grade-badge svg { width: 28px; height: 28px; }

.package-enter {
  animation: packageEnter 520ms cubic-bezier(.2,.72,.2,1) both;
  animation-delay: calc(var(--card-index, 0) * 70ms);
}

.benefits-section {
  background: #fff;
  border-top: 1px solid rgba(13, 148, 136, 0.09);
}

.benefits-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 64px;
}

.benefits-copy { position: sticky; top: 110px; }
.benefits-copy .section-subtitle { margin-bottom: 0; }

.features-grid { gap: 14px; }
.feature-card {
  min-height: 180px;
  display: block;
  padding: 24px;
  border-color: var(--brand-line);
  border-radius: 22px;
  background: #f5fcfa;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.feature-card:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 18px 42px rgba(8, 105, 96, 0.11); }
.feature-card h3 { margin-top: 18px; color: var(--brand-ink); font-size: 16px; }
.feature-card p { font-size: 13px; line-height: 1.65; }

.final-cta {
  width: min(1132px, calc(100% - 48px));
  margin: 88px auto;
  padding: clamp(34px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  overflow: hidden;
  position: relative;
  border-radius: 32px;
  background: linear-gradient(125deg, #0f766e, #0d9488 55%, #0891b2);
  color: #fff;
  box-shadow: 0 30px 80px rgba(8, 105, 96, 0.25);
}

.final-cta::after {
  content: '';
  position: absolute;
  width: 310px;
  height: 310px;
  right: -80px;
  bottom: -170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}

.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { max-width: 680px; margin-bottom: 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.04em; }
.final-cta p { color: rgba(255,255,255,.73); line-height: 1.6; }
.final-cta .hero-cta { flex-shrink: 0; background: #fff; color: var(--brand-primary); box-shadow: 0 15px 35px rgba(3, 59, 54, 0.2); }

footer {
  padding: 40px 24px;
  background: #0b3431;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 11px; text-align: left; }
.footer-brand img { width: 38px; height: 38px; border-radius: 11px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { color: rgba(255,255,255,.68); text-decoration: none; font-size: 12px; font-weight: 650; }
.footer-links a:hover { color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms cubic-bezier(.2,.72,.2,1), transform 650ms cubic-bezier(.2,.72,.2,1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }

@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroVisualIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes packageEnter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 940px) {
  .nav-links { display: none; }
  .hero { min-height: auto; }
  .hero-layout { grid-template-columns: 1fr 0.82fr; gap: 30px; }
  .hero-visual { min-height: 470px; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-card { min-height: 0; }
  .benefits-layout { grid-template-columns: 1fr; gap: 34px; }
  .benefits-copy { position: static; }
}

@media (max-width: 720px) {
  .hero { padding: 0 18px 56px; }
  .site-nav { min-height: 78px; }
  .brand img { width: 42px; height: 42px; }
  .brand-copy span { display: none; }
  .nav-login { min-height: 42px; padding: 0 14px; }
  .hero-layout { margin-top: 24px; grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(39px, 13vw, 58px); }
  .hero-visual { min-height: 470px; max-width: 480px; width: 100%; margin: 4px auto 0; }
  .hero-photo-frame { inset: 16px 11px 20px 24px; border-width: 6px; border-radius: 32px; }
  .floating-card.app { right: -3px; }
  .floating-card.progress { left: 2px; }
  .section { padding: 67px 18px; }
  .journey-grid { gap: 12px; }
  .purchase-trust-bar { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .final-cta { width: calc(100% - 36px); margin: 64px auto; flex-direction: column; align-items: flex-start; border-radius: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .brand-copy strong { font-size: 14px; }
  .nav-login span { display: none; }
  .nav-login { width: 42px; padding: 0; border-radius: 13px; }
  .hero-pills { gap: 7px; }
  .pill { font-size: 11px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-cta { width: 100%; }
  .hero-visual { min-height: 410px; }
  .floating-card { padding: 9px 11px; border-radius: 15px; }
  .floating-card.app img { width: 39px; height: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
