*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0b10;
  --bg-elevated: #12141c;
  --bg-card: #181b26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f1f5;
  --text-muted: #9ca3b8;
  --accent: #8b6cff;
  --accent-hover: #a78fff;
  --accent-glow: rgba(139, 108, 255, 0.35);
  --ok: #6ee7b7;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 108, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(56, 189, 248, 0.06), transparent);
  pointer-events: none;
  z-index: -1;
}

main {
  flex: 1;
}

a {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #6d4ce6;
  position: relative;
  flex-shrink: 0;
}

.logo__mark::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo__mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 8px;
  border: 1.6px solid #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.72;
  cursor: progress;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6d4ce6);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #7c5ce8);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  padding: 0.75rem;
}

.btn-spaced {
  margin-top: 1.1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem);
}

.hero__badge,
.kicker {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-hover);
  background: rgba(139, 108, 255, 0.12);
  border: 1px solid rgba(139, 108, 255, 0.25);
  border-radius: 999px;
}

.hero h1,
.page-intro h1,
.empty h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero__subtitle,
.page-intro .lede,
.empty p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.mock__top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: normal;
}

.mock__top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mock__top em {
  margin-left: 0.4rem;
  font-style: normal;
}

.mock__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem;
}

.bubble {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.bubble--user {
  align-self: flex-end;
  max-width: 90%;
  background: rgba(139, 108, 255, 0.16);
  border: 1px solid rgba(139, 108, 255, 0.25);
}

.bubble--ai {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.bubble--ai strong {
  display: block;
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) clamp(3.5rem, 7vw, 5rem);
  width: 100%;
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0.5rem auto 2.25rem;
  max-width: 520px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.4rem;
}

.feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: rgba(139, 108, 255, 0.12);
  color: var(--accent-hover);
}

.feature__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-hover);
  margin-bottom: 0.6rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan.is-featured {
  border-color: rgba(139, 108, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 108, 255, 0.2);
}

.plan__name {
  font-weight: 600;
}

.plan__price {
  font-size: 2rem;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.plan__price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.plan .btn {
  margin-top: auto;
}

.page-intro,
.empty {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) 0.5rem;
}

.empty {
  padding-bottom: 4rem;
  text-align: center;
}

.empty .btn {
  margin-top: 1.5rem;
}

.empty p {
  margin-left: auto;
  margin-right: auto;
}

.doc {
  width: min(740px, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 4rem;
}

.doc h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.doc .updated {
  color: var(--text-muted);
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.doc h2 {
  margin-top: 1.8rem;
  font-size: 1.12rem;
}

.doc p,
.doc li {
  color: var(--text-muted);
}

.doc p,
.doc ul {
  margin-top: 0.7rem;
}

.doc ul {
  padding-left: 1.15rem;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  color: var(--text-muted);
  margin-top: 0.55rem;
  font-size: 0.95rem;
}

.status-list {
  list-style: none;
  max-width: 640px;
  margin-top: 1.5rem;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.status-list span {
  color: var(--ok);
  font-size: 0.9rem;
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
}

.footer__grid {
  max-width: 1120px;
  margin: 0 auto 1.75rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
}

.footer__brand p {
  color: var(--text-muted);
  margin-top: 0.7rem;
  font-size: 0.9rem;
  max-width: 260px;
}

.footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer a:hover {
  color: var(--accent-hover);
}

.footer__copy {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cookie {
  position: fixed;
  z-index: 150;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cookie[hidden] {
  display: none;
}

.cookie p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition);
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field__input {
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  width: 100%;
}

.field__input::placeholder {
  color: #5c6378;
}

.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field-aside {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}

.form-message {
  font-size: 0.85rem;
  color: var(--danger);
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--ok);
}

.modal__footer {
  margin-top: 1.15rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.link-register {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: none;
}

.link-register:hover {
  color: #c4b5fd;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.hint {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.hint strong {
  color: var(--text);
  font-weight: 600;
}

.sent-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.35);
  margin-bottom: 0.9rem;
  position: relative;
}

.sent-mark::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 11px;
  width: 8px;
  height: 14px;
  border: solid var(--ok);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .hero,
  .features,
  .steps,
  .plans,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.25rem 1.2rem;
    background: rgba(10, 11, 16, 0.97);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .cookie {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
