/* ============================================
   MATRIX VPS — Terminal-style landing page
   Mobile-first responsive design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f6f8f7;
  --bg-soft: #eef2f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f7f4;
  --border: #e3e8e5;
  --border-hover: #00b25a;
  --green: #00b25a;
  --green-dim: #009048;
  --green-soft: rgba(0,178,90,0.10);
  --red: #e5484d;
  --orange: #c2700a;
  --text: #3c444c;
  --text-dim: #6b7686;
  --text-bright: #0f1722;
  --mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;
  --sans: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1120px;
  --px: 20px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: var(--green); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

img { max-width: 100%; height: auto; display: block; }

/* --- Container --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }

/* --- Section spacing --- */
section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 96px 0; } }

/* --- Section label (// Title) --- */
.section-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-dim);
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}

/* --- Typography --- */
h1, h2, h3 { font-family: var(--sans); color: var(--text-bright); font-weight: 800; letter-spacing: -0.02em; }

h1 { font-size: clamp(28px, 6vw, 52px); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 4vw, 36px); line-height: 1.25; }
h3 { font-size: clamp(16px, 2.5vw, 20px); line-height: 1.35; }

.subtitle {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.6;
}

/* green highlight in headings */
.hl { color: var(--green); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--green);
  color: #000;
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dim); border-color: var(--green-dim); opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--border-hover);
}
.btn-outline:hover { background: var(--green-soft); border-color: var(--green); opacity: 1; }

/* --- Tags (pill badges) --- */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* --- Card base --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color .3s, background .3s;
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,12,8,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

@media (min-width: 768px) {
  .header-inner { height: 72px; gap: 24px; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.08em;
  text-decoration: none;
  min-width: 0;
}

@media (min-width: 768px) {
  .logo { gap: 14px; }
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 900;
  font-size: 18px;
}

.logo-img {
  width: 40px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .logo-img { width: 52px; height: 28px; }
}

.logo-sub {
  display: none;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .logo-sub { display: inline; font-size: 11px; }
}

.logo > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
  white-space: nowrap;
  min-width: 0;
}

.logo > span > span:first-child {
  font-size: 15px;
}

@media (min-width: 768px) {
  .logo > span > span:first-child { font-size: 17px; letter-spacing: 0.1em; }
}

.logo > span br {
  display: none;
}

nav { display: none; }

@media (min-width: 768px) {
  nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  nav a {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-dim);
    transition: color .2s;
    letter-spacing: 0.02em;
  }
  nav a:hover { color: var(--green); opacity: 1; }
}

.header-cta {
  display: none !important;
  font-size: 13px !important;
  padding: 8px 18px !important;
}

@media (min-width: 768px) {
  .header-cta { display: inline-flex !important; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 108px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding-top: 152px; padding-bottom: 96px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.hero-vps-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  opacity: .7;
}
.hero-vps-label::before { content: '— '; }

.hero h1 { margin-bottom: 16px; }

.hero .subtitle { margin-bottom: 24px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-payment {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.payment-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.payment-icons span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.pay-icon {
  height: 20px;
  width: auto;
  opacity: .7;
  transition: opacity .2s;
}
.pay-icon:hover { opacity: 1; }

/* Hero visual — terminal window */
.hero-visual {
  display: none;
}

@media (min-width: 768px) {
  .hero-visual {
    display: block;
    position: relative;
  }
}

.terminal {
  background: #0d120d;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0,255,102,0.04);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

.terminal-body {
  padding: 16px;
  line-height: 1.8;
  color: var(--text-dim);
}

.terminal-body .prompt { color: var(--green); }
.terminal-body .cmd { color: var(--text-bright); }
.terminal-body .output { color: var(--text-dim); }
.terminal-body .success { color: var(--green); }
.terminal-body .warn { color: var(--orange); }

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card { text-align: left; }

.feature-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: .6;
}

.feature-card h3 { margin-bottom: 10px; }

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================================
   STATS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 600px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  background: var(--bg-card);
  padding: 24px 20px;
  text-align: center;
}

.stat-value {
  font-family: var(--mono);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 30px rgba(0,255,102,0.08);
}

.price-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.price-badge.green { background: var(--green); color: #000; }
.price-badge.orange { background: var(--orange); color: #000; }
.price-badge.red { background: var(--red); color: #fff; }

.price-name {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text-bright);
  font-weight: 600;
  margin-bottom: 12px;
}

.price-value {
  font-family: var(--mono);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
}

.price-value .currency {
  font-size: 0.6em;
  margin-left: 4px;
}

.price-per {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 4px;
  margin-bottom: 16px;
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

.price-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

.step-card {
  display: flex;
  gap: 16px;
}

.step-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #000;
  background: var(--green);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 { margin-bottom: 6px; font-size: 16px; }

.step-content p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* terminal-style location demo */
.location-demo {
  margin-top: 24px;
}

.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.location-tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
}
.location-tag:hover, .location-tag.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.location-output {
  font-family: var(--mono);
  font-size: 12px;
  background: #0d120d;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--green);
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card { display: flex; flex-direction: column; }

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--green-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
}

.review-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
}

.review-time {
  font-size: 12px;
  color: var(--text-dim);
}

.review-stars {
  color: var(--green);
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .3s;
}

.faq-item.open { border-color: var(--border-hover); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}

.faq-q:hover { color: var(--green); }

.faq-icon {
  font-size: 18px;
  color: var(--green);
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

.faq-a-inner {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

@media (min-width: 768px) {
  .cta-section { padding: 120px 0; }
}

.cta-section h2 { margin-bottom: 12px; }
.cta-section .subtitle { margin: 0 auto 32px; text-align: center; }

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  transition: color .2s;
}
.footer-links a:hover { color: var(--green); opacity: 1; }

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all .3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0; bottom: 0;
  background: rgba(8,12,8,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  padding: 32px var(--px);
}

.mobile-nav.open { display: flex; flex-direction: column; gap: 4px; }

.mobile-nav a {
  display: block;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--green); opacity: 1; }

.mobile-nav .btn {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

/* ============================================
   Glow / decorative
   ============================================ */
.glow-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,102,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* --- Scroll padding for fixed header --- */
[id] { scroll-margin-top: 72px; }

/* ============================================
   PAYMENT MODAL
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open { display: flex; }

.modal-card {
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px 24px;
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.modal-close:hover { color: var(--text-bright); }

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: #0d120d;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-bright);
  font-family: var(--mono);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--green); }
.form-input::placeholder { color: var(--text-dim); opacity: .5; }

/* Plan radio cards */
.plan-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.plan-option { cursor: pointer; }
.plan-option input { display: none; }

.plan-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: all .2s;
}

.plan-option input:checked + .plan-box {
  border-color: var(--green);
  background: var(--green-soft);
}

.plan-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
}

.plan-price {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
}

.plan-desc {
  font-size: 11px;
  color: var(--text-dim);
}

/* Method selector */
.method-selector {
  display: flex;
  gap: 8px;
}

.method-option { cursor: pointer; flex: 1; }
.method-option input { display: none; }

.method-box {
  display: block;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all .2s;
}

.method-option input:checked + .method-box {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

/* --- Selection --- */
::selection { background: rgba(0,255,102,0.25); color: #fff; }

/* --- Scrollbar (webkit) --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dim); }

/* --- Safe area padding for notched phones --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
}

/* ============================================
   TARIFFS — redesigned (2026-04-22)
   3 plan cards + period toggle + accordion
   ============================================ */

.trial-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,255,102,0.03) 0%, rgba(0,255,102,0) 100%);
  margin-bottom: 24px;
}
.trial-info { display: flex; flex-direction: column; gap: 6px; }
.trial-name { font-size: 18px; font-weight: 700; color: var(--text-bright); }
.trial-desc { font-size: 13px; color: var(--text-dim); }
.trial-btn { width: 100%; }

@media (min-width: 640px) {
  .trial-card { flex-direction: row; align-items: center; gap: 24px; }
  .trial-info { flex: 1; }
  .trial-btn { width: auto; min-width: 200px; }
}

/* --- Period toggle --- */
.period-toggle {
  display: inline-flex;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 0 0 24px;
  width: 100%;
  max-width: 100%;
  gap: 2px;
}
.period-btn {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.period-btn:hover { color: var(--text-bright); }
.period-btn.active {
  background: var(--green);
  color: #000;
  font-weight: 700;
}
.save-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,176,0,0.2);
  color: #ffb000;
  letter-spacing: 0;
  font-weight: 600;
}
.period-btn.active .save-badge {
  background: rgba(0,0,0,0.15);
  color: #005c1c;
}

@media (min-width: 640px) {
  .period-toggle { width: auto; }
}

/* --- Plans grid --- */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
  }
  /* neo-style 4-duration row */
  .plans-grid.four { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 520px) and (max-width: 767px) {
  .plans-grid.four { grid-template-columns: repeat(2, 1fr); }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.plan-card:hover {
  border-color: rgba(0,255,102,0.3);
  transform: translateY(-2px);
}
.plan-card.featured {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(0,255,102,0.05) 0%, rgba(0,255,102,0) 100%);
  box-shadow: 0 0 0 1px var(--green) inset, 0 8px 32px -8px rgba(0,255,102,0.2);
}

@media (min-width: 768px) {
  .plan-card.featured { transform: scale(1.02); }
  .plan-card.featured:hover { transform: scale(1.02) translateY(-2px); }
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-head { display: flex; flex-direction: column; gap: 2px; }
.plan-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
}
.plan-tagline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
}
.plan-amount {
  font-size: 36px;
  color: var(--text-bright);
  line-height: 1;
}
.plan-period {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

.plan-subprice {
  min-height: 18px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--mono);
}
.plan-total-year { color: var(--green); }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.plan-btn { width: 100%; margin-top: 4px; }

/* --- Other periods accordion --- */
.other-periods {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
}
.other-periods-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: color .2s, background .2s;
}
.other-periods-toggle:hover {
  color: var(--text-bright);
  background: rgba(0,255,102,0.03);
}
.op-caret {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--green);
  flex-shrink: 0;
}
.other-periods-content {
  padding: 8px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border);
}
.op-group { display: flex; flex-direction: column; gap: 8px; }
.op-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.op-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.op-chip {
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
}
.op-chip b { color: var(--green); font-weight: 700; }
.op-chip:hover {
  border-color: var(--green);
  background: rgba(0,255,102,0.05);
}

/* ===================================================================
   LIGHT THEME POLISH — mass-market white look (2026-06-30)
   Revert: удалить этот блок + вернуть тёмные :root + h1/h2/h3 mono.
   =================================================================== */
body { background: var(--bg); color: var(--text); }

/* surfaces → white cards + soft shadow */
.card, .faq-item, .stat {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(16,23,34,.04), 0 10px 30px -16px rgba(16,23,34,.10);
}
.card:hover, .faq-item:hover {
  border-color: #c9e7d8;
  box-shadow: 0 2px 4px rgba(16,23,34,.05), 0 16px 42px -18px rgba(0,178,90,.20);
}
.stats-grid { background: transparent; box-shadow: none; border: none; }
.stat-value { color: var(--green-dim); }
.stat-label { color: var(--text-dim); }

/* header */
.header {
  background: rgba(246,248,247,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header nav a { color: var(--text-dim); }
.header nav a:hover { color: var(--green-dim); opacity: 1; }
.logo span { color: var(--text-bright); }
.logo-sub { color: var(--text-dim); }

/* buttons → friendly sans */
.btn { font-family: var(--sans); font-weight: 700; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 8px 22px -8px rgba(0,178,90,.45); }
.btn-primary:hover { background: var(--green-dim); border-color: var(--green-dim); color: #fff; }
.btn-outline { background: #fff; color: var(--text-bright); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-soft); border-color: var(--green); color: var(--green-dim); }

/* hero light */
.hero { background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.hero-vps-label { color: var(--green-dim); }
.tag { background: #fff; border: 1px solid var(--border); color: var(--text); }

/* terminal — sleek dark code window on light page (intentional accent) */
.terminal { background: #0d1117; border: 1px solid #1f2630; box-shadow: 0 26px 64px -26px rgba(16,23,34,.45); }
.terminal-bar { background: #161b22; border-bottom: 1px solid #1f2630; }
.terminal-title { color: #6b7686; }
.terminal-body { background: #0d1117; }
.terminal-body .cmd { color: #e6edf3; }
.terminal-body .output { color: #9aa4b2; }
.terminal-body .prompt { color: #00d46a; }
.terminal-body .success { color: #2ec27e; }
.terminal-body .warn { color: #d9a441; }

/* code chips light */
.location-output { background: #f1f5f3; border: 1px solid var(--border); color: var(--green-dim); }
.location-tag { background: #fff; border: 1px solid var(--border); color: var(--text); }
.location-tag:hover, .location-tag.active { background: var(--green-soft); border-color: var(--green); color: var(--green-dim); }

/* plans */
.plan-card.featured {
  background: linear-gradient(180deg, rgba(0,178,90,.06) 0%, #fff 60%);
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green) inset, 0 22px 54px -22px rgba(0,178,90,.30);
}
.plan-amount { color: var(--text-bright); }
.plan-badge { color: #fff; }

/* faq */
.faq-q { color: var(--text-bright); }
.faq-q:hover { color: var(--green-dim); }
.faq-a-inner { color: var(--text); }

/* ===== FLASH OFFER (тариф 3 месяца) ===== */
.plan-card.flash {
  border-color: #ff6a2b;
  background: linear-gradient(180deg, rgba(255,106,43,.08) 0%, #fff 62%);
  box-shadow: 0 0 0 1px #ff6a2b inset, 0 22px 54px -22px rgba(255,106,43,.4);
}
@media (min-width: 768px) {
  .plan-card.flash { transform: scale(1.03); }
  .plan-card.flash:hover { transform: scale(1.03) translateY(-2px); }
}
.plan-badge.flash-badge {
  background: linear-gradient(100deg, #ff8a2b, #ff4d6a);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(255,77,106,.7);
  animation: flashPulse 2.4s ease-in-out infinite;
}
@keyframes flashPulse {
  0%,100% { box-shadow: 0 6px 18px -6px rgba(255,77,106,.55); }
  50% { box-shadow: 0 6px 26px -4px rgba(255,77,106,.95); }
}
.plan-guarantee {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: .01em;
}
.plan-old {
  font-size: 18px;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: #ff4d6a;
  font-weight: 600;
  margin-right: 2px;
  align-self: center;
}
.plan-card.flash .plan-btn { background: linear-gradient(100deg, #ff8a2b, #ff4d6a); border-color: transparent; color: #fff; }
.plan-card.flash .plan-btn:hover { filter: brightness(1.05); }

/* reviews */
.review-avatar { background: var(--green-soft); color: var(--green-dim); }
.review-stars { color: #f5a623; }

/* modal */
.modal-overlay { background: rgba(15,23,34,.45); backdrop-filter: blur(4px); }
.modal-card { background: #fff; border: 1px solid var(--border); box-shadow: 0 30px 80px -20px rgba(16,23,34,.30); }
.form-input { background: #fff; border: 1px solid var(--border); color: var(--text-bright); }
.method-box { background: #fff; border: 1px solid var(--border); color: var(--text); }
.method-option input:checked + .method-box { border-color: var(--green); color: var(--green-dim); background: var(--green-soft); }

/* mobile nav */
.mobile-nav { background: #fff; }
.mobile-nav a { color: var(--text-bright); }
.menu-toggle span { background: var(--text-bright); }

/* footer + misc */
.footer { border-top: 1px solid var(--border); }
.footer-copy, .footer-links a { color: var(--text-dim); }
.feature-num { color: var(--green-dim); }
::selection { background: rgba(0,178,90,.18); color: #0f1722; }
