:root {
  --base:     #0C0C10;
  --surface:  #16161E;
  --surface2: #1C1C28;
  --border:   #1E1E2A;
  --border2:  #2A2A3A;
  --text:     #F1F1F3;
  --muted:    #6B6B80;
  --faint:    #2E2E42;
  --green:    #22C55E;
  --green-d:  #0D2B1A;
  --green-b:  #166534;
  --red:      #EF4444;
  --amber:    #F59E0B;
  --font-d:   'Syne', sans-serif;
  --font-b:   'DM Sans', sans-serif;
  --font-m:   'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--base);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}

/* ── GRID BG ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12,12,16,.8);
  backdrop-filter: blur(16px);
  border-bottom: .5px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: .5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
}

.nav-logo-text {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}

.nav-logo-text span { color: var(--green); }

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

.nav-links a {
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--green) !important;
  color: #0C0C10 !important;
  padding: .4rem 1rem;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: opacity .15s !important;
}

.nav-cta:hover { opacity: .88 !important; color: #0C0C10 !important; }

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-d);
  border: .5px solid var(--green-b);
  border-radius: 20px;
  padding: 4px 14px;
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--green);
  margin-bottom: 1.5rem;
  animation: fadeUp .6s ease both;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--text);
  max-width: 900px;
  margin-bottom: 1.25rem;
  animation: fadeUp .6s .1s ease both;
}

.hero-title .accent { color: var(--green); }
.hero-title .dim { color: var(--muted); }

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 300;
  animation: fadeUp .6s .2s ease both;
}

.hero-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  width: 100%;
  animation: fadeUp .6s .3s ease both;
}

.hero-input {
  flex: 1;
  background: var(--surface);
  border: .5px solid var(--border2);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}

.hero-input::placeholder { color: var(--muted); }
.hero-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.1); }

.hero-btn {
  background: var(--green);
  color: #0C0C10;
  border: none;
  border-radius: 8px;
  padding: .75rem 1.5rem;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s, transform .1s;
}

.hero-btn:hover { opacity: .88; }
.hero-btn:active { transform: scale(.98); }

.hero-hint {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  margin-top: .75rem;
  animation: fadeUp .6s .4s ease both;
}

/* ── TERMINAL MOCKUP ── */
.hero-terminal {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  max-width: 680px;
  width: 100%;
  background: var(--surface);
  border: .5px solid var(--border2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 .5px var(--border);
  animation: fadeUp .7s .4s ease both;
}

.terminal-bar {
  background: var(--surface2);
  border-bottom: .5px solid var(--border);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-red   { background: #EF4444; }
.t-amber { background: #F59E0B; }
.t-green { background: #22C55E; }

.terminal-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
}

.terminal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.t-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .75rem;
  border-radius: 8px;
  background: var(--base);
  border: .5px solid var(--border);
  animation: slideIn .4s ease both;
}

.t-row:nth-child(1) { animation-delay: .6s; }
.t-row:nth-child(2) { animation-delay: .75s; }
.t-row:nth-child(3) { animation-delay: .9s; }
.t-row:nth-child(4) { animation-delay: 1.05s; }
.t-row.down { background: rgba(239,68,68,.05); border-color: rgba(239,68,68,.2); }

.t-left { display: flex; align-items: center; gap: 8px; }
.t-dot-sm { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.t-up   { background: var(--green); }
.t-down { background: var(--red); }
.t-chk  { background: var(--amber); }

.t-name {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--text);
}

.t-meta {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

.t-lat {
  font-family: var(--font-m);
  font-size: 12px;
}

.t-lat.ok  { color: var(--green); }
.t-lat.bad { color: var(--red); }
.t-lat.wait { color: var(--amber); }

.t-footer {
  padding: .75rem 1.25rem;
  border-top: .5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.t-stat { text-align: center; }
.t-stat-n { font-family: var(--font-d); font-size: 18px; font-weight: 700; color: var(--text); }
.t-stat-l { font-family: var(--font-m); font-size: 10px; color: var(--muted); margin-top: 1px; }

/* ── SCROLL ARROW ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  animation: fadeUp .6s .8s ease both;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 1.5s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-d);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: .75rem;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
}

/* ── DIVIDER ── */
.divider {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  height: .5px;
  background: var(--border);
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(34,197,94,.04), transparent 60%);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--green-d);
  border: .5px solid var(--green-b);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-name {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 3rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border2), transparent);
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: .5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-m);
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.step-title {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}

.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── ALERTS PREVIEW ── */
.alerts-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}

/* Telegram */
.tg-card {
  background: #17212B;
  border-radius: 14px;
  padding: 1.25rem;
}

.tg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.tg-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: .5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.tg-name { font-size: 13px; font-weight: 600; color: #F1F1F3; }
.tg-bot  { font-size: 11px; color: #6B6B80; }

.tg-msg {
  background: #1C2733;
  border-radius: 8px;
  padding: .85rem;
  font-family: var(--font-m);
  font-size: 12px;
  line-height: 1.9;
  color: #E8E8E8;
}

.tg-time { font-size: 10px; color: #4A5568; text-align: right; margin-top: .35rem; }

/* Push */
.push-card {
  background: #1C1C1E;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  gap: 10px;
}

.push-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: .5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.push-title { font-size: 12px; font-weight: 600; color: #F1F1F3; margin-bottom: 2px; }
.push-body  { font-size: 11px; color: #A0A0A0; line-height: 1.5; }
.push-app   { font-size: 10px; font-weight: 700; color: #6B6B80; margin-bottom: 2px; }

/* ── PRICING ── */
.pricing-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
  align-items: center;
}

.toggle-group {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.bill-btn,
.cur-btn {
  font-family: var(--font-m);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bill-btn.active,
.cur-btn.active {
  background: var(--text);
  color: var(--base);
}

.bill-save {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--green-d);
  color: var(--green);
  border: .5px solid var(--green-b);
  letter-spacing: .04em;
}

.bill-btn.active .bill-save {
  background: rgba(34,197,94,.15);
  color: var(--green);
  border-color: transparent;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 2.5rem;
  max-width: 1080px;
  align-items: stretch;
}

.plan {
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan.pro {
  border-color: var(--green-b);
  background: linear-gradient(135deg, var(--surface), rgba(13,43,26,.4));
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(34,197,94,.08);
}

.plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #0C0C10;
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 0 0 8px 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-billed {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 1.25rem;
  letter-spacing: .04em;
}

.plan.enterprise {
  border-color: var(--border2);
}

.plan.enterprise .plan-price {
  font-size: 28px;
  letter-spacing: -.02em;
}

.plan-name {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

.plan-price {
  font-family: var(--font-d);
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.04em;
  margin-bottom: .25rem;
}

.plan-price span { font-size: 16px; color: var(--muted); font-weight: 400; }

.plan-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.plan-features li .check { color: var(--green); font-size: 14px; }
.plan-features li .cross { color: var(--muted); font-size: 14px; }
.plan-features li.off { color: var(--muted); }

.plan-btn {
  width: 100%;
  padding: .7rem;
  border-radius: 8px;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
}

.plan-btn:active { transform: scale(.98); }

.plan-btn.free {
  background: var(--surface2);
  color: var(--text);
  border: .5px solid var(--border2);
}

.plan-btn.pro-btn {
  background: var(--green);
  color: #0C0C10;
}

.plan-btn.ent-btn {
  background: var(--text);
  color: var(--base);
}

.plan-features {
  flex: 1;
}

.plan-btn:hover { opacity: .85; }

/* ── PLANS COMPARE TABLE ── */
.plans-compare-wrap {
  margin-top: 2.5rem;
  text-align: center;
}

.plans-compare-toggle {
  font-family: var(--font-m);
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 8px;
  border: .5px solid var(--border2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  letter-spacing: .04em;
}

.plans-compare-toggle:hover {
  border-color: var(--green-b);
  color: var(--green);
}

.plans-compare {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: .5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}

.plans-compare[hidden] { display: none; }

.plans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

.plans-table thead th {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 1rem 1.1rem;
  border-bottom: .5px solid var(--border);
  background: var(--surface2);
  text-align: left;
}

.plans-table thead th.us {
  color: var(--green);
}

.plans-table tbody td {
  padding: .85rem 1.1rem;
  border-bottom: .5px solid var(--border);
  color: var(--text);
}

.plans-table tbody tr:last-child td {
  border-bottom: none;
}

.plans-table tbody td:first-child {
  font-family: var(--font-d);
  font-weight: 500;
  color: var(--text);
}

.plans-table tbody td.us {
  background: rgba(34,197,94,.04);
  color: var(--text);
  font-weight: 500;
}

/* ── CTA SECTION ── */
.cta-section {
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(34,197,94,.06), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-d);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: .75rem;
  line-height: 1;
}

.cta-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.cta-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: .5px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-logo-text {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.footer-logo-text span { color: var(--green); }

.footer-copy {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: var(--text); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── SUCCESS STATE ── */
.success-msg {
  display: none;
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--green);
  margin-top: .75rem;
  animation: fadeUp .3s ease;
}

.success-msg.show { display: block; }

/* ── CONTACT SECTION ── */
.contact-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  position: relative;
  z-index: 1;
}

.contact-form {
  display: grid;
  gap: .75rem;
  margin-top: 2rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.contact-input,
.contact-textarea {
  width: 100%;
  background: var(--surface);
  border: .5px solid var(--border2);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-family: var(--font-d);
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s, background .15s;
  box-sizing: border-box;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--surface2, var(--surface));
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--muted);
}

.contact-textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-d);
}

.contact-submit {
  margin-top: .25rem;
  justify-self: start;
}

.contact-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.contact-status {
  font-family: var(--font-m);
  font-size: 13px;
  margin-top: .5rem;
  min-height: 1.2em;
}

.contact-status.success { color: var(--green); }
.contact-status.error   { color: #EF4444; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: .75rem 1rem; }
  .nav-links { display: none; }
  .hero { padding: 5rem 1.25rem 4rem; }
  .hero-title { margin-bottom: 1rem; }
  .hero-sub { margin-bottom: 1.5rem; font-size: 16px; }
  .hero-form { flex-direction: column; }
  .hero-btn { width: 100%; }
  section { padding: 3.5rem 1.25rem; }
  .alerts-demo { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan.pro { transform: none; }
  .pricing-toggles { flex-direction: column; align-items: flex-start; }
  .steps::before { display: none; }
  .steps { gap: 0; }
  footer { flex-direction: column; text-align: center; padding: 1.25rem; }
  .contact-section { padding: 3.5rem 1.25rem 4rem; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-submit { justify-self: stretch; width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 38px; }
}

/* ── STATUS BAR ── */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green-d);
  border: .5px solid var(--green-b);
  border-radius: 8px;
  padding: .5rem 1rem;
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--green);
  margin-top: 1.5rem;
  animation: fadeUp .6s .5s ease both;
  width: fit-content;
  align-self: center;
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease infinite;
}

@media (max-width: 768px) {
  .screenshot-grid { grid-template-columns: 1fr !important; }
}

/* ── INTEGRATIONS ── */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 2.5rem;
}

.integration-card {
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.1rem;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.integration-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.integration-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: .9rem;
}

.integration-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: .5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.integration-name {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.integration-meta {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.integration-badge {
  margin-left: auto;
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.integration-badge.live {
  background: var(--green-d);
  border: .5px solid var(--green-b);
  color: var(--green);
}

.integration-badge.soon {
  background: var(--surface2);
  border: .5px solid var(--border2);
  color: var(--muted);
}

.integration-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.integration-vote {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.integration-vote a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .15s;
}

.integration-vote a:hover { opacity: .8; }

/* ── COMPARISON TABLE ── */
.cmp-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  border: .5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}

.cmp-table thead th {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: .5px solid var(--border);
  background: var(--surface2);
}

.cmp-table thead th.us {
  color: var(--green);
}

.cmp-table tbody td {
  padding: .9rem 1.1rem;
  border-bottom: .5px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.cmp-table tbody tr:last-child td {
  border-bottom: none;
}

.cmp-table tbody td:first-child {
  font-family: var(--font-d);
  font-weight: 500;
  color: var(--text);
}

.cmp-table tbody td.us {
  background: rgba(34,197,94,.04);
  color: var(--text);
  font-weight: 500;
}

.cmp-table tbody td.us strong {
  color: var(--green);
  font-weight: 700;
}

.cmp-yes {
  color: var(--green);
  font-weight: 700;
  display: inline-block;
  margin-right: 4px;
}

.cmp-no {
  color: var(--muted);
  font-weight: 700;
  display: inline-block;
  margin-right: 4px;
}

.cmp-note {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
}

/* ── LIVE DEMO ── */
.demo-card {
  margin-top: 2.5rem;
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.demo-frame {
  border-bottom: .5px solid var(--border);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: .5px solid var(--border);
}

.demo-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.demo-url {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--muted);
  margin-left: 12px;
  letter-spacing: .02em;
}

.demo-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-row {
  display: grid;
  grid-template-columns: 14px 1.4fr 2fr auto;
  gap: 14px;
  align-items: center;
  padding: .85rem 0;
  border-bottom: .5px solid var(--border);
}

.demo-row:last-child {
  border-bottom: none;
}

.demo-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.demo-status.up {
  background: var(--green);
  box-shadow: 0 0 8px rgba(34,197,94,.5);
}

.demo-status.down {
  background: var(--red);
  box-shadow: 0 0 8px rgba(239,68,68,.5);
  animation: pulse 1.5s ease infinite;
}

.demo-svc {
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.demo-meta {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--muted);
}

.demo-up {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  text-align: right;
}

.demo-up.down-pct { color: var(--red); }

.demo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface2);
  flex-wrap: wrap;
}

.demo-secondary {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.demo-secondary:hover { color: var(--text); }

/* ── FAQ ── */
.faq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s;
}

.faq-item[open] {
  border-color: var(--border2);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color .15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-m);
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  transition: transform .2s, color .15s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--green);
}

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

.faq-a {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 720px;
}

/* ── CHANGELOG ── */
.changelog-list {
  margin-top: 2.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: .5px solid var(--border);
}

.changelog-item {
  position: relative;
  padding: 0 0 2rem 1rem;
}

.changelog-item:last-child { padding-bottom: 0; }

.changelog-item::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  border: .5px solid var(--green-b);
  box-shadow: 0 0 0 4px var(--base);
}

.changelog-date {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .4rem;
}

.changelog-body strong {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin: .25rem 0 .4rem;
}

.changelog-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
}

.changelog-tag {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
}

.changelog-tag.added {
  background: var(--green-d);
  border: .5px solid var(--green-b);
  color: var(--green);
}

.changelog-tag.improved {
  background: rgba(245,158,11,.1);
  border: .5px solid rgba(245,158,11,.3);
  color: var(--amber);
}

.changelog-tag.launch {
  background: var(--text);
  color: var(--base);
  border: .5px solid var(--text);
}

.changelog-foot {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.changelog-foot a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .15s;
}

.changelog-foot a:hover { opacity: .8; }

.changelog-sep { color: var(--faint); }

/* ── LIVE STATUS + STATS ── */
.live-card {
  margin-top: 2.5rem;
  background: var(--surface);
  border: .5px solid var(--green-b);
  border-radius: 16px;
  padding: 1.5rem 1.75rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.live-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34,197,94,.08), transparent 60%);
  pointer-events: none;
}

.live-card.degraded { border-color: rgba(245,158,11,.4); }
.live-card.degraded::before { background: radial-gradient(circle at top right, rgba(245,158,11,.08), transparent 60%); }
.live-card.down { border-color: rgba(239,68,68,.4); }
.live-card.down::before { background: radial-gradient(circle at top right, rgba(239,68,68,.08), transparent 60%); }

.live-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  position: relative;
}

.live-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

.live-card.degraded .live-pulse {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245,158,11,.18);
}

.live-card.down .live-pulse {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(239,68,68,.18);
}

.live-label {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.live-time {
  margin-left: auto;
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
}

.live-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 1.25rem;
}

.live-svc {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: .7rem .9rem;
  background: var(--surface2);
  border: .5px solid var(--border);
  border-radius: 10px;
  min-width: 0;
}

.live-svc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  grid-row: 1 / 3;
  align-self: center;
}

.live-svc-dot.up   { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,.5); }
.live-svc-dot.warn { background: var(--amber); box-shadow: 0 0 6px rgba(245,158,11,.5); }
.live-svc-dot.down { background: var(--red); box-shadow: 0 0 6px rgba(239,68,68,.5); }

.live-svc-name {
  grid-column: 2;
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.live-svc-meta {
  grid-column: 2;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.live-link {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .15s;
  position: relative;
}

.live-link:hover { opacity: .8; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 1.5rem;
}

.stat-tile {
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.stat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(34,197,94,.04), transparent 70%);
  pointer-events: none;
}

.stat-tile:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.stat-num {
  font-family: var(--font-d);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}

.stat-pct {
  font-size: 24px;
  font-weight: 700;
  color: var(--green);
  margin-left: 2px;
}

.stat-label {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.stats-note {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
}

/* ── RESOURCES ── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  margin-top: 2.5rem;
}

.resource-card {
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.resource-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.resource-card[open] {
  border-color: var(--green-b);
  transform: none;
}

.resource-card summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
}

.resource-card summary::-webkit-details-marker { display: none; }

.resource-card summary::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  right: 1.4rem;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B80' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform .2s, opacity .15s;
}

.resource-card[open] summary::after {
  transform: rotate(45deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.resource-card summary > * {
  pointer-events: none;
}

.resource-tag {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--green-d);
  border: .5px solid var(--green-b);
  color: var(--green);
  width: fit-content;
}

.resource-meta {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
  position: absolute;
  top: 1.5rem;
  right: 3.2rem;
}

.resource-card summary strong {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: .15rem 2.5rem .15rem 0;
  display: block;
}

.resource-lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  display: block;
}

.resource-body {
  padding: 0 1.4rem 1.5rem;
  border-top: .5px solid var(--border);
  margin-top: .5rem;
  padding-top: 1.2rem;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.resource-body p {
  margin-bottom: .8rem;
}

.resource-body p:last-child { margin-bottom: 0; }

.resource-body strong {
  color: var(--text);
  font-weight: 600;
}

.resource-body em {
  color: var(--text);
  font-style: normal;
  background: var(--surface2);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-m);
  font-size: 12px;
}

.resource-body code {
  font-family: var(--font-m);
  font-size: 12px;
  background: var(--surface2);
  border: .5px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--green);
}

.resource-body ol,
.resource-body ul {
  padding-left: 1.4rem;
  margin-bottom: .8rem;
}

.resource-body li {
  margin-bottom: .5rem;
  line-height: 1.65;
}

.resources-foot {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.resources-foot a {
  text-decoration: none;
  font-weight: 500;
  transition: opacity .15s;
}

.resources-foot a:hover { opacity: .8; }

/* ── RESPONSIVE: NEW SECTIONS ── */
@media (max-width: 768px) {
  .cmp-table { font-size: 12px; }
  .cmp-table thead th,
  .cmp-table tbody td { padding: .7rem .8rem; }
  .demo-row {
    grid-template-columns: 12px 1fr auto;
    gap: 10px;
  }
  .demo-meta { display: none; }
  .demo-cta { flex-direction: column; gap: .75rem; padding: 1.25rem; }
  .faq-item summary { font-size: 14px; padding: 1rem 1.1rem; }
  .changelog-list { padding-left: 1.2rem; }
  .changelog-item::before { left: -1.4rem; }
  .resource-meta { position: static; margin-bottom: .25rem; }
  .resource-card summary::after { top: 1.4rem; right: 1.2rem; }
  .resource-card summary strong { margin-right: 2rem; font-size: 15px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 30px; }
  .live-time { margin-left: 0; }
  .live-header { flex-wrap: wrap; }
}
