:root {
  color-scheme: dark;
  --bg: #0b0f19;
  --card: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --accent-from: #22d3ee;
  --accent-to: #3b82f6;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --glow: 0 8px 28px rgba(34, 211, 238, 0.38), 0 0 48px rgba(59, 130, 246, 0.18);
  --ease: cubic-bezier(0.42, 0, 0.58, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -18%, rgba(34, 211, 238, 0.22), transparent 58%),
    radial-gradient(ellipse 70% 45% at 108% 8%, rgba(59, 130, 246, 0.16), transparent 52%),
    radial-gradient(ellipse 55% 40% at -8% 88%, rgba(14, 165, 233, 0.1), transparent 48%),
    #0b0f19;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 25, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.logo-img,
.footer-logo {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: 11.5rem;
  object-fit: contain;
}

.hero-logo {
  display: block;
  margin: 0 auto;
  height: clamp(3.5rem, 10vw, 5.6rem);
  width: auto;
  max-width: min(38rem, 100%);
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.28));
}

.title-logo,
.copy-logo {
  display: inline-block;
  height: 1.15em;
  width: auto;
  max-width: 11rem;
  vertical-align: -0.22em;
  object-fit: contain;
}

.copy-logo {
  height: 1.05em;
  max-width: 7.5rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: #67e8f9;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}

.site-header .btn-sm,
.site-header-actions .btn-sm {
  height: 2.5rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  margin: 0;
}

.btn-cabinet-user {
  height: 2.5rem;
  width: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0.85rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  margin: 0;
}

.btn-cabinet-user svg {
  display: block;
  width: 20px;
  height: 20px;
}

.btn-cabinet-user:hover {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
  transform: translateY(-1px);
}

.btn-cabinet-user:active {
  transform: scale(0.97);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 42rem;
}

.eyebrow,
.section-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #67e8f9;
}

.hero h1 {
  margin: 0;
  line-height: 1;
}

.hero-lead {
  margin: 1.1rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.section {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

.back-link:hover {
  color: #67e8f9;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0.55rem 0 1.4rem;
  max-width: 38rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.95rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  color: #031525;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  box-shadow: var(--glow);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.07);
}

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

.btn-ghost:hover:not(:disabled) {
  border-color: rgba(34, 211, 238, 0.35);
}

.btn.is-soon,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  filter: none;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.85rem;
}

.dl-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.28s var(--ease), border-color 0.28s;
}

.dl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.28);
}

.dl-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dl-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.dl-card-head h2,
.dl-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.dl-card-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dl-actions .btn {
  width: 100%;
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
}

.dl-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #67e8f9;
}

.dl-guide:hover {
  text-decoration: underline;
}

.dl-cta {
  margin: 1.1rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.dl-cta a {
  color: #67e8f9;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
}

.feat-card {
  padding: 1.2rem 1.15rem;
  border-radius: 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
}

.feat-icon {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.feat-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.feat-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.section-pricing {
  text-align: center;
}

.section-pricing .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.price-card {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.75rem 1.6rem 1.5rem;
  border-radius: 1.35rem;
  background: var(--card);
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.price-badge {
  margin: 0 0 0.85rem;
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.price-amount {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-amount span {
  margin-right: 0.2rem;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
  vertical-align: 0.42em;
}

.price-period {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.price-tiers {
  display: grid;
  gap: 0.65rem;
  margin: 1.35rem 0 1.35rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.price-tiers li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.05rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.price-tiers strong {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.price-tiers .is-trial {
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.08);
}

.price-tiers .is-trial span,
.price-tiers .is-trial strong {
  color: #67e8f9;
}

.price-card .btn {
  width: auto;
  min-width: 14rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 15, 0.55);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 2.1rem;
  max-width: 10.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: #67e8f9;
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .logo-img {
    height: 1.95rem;
    max-width: 8.75rem;
  }

  .hero-actions-row {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .price-card .btn {
    width: 100%;
    min-width: 0;
  }
}


/* ==================== NEW PRICING GRID & TABS ==================== */
.pricing-header-wrap {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.trial-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.28);
  font-size: 0.88rem;
  font-weight: 600;
  color: #67e8f9;
}

.trial-banner-badge {
  background: #22d3ee;
  color: #031525;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-periods {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  gap: 0.35rem;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 2.2rem;
}

.period-tab {
  padding: 0.6rem 1.15rem;
  border-radius: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.period-tab:hover {
  color: var(--text);
}

.period-tab.is-active {
  color: #031525;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

.period-discount {
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  padding: 0.12rem 0.48rem !important;
  border-radius: 999px !important;
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.45) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.2rem !important;
}

.period-tab.is-active .period-discount {
  background: rgba(0, 0, 0, 0.25) !important;
  color: #031525 !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  text-align: left;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.5rem 1.6rem;
  border-radius: 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
}

.plan-card.is-popular {
  border-color: rgba(34, 211, 238, 0.6);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06) 0%, var(--card) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(34, 211, 238, 0.18);
  transform: scale(1.02);
}

.plan-card.is-popular:hover {
  transform: scale(1.02) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #031525;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.4);
}

.plan-header {
  margin-bottom: 1.25rem;
}

.plan-icon {
  font-size: 1.85rem;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.plan-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.plan-desc {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.plan-price-wrap {
  margin-bottom: 1.4rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.plan-price-old-wrap {
  min-height: 1.2rem;
  margin-bottom: 0.2rem;
}

.plan-price-old {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: line-through;
  text-decoration-color: #ef4444;
}

.plan-price-amount {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.plan-price-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-price-sub {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: #67e8f9;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(34, 211, 238, 0.2);
  width: fit-content;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.plan-features li .check-icon {
  color: #22d3ee;
  font-weight: bold;
  flex-shrink: 0;
}

.plan-card .btn {
  width: 100%;
}

.pricing-footer-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin: 0 auto;
  }
  .plan-card.is-popular {
    transform: none;
  }
  .plan-card.is-popular:hover {
    transform: translateY(-4px);
  }
}
