:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --white: #ffffff;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-dark: #005bb5;
  --red: #b42318;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  padding: 0 clamp(18px, 5vw, 70px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 7px;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 30px);
  color: #353538;
  font-size: 0.82rem;
}

.main-nav a:hover {
  color: var(--blue);
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1;
}

.nav-button {
  color: var(--white);
  background: var(--blue);
}

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.primary:hover,
.nav-button:hover {
  color: var(--white);
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--blue);
  border-color: rgba(0, 113, 227, 0.35);
}

.hero {
  display: grid;
  min-height: calc(100vh - 52px);
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 70px) 36px;
  background: linear-gradient(180deg, var(--white), var(--soft));
}

.hero-content {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(4.2rem, 12vw, 10rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(36px, 6vw, 70px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(850px, 100%);
  margin: clamp(42px, 7vw, 82px) auto 0;
  padding: 0;
}

.hero-stats div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 22px;
}

.hero-stats dt {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.section {
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: clamp(78px, 11vw, 150px) clamp(18px, 5vw, 70px);
}

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

.intro {
  background: var(--white);
}

.intro-layout,
.support-layout {
  max-width: 980px;
  text-align: center;
}

.intro-layout h2,
.support-layout h2 {
  margin-left: auto;
  margin-right: auto;
}

.intro-layout p:last-child,
.support-layout p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.42;
}

.services-band,
.pricing-band {
  background: var(--soft);
}

.support-band {
  color: var(--white);
  background: #111111;
}

.support-band .eyebrow,
.support-band p {
  color: rgba(255, 255, 255, 0.66);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto clamp(32px, 6vw, 70px);
  text-align: center;
}

.section-heading h2 {
  margin-left: auto;
  margin-right: auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.price-card,
.login-form {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}

.service-card {
  min-height: 220px;
  padding: 28px;
}

.icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  place-items: center;
  color: var(--blue);
  background: linear-gradient(180deg, #f6fbff, #e8f3ff);
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 14px;
}

.icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p,
.price-card p,
.price-card li {
  color: var(--muted);
  line-height: 1.48;
}

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 510px;
  padding: 30px;
}

.price-card.featured {
  transform: translateY(-12px);
  box-shadow: var(--shadow);
}

.badge {
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 6px 11px;
  color: var(--blue) !important;
  background: #eaf4ff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.price {
  margin-bottom: 14px;
}

.price span {
  color: var(--ink);
  font-size: 3.2rem;
  font-weight: 800;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.price-card li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--blue);
  font-weight: 800;
}

.price-button {
  margin-top: auto;
  color: var(--blue);
  background: #eaf4ff;
}

.support-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin: clamp(28px, 5vw, 48px) auto 0;
}

.support-list span {
  padding: 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 70px);
  color: var(--muted);
  background: var(--soft);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.portal-page {
  min-height: 100vh;
  background: var(--soft);
}

.portal-main {
  display: grid;
  min-height: calc(100vh - 52px);
  place-items: center;
  padding: clamp(34px, 7vw, 90px) 18px;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 430px);
  gap: clamp(30px, 7vw, 86px);
  width: min(1040px, 100%);
  align-items: center;
}

.login-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
}

.login-copy p {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.42;
}

.login-form {
  display: grid;
  gap: 12px;
  padding: 30px;
}

.login-form label {
  font-size: 0.92rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
}

.login-form input:focus {
  outline: 4px solid rgba(0, 113, 227, 0.15);
  border-color: var(--blue);
}

.login-button {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  font: inherit;
}

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

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

  .section {
    min-height: auto;
  }

  .login-panel,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 620px) {
  .main-nav {
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-stats,
  .service-grid,
  .support-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .price-card,
  .login-form {
    border-radius: 22px;
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
