:root {
  --navy: #101a46;
  --navy-deep: #0c1433;
  --blue: #2f5fff;
  --blue-dark: #1f46d6;
  --blue-soft: #eaf0ff;
  --muted: #5d6784;
  --text: #243056;
  --line: rgba(16, 26, 70, 0.1);
  --bg: #f4f6fb;
  --card: #ffffff;
  --shadow: 0 18px 44px rgba(16, 26, 70, 0.08);
  --shape: 32px 32px 32px 10px;
  --shape-sm: 22px 22px 22px 8px;
  --gap: 16px;
  --sans: "Onest", "Segoe UI", sans-serif;
  --display: "Unbounded", "Onest", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button, input, select { font: inherit; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 0;
  background: linear-gradient(180deg, var(--bg) 0 70%, rgba(244, 246, 251, 0) 100%);
}
.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}
.logo { display: flex; align-items: center; height: 28px; }
.logo img { height: 28px; width: auto; max-width: 132px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(47, 95, 255, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #9db4ff;
  outline-offset: 2px;
}
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 17px; }

/* Typography */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.04em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 700; }
.h1-line { display: block; white-space: nowrap; }
h1 em {
  display: block;
  font-style: normal;
  color: var(--blue);
  white-space: nowrap;
}

/* Hero */
.hero { padding: 8px 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: stretch;
}
.hero-copy { min-width: 0; display: flex; flex-direction: column; }
.badge {
  align-self: flex-start;
  display: inline-flex;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
}
.hero h1 {
  margin-top: 16px;
  font-size: clamp(26px, 3.2vw, 38px);
}
.hero-cta { display: none; }
.lede {
  margin-top: 16px;
  max-width: 40em;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}
.hero-points {
  display: none;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  gap: 4px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
}
.hero-points li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--blue) center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.2 2.2L12 5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Forms */
.panel {
  background: var(--card);
  border-radius: var(--shape);
  box-shadow: var(--shadow);
}
.lead-form {
  min-width: 0;
  margin-top: 20px;
  padding: 16px 24px 20px;
  scroll-margin-top: 100px;
  background: #1a2144;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px 28px 28px 10px;
}
.lead-form label {
  color: #d7def3;
  font-weight: 500;
}
.lead-form input,
.lead-form select {
  background: #fff;
  border: 0;
}
.lead-form .error { margin-top: 8px; }
.lead-form .btn {
  margin-top: 18px;
  white-space: normal;
  text-align: center;
}
.lead-form .consent {
  color: #c5cee6;
  margin: 12px 0 0;
}
.lead-form .consent a { color: #fff; }
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 6px;
}
input, select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9deea;
  background: #f7f8fc;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--navy);
}
input[type="tel"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.consent {
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.error { margin: 0; color: #c62828; font-size: 14px; }
.error:empty { display: none; }

/* Portrait */
.portrait {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 16px 16px 0;
  border-radius: 36px 36px 36px 12px;
  background:
    radial-gradient(70% 55% at 50% 78%, rgba(77, 125, 255, 0.55), transparent 70%),
    linear-gradient(180deg, #1a2f72 0%, #142663 100%);
}
.portrait img {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.deadline {
  flex: none;
  background: rgba(12, 20, 51, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 24px 24px 24px 8px;
  padding: 18px 20px;
  text-align: center;
}
.deadline strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(28px, 2.8vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.deadline span { display: block; margin-top: 8px; font-size: 16px; line-height: 1.35; }

/* Sections */
.section { padding: 40px 0; }
.section h2 { font-size: clamp(30px, 3.4vw, 46px); }
.section-title { margin-bottom: 24px; }

/* Services / stages */
.services h2 {
  max-width: none;
  margin: 0 auto 28px;
  text-align: center;
}
.stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.stages article {
  display: grid;
  grid-template-rows: 64px 1fr;
  gap: 14px;
  min-height: 220px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.stages article:nth-child(1) { border-radius: 32px 18px 28px 10px; }
.stages article:nth-child(2) { border-radius: 18px 32px 12px 28px; }
.stages article:nth-child(3) { border-radius: 28px 14px 32px 18px; }
.stages article:nth-child(4) { border-radius: 16px 28px 18px 32px; }
.stages article:nth-child(5) { border-radius: 30px 16px 26px 12px; }
.stages article:nth-child(6) { border-radius: 14px 30px 12px 26px; }
.stage-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: start;
  column-gap: 12px;
  min-height: 64px;
}
.stages h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.12;
  max-width: none;
}
.stages p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}
.stage-icon,
.stage-mark {
  width: 52px;
  height: 52px;
  justify-self: end;
}
.stage-icon { display: block; }
.stage-mark {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 28px;
  font-style: italic;
  font-weight: 700;
  color: #e10600;
  line-height: 1;
  transform: rotate(-8deg);
}

/* Outcome */
.outcome {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  color: #fff;
  background:
    radial-gradient(45% 120% at 100% 50%, rgba(47, 95, 255, 0.55), transparent 70%),
    var(--navy);
}
.section .outcome h2 { color: #fff; }
.outcome p { margin-top: 14px; color: #e7edff; font-size: 18px; max-width: 46ch; }
.outcome .btn { background: #fff; color: var(--navy); box-shadow: none; }
.outcome .btn:hover { background: var(--blue-soft); }

.popup {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}
.popup[hidden] { display: none; }
.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 51, 0.64);
  backdrop-filter: blur(8px);
}
.popup-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px 24px 20px;
  color: #fff;
  background: var(--navy-deep);
  border-radius: 32px 32px 32px 12px;
  box-shadow: 0 30px 80px rgba(12, 20, 51, 0.4);
}
.popup-dialog h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  max-width: 12ch;
  padding-right: 36px;
}
.popup-dialog .lead-form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.popup-close:hover { background: rgba(255, 255, 255, 0.18); }
body.popup-open { overflow: hidden; }

/* Cases */
.cases h2 { margin-bottom: 24px; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.cases-grid article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 0;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cases-grid article:nth-child(1) { border-radius: 32px 18px 28px 10px; }
.cases-grid article:nth-child(2) { border-radius: 18px 32px 12px 28px; }
.cases-grid article:nth-child(3) { border-radius: 28px 14px 32px 18px; }
.cases-grid article:nth-child(4) { border-radius: 16px 28px 18px 32px; }
.cases-grid article:nth-child(5) { border-radius: 30px 16px 26px 12px; }
.cases-grid article:nth-child(6) { border-radius: 14px 30px 12px 26px; }
.cases-grid img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8eeff;
}
.cases-grid h3 {
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.case-uni {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.case-prog {
  margin-top: 4px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
}
.case-result {
  margin-top: 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

/* Signup */
.signup {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 40px;
  color: #fff;
  border-radius: 36px 36px 36px 12px;
  background:
    radial-gradient(50% 80% at 0% 100%, rgba(47, 95, 255, 0.35), transparent 70%),
    var(--navy-deep);
}
.section .signup h2 { color: #fff; font-size: clamp(32px, 3.6vw, 50px); max-width: 11ch; }
.signup-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.signup-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 17px; }
.signup-points svg { flex: none; }
.visa { margin-top: 20px; }
.signup .lead-form {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.06);
}

/* Footer */
.site-footer { padding: 24px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 24px;
  padding: 32px;
  border-radius: var(--shape);
  background: #fff;
  box-shadow: var(--shadow);
}
.footer-grid h2 { font-family: var(--sans); font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.footer-grid p, .footer-grid a { color: var(--muted); }
.footer-grid a { font-weight: 600; }
.mail {
  display: inline-block;
  margin-top: 6px;
  color: var(--navy) !important;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 2px solid var(--navy);
}
.legal { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* Inner pages */
.page { padding: 28px 0 60px; }
.prose {
  background: #fff;
  border-radius: var(--shape);
  padding: 36px;
  box-shadow: var(--shadow);
}
.prose h1 { font-size: clamp(32px, 4vw, 48px); max-width: 22ch; }
.prose h2 { font-family: var(--sans); font-size: 22px; margin: 28px 0 8px; letter-spacing: -0.03em; }
.prose p, .prose li { color: #2c3558; }
.prose p { margin: 12px 0; }
.prose ul { margin: 8px 0 16px; padding-left: 22px; }

.tg-gift {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 28px 0 8px;
  padding: 22px 12px 22px 28px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(47, 95, 255, 0.5), transparent 62%),
    var(--navy);
  border-radius: var(--shape);
  box-shadow: 0 18px 40px rgba(16, 26, 70, 0.18);
}
.tg-gift-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px 18px 18px 8px;
  background: #2aabee;
  box-shadow: 0 10px 20px rgba(42, 171, 238, 0.35);
}
.tg-gift-copy { min-width: 0; }
.prose .tg-gift h2 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.04em;
}
.prose .tg-gift p {
  margin: 10px 0 0;
  color: #e7edff;
  font-size: 16px;
  max-width: 52ch;
}
.prose .tg-gift ul {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
}
.prose .tg-gift li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  font-weight: 600;
}
.prose .tg-gift li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.2 2.2L12 5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tg-gift .btn {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}
.tg-gift .btn:hover { background: var(--blue-soft); }
.tg-br { display: none; }
.tg-gift-visual {
  width: 210px;
  height: 210px;
  margin: -18px 0;
  object-fit: contain;
  mix-blend-mode: lighten;
  pointer-events: none;
  user-select: none;
}
/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Desktop: first screen fills the viewport so the next title is not cropped */
@media (min-width: 981px) {
  .hero {
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0 56px;
  }
  .hero-grid { min-height: 0; }
  .portrait { height: 100%; }
}
@media (min-width: 981px) and (max-height: 820px) {
  .site-header { padding: 8px 0; }
  .hero h1 { margin-top: 10px; font-size: clamp(26px, 4.2vh, 36px); }
  .lede { margin-top: 10px; font-size: 15px; }
  .hero .lead-form { margin-top: 12px; padding: 10px 18px 14px; }
  label { margin: 8px 0 4px; font-size: 13px; }
  input, select { padding: 9px 12px; }
  .hero .lead-form .btn { margin-top: 12px; min-height: 46px; font-size: 16px; }
  .deadline { padding: 12px 16px; }
  .deadline span { margin-top: 4px; font-size: 14px; }
}

/* Tablet */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { height: 520px; }
  .stages, .cases-grid { grid-template-columns: 1fr 1fr; }
  .signup, .outcome { grid-template-columns: 1fr; }
  .outcome .btn { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tg-gift-visual { width: 160px; height: 160px; }
}

/* Mobile */
@media (max-width: 680px) {
  .wrap, .nav { width: calc(100% - 24px); }
  .site-header { padding: 6px 0; }
  .nav { padding: 4px 0; }
  .nav .btn { padding: 9px 14px; font-size: 14px; }
  .logo img { height: 22px; }

  .hero { padding: 2px 0 16px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "badge"
      "title"
      "portrait"
      "lede"
      "form";
    gap: 10px;
    justify-items: center;
  }
  .hero-copy { display: contents; }
  .badge { grid-area: badge; padding: 4px 10px; font-size: 12px; }
  .hero h1 {
    grid-area: title;
    margin: 0;
    width: 100%;
    font-size: clamp(22px, 6.4vw, 28px);
    text-align: center;
  }
  .hero h1 .h1-line,
  .hero h1 em { white-space: nowrap; }
  .hero-points { display: none; }
  .lede {
    grid-area: lede;
    margin: 0;
    max-width: none;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
  }
  .hero .lead-form { display: none; }
  .hero-cta {
    display: inline-flex;
    grid-area: form;
    width: 100%;
    min-height: 52px;
    justify-self: stretch;
    white-space: normal;
    text-align: center;
  }
  label { margin: 8px 0 4px; font-size: 12.5px; }
  input, select { padding: 10px 12px; border-radius: 12px; }
  .consent { font-size: 11.5px; }
  .portrait {
    grid-area: portrait;
    width: 100%;
    height: 340px;
    gap: 8px;
    padding: 10px 10px 0;
    border-radius: 28px 28px 28px 10px;
    justify-self: stretch;
  }
  .portrait img {
    flex: 1 1 0;
    width: 100%;
    height: 0;
    transform: none;
  }
  .deadline { padding: 10px 12px; border-radius: 16px 16px 16px 8px; text-align: center; }
  .deadline strong { font-size: 20px; }
  .deadline span { margin-top: 4px; font-size: 13px; line-height: 1.3; }

  .section { padding: 28px 0; }
  .section h2 { font-size: 28px; }

  .stages { grid-template-columns: 1fr; }
  .stages article {
    min-height: 0;
    grid-template-rows: auto 1fr;
  }
  .stage-top { min-height: 0; }
  .outcome { padding: 28px 20px; }
  .outcome .btn { justify-self: stretch; }
  .cases-grid { grid-template-columns: 1fr; }
  .signup {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 22px 18px 20px;
    width: 100%;
    min-width: 0;
  }
  .section .signup h2 {
    font-size: 26px;
    max-width: none;
    line-height: 1.1;
  }
  .signup-copy,
  .signup .lead-form {
    width: 100%;
    min-width: 0;
  }
  .signup-points {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }
  .signup-points li { font-size: 14px; line-height: 1.3; }
  .signup .lead-form {
    margin: 0;
    padding: 4px 0 0;
    background: transparent;
    border: 0;
  }
  .signup .btn { white-space: normal; min-height: 48px; font-size: 15px; }
  .visa { display: none; }
  .footer-grid { grid-template-columns: 1fr; padding: 24px 20px; }
  .prose { padding: 24px 20px; }
  .tg-gift {
    grid-template-columns: minmax(0, 1fr) 108px;
    grid-template-areas:
      "title title"
      "text visual"
      "list list"
      "btn btn";
    gap: 12px 8px;
    padding: 20px 16px 18px;
    align-items: stretch;
  }
  .tg-gift-icon { display: none; }
  .tg-gift-copy { display: contents; }
  .prose .tg-gift h2 {
    grid-area: title;
    text-align: center;
    font-size: 20px;
    line-height: 1.15;
  }
  .prose .tg-gift p {
    grid-area: text;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }
  .prose .tg-gift ul {
    grid-area: list;
    margin: 0;
    width: 100%;
  }
  .prose .tg-gift li {
    width: 100%;
    align-items: flex-start;
  }
  .tg-br { display: block; }
  .tg-gift-visual {
    grid-area: visual;
    width: 108px;
    height: auto;
    max-height: 100%;
    margin: 0;
    align-self: stretch;
    object-fit: contain;
    object-position: center;
  }
  .tg-gift .btn {
    grid-area: btn;
    width: auto;
    min-height: 48px;
    padding: 12px 22px;
    font-size: 15px;
    white-space: nowrap;
    justify-self: center;
  }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 20px; }
}

@media (max-width: 680px) and (max-height: 740px) {
  .hero h1 { font-size: 22px; }
  .lede { font-size: 13px; }
  .portrait { height: 260px; }
  .hero .lead-form { padding: 8px 12px 12px; }
  label { margin: 5px 0 3px; }
  input, select { padding: 8px 10px; }
}
