:root {
  --ink: #16142b;
  --ink-soft: #565a7e;
  --paper: #f4f5fb;
  --surface: #ffffff;
  --brand: #4f46e5;
  --brand-deep: #312e81;
  --brand-mid: #4338ca;
  --accent: #fb7185;
  --line: rgba(22, 20, 43, 0.12);
  --shadow: 0 24px 60px rgba(49, 46, 129, 0.18);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(129, 140, 248, 0.45), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(251, 113, 133, 0.22), transparent 50%),
    linear-gradient(180deg, #eef0ff 0%, var(--paper) 42%, #eceefc 100%);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(244, 245, 251, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--brand);
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(160deg, rgba(17, 14, 46, 0.2), rgba(49, 46, 129, 0.55) 45%, rgba(79, 70, 229, 0.75)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Ccircle cx='12' cy='12' r='1.4' fill='%23ffffff' fill-opacity='0.18'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #120f2e, #312e81 55%, #4f46e5);
  background-size: cover, 28px 28px, cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 35%;
  z-index: -1;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.35), transparent 65%);
  filter: blur(8px);
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 6%, 0) scale(1.08); }
}

.hero-inner {
  padding: clamp(4.5rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  color: #f8f7ff;
  max-width: 40rem;
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.hero p {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  color: rgba(248, 247, 255, 0.88);
  max-width: 36ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  outline: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

.btn-brand:hover {
  background: var(--brand-mid);
}

.btn-soft {
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand-deep);
}

section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 820px) {
  .split-2 {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--brand);
  background: rgba(255, 255, 255, 0.55);
}

.feature-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.plans {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .plans {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan {
  position: relative;
  padding: 1.35rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.55rem;
  align-content: start;
  transition: transform 0.25s ease;
}

.plan:hover {
  transform: translateY(-4px);
}

.plan.featured {
  outline: 2px solid var(--brand);
}

.plan .price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
}

.plan .price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.plan .tier {
  font-weight: 800;
  color: var(--brand-deep);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fafbff;
}

input:focus,
select:focus {
  outline: 2px solid rgba(79, 70, 229, 0.35);
  border-color: var(--brand);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.form-status.ok {
  color: #15803d;
}

.form-status.err {
  color: #be123c;
}

.community {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(251, 113, 133, 0.12));
  border: 1px solid var(--line);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.reveal {
  animation: rise 0.8s ease-out both;
}
