:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3ff;
  --text: #172033;
  --muted: #5f6b85;
  --line: #dbe3f0;
  --primary: #4f6ef7;
  --primary-dark: #3954d8;
  --accent: #8ea2ff;
  --success: #1f9d68;
  --shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
  --shadow-strong: 0 24px 60px rgba(79, 110, 247, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1120px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(142, 162, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
a {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

:focus-visible {
  outline: 3px solid rgba(79, 110, 247, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: var(--shadow);
}

.brand-name {
  font-size: 1.05rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: var(--space-8) 0 var(--space-7);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 12ch;
}

.hero-text,
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: var(--space-5);
}

.hero-note,
.card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(219, 227, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-note {
  padding: var(--space-6);
}

.hero-note h2 {
  margin-top: 0;
  margin-bottom: var(--space-4);
  font-size: 1.15rem;
}

.hero-note ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.hero-note li + li {
  margin-top: 0.75rem;
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-3);
}

.pricing,
.comparison,
.faq {
  padding: var(--space-7) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.tier {
  position: relative;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tier:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.featured {
  border-color: rgba(79, 110, 247, 0.35);
  box-shadow: var(--shadow-strong);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tier-header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.tier-subtitle {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.price {
  margin: var(--space-5) 0 var(--space-2);
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.currency {
  font-size: 1.5rem;
  vertical-align: top;
  margin-right: 0.15rem;
}

.period {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: 0.25rem;
}

.custom-price {
  font-size: 2.4rem;
}

.price-note {
  margin: 0 0 var(--space-5);
  color: var(--muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.6rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 12px 24px rgba(79, 110, 247, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 16px 30px rgba(79, 110, 247, 0.3);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.button-block {
  width: 100%;
  margin-top: auto;
}

.table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(219, 227, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table thead th {
  background: var(--surface-alt);
  font-size: 0.95rem;
}

.compare-table tbody tr:hover {
  background: rgba(238, 243, 255, 0.55);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.faq-item {
  padding: var(--space-5);
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: var(--space-6) 0 var(--space-7);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.footer-inner nav {
  display: flex;
  gap: 1rem;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 14ch;
  }
}

@media (max-width: 760px) {
  .top-nav {
    display: none;
  }

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

  .hero,
  .pricing,
  .comparison,
  .faq {
    padding: var(--space-6) 0;
  }

  .tier,
  .hero-note,
  .faq-item {
    padding: var(--space-5);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .price {
    font-size: 2.5rem;
  }
}
