:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #172033;
  --ink-soft: #43516a;
  --muted: #748199;
  --line: #dce3ee;
  --line-strong: #c7d1df;
  --brand: #2868d9;
  --brand-dark: #12356f;
  --green: #167a63;
  --amber: #d87228;
  --track: #a84538;
  --white: #ffffff;
  --shadow: 0 18px 50px rgb(23 32 51 / 0.12);
  --font-head: "Nunito", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea {
  font: 500 16px/1.5 var(--font-body);
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--white);
  object-fit: contain;
  padding: 4px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  color: rgb(255 255 255 / 0.88);
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover {
  background: rgb(255 255 255 / 0.12);
  color: var(--white);
}

.nav .login-link {
  background: var(--white);
  color: var(--brand-dark);
}

.hero {
  position: relative;
  min-height: 78svh;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background: url("assets/hero-track.png") center / cover no-repeat;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(9 21 42 / 0.78) 0%, rgb(9 21 42 / 0.62) 40%, rgb(9 21 42 / 0.18) 100%),
    linear-gradient(0deg, rgb(9 21 42 / 0.28), rgb(9 21 42 / 0.18));
}

.hero-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 56px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #f3b76e;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 0.84);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

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

.button,
.plan-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-family: var(--font-head);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 14px 34px rgb(40 104 217 / 0.25);
}

.button-primary:hover,
.plan-action-primary:hover {
  filter: brightness(1.06);
}

.button-secondary {
  background: rgb(255 255 255 / 0.14);
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 0.3);
}

.button-secondary:hover {
  background: rgb(255 255 255 / 0.2);
}

.section {
  padding: 76px 0;
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  padding-top: 46px;
  background: var(--surface);
}

.intro-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 54px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.contact-copy h2 {
  max-width: 650px;
  color: var(--ink);
  font-size: clamp(30px, 4.5vw, 48px);
}

.intro p:last-child,
.contact-copy > p {
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.6;
}

.pricing-section {
  background: #eef3f8;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgb(23 32 51 / 0.06);
}

.plan.featured {
  border-color: rgb(40 104 217 / 0.42);
  box-shadow: var(--shadow);
}

.badge {
  align-self: flex-start;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8f2ef;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 900;
}

.plan-top p {
  min-height: 48px;
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.price {
  margin: 24px 0 22px;
  color: var(--muted);
}

.price span {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.plan li {
  display: flex;
  gap: 10px;
}

.plan li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
}

.plan-action {
  width: 100%;
  margin-top: auto;
  transform: translateY(20px);
  background: #edf3fb;
  color: var(--brand-dark);
}

.plan-action-primary {
  background: var(--brand);
  color: var(--white);
}

.pricing-note {
  margin: 24px 0 0;
  color: var(--muted);
  text-align: center;
}

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

.contact-meta {
  display: grid;
  gap: 8px;
  margin-top: 30px;
  color: var(--muted);
}

.contact-meta a {
  color: var(--brand-dark);
  font-family: var(--font-head);
  font-weight: 900;
  text-decoration: none;
}

.contact-meta a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #f9fbfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgb(40 104 217 / 0.12);
}

.contact-form button {
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 900;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 28px, 1160px);
  }

  .brand span {
    max-width: 168px;
  }

  .nav a:not(.login-link) {
    display: none;
  }

  .hero {
    min-height: 80svh;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-inner,
  .section-inner,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .hero-inner {
    padding-top: 108px;
    padding-bottom: 44px;
  }

  .intro-grid,
  .contact-grid,
  .pricing-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section {
    padding: 58px 0;
  }

  .intro {
    padding-top: 34px;
  }

  .plan-top p {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 14px;
  }

  .brand {
    font-size: 15px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav .login-link {
    padding: 0 12px;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgb(9 21 42 / 0.84) 0%, rgb(9 21 42 / 0.66) 62%, rgb(9 21 42 / 0.26) 100%),
      linear-gradient(0deg, rgb(9 21 42 / 0.26), rgb(9 21 42 / 0.14));
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .hero-copy,
  .intro p:last-child,
  .contact-copy > p {
    font-size: 18px;
  }

  .button,
  .plan-action {
    width: 100%;
  }

  .plan,
  .contact-form {
    padding: 20px;
  }

  .site-footer {
    display: grid;
  }
}
