:root {
  --page: #f7f8fc;
  --surface: #ffffff;
  --surface-muted: #f1f3f9;
  --ink: #171a2b;
  --muted: #676b7c;
  --line: #e6e8f0;
  --header-bg: rgba(255, 255, 255, 0.92);
  --nav-link: #55596b;
  --hero-overlay: rgba(247, 248, 252, 0.96);
  --hero-overlay-soft: rgba(247, 248, 252, 0.25);
  --hero-footnote: #777b8a;
  --orbit-line: rgba(91, 85, 231, 0.16);
  --orbit-dash: rgba(91, 85, 231, 0.22);
  --card-shadow-hover: 0 16px 38px rgba(34, 35, 73, 0.1);
  --featured-surface: #fbfaff;
  --plan-icon-neutral: #eff1f6;
  --plan-icon-neutral-ink: #606779;
  --plan-icon-green: #e7f8ef;
  --plan-icon-green-ink: #24845b;
  --price-muted: #858999;
  --plan-link-bg: #ffffff;
  --plan-link-border: #e2e3eb;
  --plan-link-hover: #f7f6ff;
  --feature-ink: #55596b;
  --feature-divider: #eff0f4;
  --about-shadow: var(--shadow-card);
  --footer-bg: #ffffff;
  --footer-muted: #858999;
  --control-bg: #ffffff;
  --theme-control-bg: #f1f3f9;
  --theme-control-ink: #4841ce;
  --card-hover-border: #d1cffb;
  --featured-border: #c9c6ff;
  --popular-ink: #4841ce;
  --check-bg: #e9f8f0;
  --check-ink: #258459;
  --primary: #5b55e7;
  --primary-dark: #4841ce;
  --primary-soft: #eeedff;
  --green: #a9f0ce;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", sans-serif;
  --shadow-card: 0 12px 35px rgba(34, 35, 73, 0.07);
  --content-width: 1200px;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b1020;
  --surface: #121a2c;
  --surface-muted: #1b263a;
  --ink: #eef2ff;
  --muted: #a4aec3;
  --line: #263149;
  --header-bg: rgba(11, 16, 32, 0.94);
  --nav-link: #bdc6d9;
  --hero-overlay: rgba(11, 16, 32, 0.97);
  --hero-overlay-soft: rgba(11, 16, 32, 0.62);
  --hero-footnote: #9ba6ba;
  --orbit-line: rgba(151, 145, 255, 0.2);
  --orbit-dash: rgba(151, 145, 255, 0.27);
  --card-shadow-hover: 0 18px 42px rgba(0, 0, 0, 0.25);
  --featured-surface: #171a35;
  --plan-icon-neutral: #242c3e;
  --plan-icon-neutral-ink: #bdc6d9;
  --plan-icon-green: #173b35;
  --plan-icon-green-ink: #8ce0b5;
  --price-muted: #9ba6ba;
  --plan-link-bg: #182238;
  --plan-link-border: #2c3851;
  --plan-link-hover: #211f48;
  --feature-ink: #c0c9db;
  --feature-divider: #29344a;
  --footer-bg: #0e1525;
  --footer-muted: #9ba6ba;
  --control-bg: #172136;
  --theme-control-bg: #241f45;
  --theme-control-ink: #c7c3ff;
  --primary-soft: #27244b;
  --font-body: "DM Sans", "Inter", sans-serif;
  --font-display: "Space Grotesk", "DM Sans", sans-serif;
  --card-hover-border: #625cb8;
  --featured-border: #625cb8;
  --popular-ink: #d0cdff;
  --check-bg: #173b35;
  --check-ink: #8ce0b5;
}

@keyframes ambientDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -10px, 0) scale(1.025);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 220ms ease, color 220ms ease;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(91, 85, 231, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
  width: min(var(--content-width), calc(100% - 48px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--primary);
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--nav-link);
  font-size: 0.9rem;
  font-weight: 550;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-muted);
  color: var(--ink);
}

.site-nav .nav-cta {
  margin-left: 6px;
  padding-inline: 17px;
  background: var(--primary);
  color: white;
  font-weight: 650;
}

.site-nav .nav-cta:hover {
  background: var(--primary-dark);
  color: white;
}

.menu-toggle {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--theme-control-bg);
  color: var(--theme-control-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
}

.theme-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: paint;
  min-height: 450px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, var(--hero-overlay) 0%, var(--hero-overlay) 47%, var(--hero-overlay-soft) 100%),
    url("../img/background.jpg") center/cover no-repeat;
  contain: paint;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -145px;
  right: max(8vw, calc((100vw - 1200px) / 2 + 20px));
  width: clamp(260px, 35vw, 440px);
  aspect-ratio: 1;
  border: 1px solid var(--orbit-line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 85, 231, 0.11), rgba(91, 85, 231, 0.035) 48%, transparent 70%);
  content: "";
  pointer-events: none;
  animation: ambientDrift 12s ease-in-out infinite;
}

.hero-inner {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
  padding-block: 72px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  letter-spacing: 0.035em;
  text-transform: none;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30ad7a;
  box-shadow: 0 0 0 3px rgba(48, 173, 122, 0.12);
}

.hero h1 {
  max-width: 690px;
  margin: 22px 0 15px;
  font-size: clamp(2.65rem, 5.6vw, 4.55rem);
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--primary);
}

.hero-copy {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 7px 16px rgba(91, 85, 231, 0.19);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 9px 20px rgba(91, 85, 231, 0.24);
}

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

.button-secondary:hover {
  background: var(--surface-muted);
}

.hero-footnote {
  margin: 18px 0 0;
  color: var(--hero-footnote);
  font-size: 0.78rem;
}

.hero-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: max(6vw, calc((100vw - 1200px) / 2 + 36px));
  width: 280px;
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.art-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid var(--orbit-line);
  border-radius: 50%;
}

.art-orbit-inner {
  inset: 16%;
  border-style: dashed;
  border-color: var(--orbit-dash);
}

.art-core {
  position: absolute;
  inset: 31%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32%;
  background: linear-gradient(145deg, #7771f4, #514bd7);
  box-shadow: 0 24px 55px rgba(74, 67, 192, 0.25);
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  transform: rotate(-8deg);
}

.art-core span {
  transform: rotate(8deg);
}

.art-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: 0 5px 12px rgba(43, 151, 104, 0.14);
  transform: rotate(24deg);
}

.art-spark-one {
  top: 14%;
  right: 21%;
}

.art-spark-two {
  bottom: 17%;
  left: 12%;
  width: 8px;
  height: 8px;
  background: #b4b0ff;
}

.section-wrap {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.plans {
  padding-block: 78px 86px;
}

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

.section-heading h2,
.about h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-description {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.plan-card {
  position: relative;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  box-shadow: var(--card-shadow-hover);
}

.plan-card-featured {
  border-color: var(--featured-border);
  background: var(--featured-surface);
}

.popular-label {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--popular-ink);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.plan-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.plan-heading h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.plan-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.plan-icon-free {
  background: var(--plan-icon-neutral);
  color: var(--plan-icon-neutral-ink);
}

.plan-icon-growth {
  background: var(--primary-soft);
  color: var(--primary);
}

.plan-icon-premium {
  background: var(--plan-icon-green);
  color: var(--plan-icon-green-ink);
}

.plan-price {
  margin: 25px 0 5px;
  font-size: 2.2rem;
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1.2;
}

.plan-price span {
  color: var(--price-muted);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
}

.plan-description {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.plan-link {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 13px;
  border: 1px solid var(--plan-link-border);
  border-radius: 9px;
  background: var(--plan-link-bg);
  font-size: 0.83rem;
  font-weight: 650;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.plan-link:hover {
  border-color: var(--primary);
  background: var(--plan-link-hover);
  color: var(--primary-dark);
}

.plan-card-featured .plan-link {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.plan-card-featured .plan-link:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.feature-list {
  display: grid;
  gap: 11px;
  margin: 20px 0 0;
  padding: 19px 0 0;
  border-top: 1px solid var(--feature-divider);
  list-style: none;
  color: var(--feature-ink);
  font-size: 0.83rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.feature-list li::before {
  content: "\2713";
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--check-bg);
  color: var(--check-ink);
  font-size: 0.66rem;
  font-weight: 800;
}

.about {
  padding-bottom: 78px;
}

.about-panel {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--about-shadow);
}

.about h2 {
  max-width: 700px;
  margin-bottom: 20px;
}

.about-panel > p:not(.section-kicker) {
  max-width: 900px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.footer-inner {
  min-height: 74px;
}

.footer-brand {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-inner p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .hero-art {
    right: -65px;
    opacity: 0.42;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
  }

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

  .plan-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .header-inner,
  .footer-inner,
  .hero-inner,
  .section-wrap {
    width: calc(100% - 36px);
    max-width: var(--content-width);
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--control-bg);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 10px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    width: min(100%, var(--content-width));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-inline: auto;
  }

  .site-nav a,
  .site-nav .nav-cta {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    margin: 0;
    padding-inline: 13px;
  }

  .hero {
    min-height: 430px;
    background:
      linear-gradient(90deg, var(--hero-overlay), var(--hero-overlay-soft)),
      url("../img/background.jpg") center/cover no-repeat;
  }

  .hero::before {
    top: -100px;
    right: -100px;
    width: 300px;
  }

  .hero-inner {
    padding-block: 62px;
  }

  .hero-art {
    top: auto;
    right: -105px;
    bottom: -105px;
    width: 230px;
    transform: none;
    opacity: 0.25;
  }

  .hero::before {
    animation: none;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 10vw, 3.6rem);
  }

  .plans {
    padding-block: 58px 64px;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

@media (max-width: 540px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-card:last-child {
    grid-column: auto;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-block: 16px;
  }

  .header-inner {
    gap: 10px;
  }

  .theme-toggle {
    min-height: 38px;
    margin-left: auto;
    padding-inline: 9px;
  }
}

@media (max-width: 360px) {
  .header-inner {
    width: calc(100% - 12px);
    gap: 4px;
  }

  .brand {
    gap: 5px;
    font-size: 0.8rem;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .theme-toggle {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    font-size: 0;
  }

  .theme-toggle-icon {
    font-size: 1rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero::before {
    animation: none;
  }
}
