/* ===============================================
   XEXTR — Современный CX/UI дизайн 2026
   =============================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --surface: #0b1220;
  --surface-strong: #151a2c;
  --surface-soft: #172a44;
  --surface-contrast: rgba(255,255,255,0.07);
  --text: #eef2ff;
  --text-muted: #9aa7c3;
  --text-secondary: #c5d0ec;
  --border: rgba(255,255,255,0.1);
  --primary: #8b5cf6;
  --primary-soft: #c084fc;
  --primary-strong: #7c3aed;
  --accent: #ec4899;
  --accent-soft: #f9a8d4;
  --success: #22c55e;
  --danger: #ef4566;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

html {
  scroll-behavior: smooth;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 18%),
              radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 16%),
              linear-gradient(180deg, #090512 0%, #120a24 35%, #160a2c 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(7, 13, 29, 0.88);
  backdrop-filter: blur(18px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 28px;
  height: 20px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.btn-login,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-login {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  box-shadow: 0 18px 45px rgba(92, 124, 250, 0.22);
}

.btn-login:hover {
  transform: translateY(-2px);
}

/* HERO */
.hero {
  padding: 120px 0 82px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(92, 124, 250, 0.16), transparent 20%),
              radial-gradient(circle at 82% 18%, rgba(245, 166, 35, 0.12), transparent 18%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -1px;
  max-width: 760px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(90deg, #f8fbff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  box-shadow: 0 18px 45px rgba(92, 124, 250, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.hero-note {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check-icon {
  color: var(--success);
  font-weight: 800;
}

/* SECTIONS */
.section-title {
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 3rem;
}

.features,
.pricing,
.faq,
.cta {
  padding: 90px 0;
}

.features-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  gap: 1.75rem;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  min-height: 300px;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(92, 124, 250, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 18px 45px rgba(92, 124, 250, 0.18);
  margin-bottom: 1.35rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.75;
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pricing-card {
  background: rgba(7, 13, 29, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(92, 124, 250, 0.18), rgba(7, 13, 29, 0.92));
  border-color: rgba(92, 124, 250, 0.35);
}

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

.badge {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(92, 124, 250, 0.14);
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 1.35rem;
}

.price {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.currency,
.period {
  color: var(--text-muted);
}

.features-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 1rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
}

.features-list i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.8rem;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
  position: relative;
}

.faq-item:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 124, 250, 0.35);
}

.faq-item h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.8;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.faq-item.active p {
  max-height: 18rem;
  opacity: 1;
}

.faq-item::after {
  content: '+';
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  color: var(--text-muted);
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

.faq-item.active::after {
  content: '–';
  transform: translateY(1px);
  color: var(--primary);
}

.cta {
  background: linear-gradient(150deg, rgba(92, 124, 250, 0.12), rgba(7, 13, 29, 0.96) 55%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  max-width: 740px;
  margin: 0;
}

.cta p {
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 0.85rem;
}

.footer {
  background: #090d18;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.75rem;
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: min(560px, 100%);
  max-height: min(90vh, 100%);
  overflow: auto;
  border-radius: 28px;
  background: rgba(10, 16, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.3rem;
  display: grid;
  place-items: center;
}

.form-group {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 1rem 1.1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(92, 124, 250, 0.6);
  box-shadow: 0 0 0 3px rgba(92, 124, 250, 0.12);
}

.error-message {
  color: var(--danger);
  font-size: 0.95rem;
  min-height: 1.3rem;
  margin-bottom: 1rem;
}

.loader {
  display: none;
  margin: 0 auto 1rem;
  width: 32px;
  height: 32px;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader.active {
  display: block;
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
}

.link-button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero { padding-top: 100px; }
  .hero-title { font-size: clamp(2.8rem, 6vw, 3.8rem); }
  .section-title { margin-bottom: 2.5rem; }
}

@media (max-width: 840px) {
  .nav { gap: 1.5rem; }
  .header-content { gap: 1rem; }
}

@media (max-width: 760px) {
  .hero { padding-top: 90px; }
  .hero-subtitle { font-size: 1rem; }
  .features-grid,
  .pricing-grid,
  .faq-grid { gap: 1.35rem; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 76px 20px auto auto;
    right: 20px;
    left: 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    background: rgba(7, 13, 29, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }

  .btn-login {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero { padding-top: 80px; }
  .hero-title { font-size: clamp(2.4rem, 8vw, 3.2rem); }
  .hero-buttons { flex-direction: column; }
  .hero-note { font-size: 0.9rem; }
  .cta .container { flex-direction: column; align-items: flex-start; }
}
