@import url("tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand);
}

img {
  max-width: 100%;
  height: auto;
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 8% -5%, var(--brand-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 15%, rgba(30, 75, 184, 0.1), transparent 50%),
    radial-gradient(circle at 50% 120%, rgba(47, 111, 237, 0.06), transparent 45%),
    linear-gradient(180deg, #eaf1fb 0%, var(--bg) 42%, #eef3f9 100%);
}

.bg-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(47, 111, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 237, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(242, 246, 252, 0.88);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--accent);
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(47, 111, 237, 0.28);
  transition: transform var(--ease), box-shadow var(--ease);
}

.logo:hover .logo-mark {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.35);
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-word span {
  color: var(--brand);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--brand-dark);
}

.nav-support {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  color: var(--brand-dark) !important;
  text-decoration: none !important;
  font-weight: 700;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.nav-support:hover,
.nav-support[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-dark) !important;
  transform: translateY(-1px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none !important;
  transition: background var(--ease), transform var(--ease);
}

.nav-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5ba3f0 0%, var(--brand) 48%, var(--brand-dark) 100%);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
  box-shadow: 0 12px 30px rgba(47, 111, 237, 0.32);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 36px rgba(47, 111, 237, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent) !important;
  font-weight: 700;
  text-decoration: none !important;
  background: transparent;
  transition: background var(--ease), color var(--ease);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff !important;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 48px 20px 72px;
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  max-width: 740px;
  animation: rise 0.8s ease both;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
}

.hero-logo .logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow:
    0 16px 40px rgba(47, 111, 237, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  animation: floatSoft 5s ease-in-out infinite;
}

.hero-logo .logo-word {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-slogan {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.45rem);
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 38ch;
}

.hero-meta {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-faint);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 72px 20px;
}

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

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section .section-lead {
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 52ch;
}

.ref-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--accent);
}

.section.reveal {
  animation: rise 0.7s ease both;
}

.audience-list,
.check-list,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.audience-list li,
.check-list li {
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.audience-list strong,
.check-list strong {
  color: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.care-grid {
  margin-top: 20px;
}

.service-item {
  padding: 22px 20px;
  border-left: 3px solid var(--brand);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7));
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform var(--ease), box-shadow var(--ease);
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.service-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}

.model-block {
  padding: 28px 24px;
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.model-block h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.model-block p {
  margin: 0;
  color: var(--text-muted);
}

.note {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-faint);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

table.tariffs {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

table.tariffs th,
table.tariffs td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.tariffs th {
  background: var(--bg-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

table.tariffs tr:last-child td {
  border-bottom: none;
}

table.tariffs .price {
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}

.price-footnote {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.steps {
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 18px 18px 18px 64px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  margin: 0 20px 72px;
  padding: 52px 28px;
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(135deg, #163a6b 0%, #1e4bb8 45%, #2f6fed 78%, #5ba3f0 100%);
  color: #f3f8ff;
  text-align: center;
  animation: rise 0.7s ease both;
  box-shadow: 0 24px 60px rgba(30, 75, 184, 0.28);
}

.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #fff;
}

.cta-band p {
  margin: 0 auto;
  max-width: 40ch;
  color: rgba(243, 248, 255, 0.9);
}

.cta-band .btn {
  margin-top: 24px;
  background: #fff;
  color: var(--accent) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  filter: none;
}

.cta-band .btn:hover {
  background: #eef5ff;
  filter: none;
}

/* Footer */
.site-footer {
  padding: 40px 20px 56px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer .muted {
  color: var(--text-faint);
  font-size: 0.9rem;
}

.logo-footer .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(47, 111, 237, 0.22);
}

.logo-footer .logo-word {
  font-size: 1.2rem;
}

.footer-tag {
  margin: 10px 0 6px;
  color: var(--text-muted);
}

/* Legal pages */
.page-header {
  padding: calc(var(--nav-h) + 48px) 20px 32px;
  width: min(100%, var(--prose));
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
}

.legal-content {
  width: min(100% - 40px, var(--prose));
  margin: 0 auto 80px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 32px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.support-content .service-item .btn {
  margin-top: 16px;
}

.support-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.support-list li {
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}

.support-content .muted {
  color: var(--text-faint);
}

.support-content .note {
  margin-top: 20px;
}

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

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

@media (max-width: 720px) {
  .nav-links .nav-hide-sm {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }
}
