:root {
  --ink: #0B1F1B;
  --ink-2: #14332A;
  --ink-3: #2E4A3E;
  --emerald: #0E9E7A;
  --emerald-dk: #0B6B47;
  --mint: #6FD3B6;
  --mint-pale: #EDF8F3;
  --line: #DFEDE6;
  --surface: #FFFFFF;
  --page: #F6FBF9;
  --muted: #52635E;
  --muted-2: #7C8F88;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --t-sm: 14px; --t-base: 16px; --t-lg: 20px; --t-xl: 25px; --t-2xl: 31px; --t-3xl: 39px; --t-4xl: 49px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 31, 27, 0.06), 0 8px 24px rgba(11, 31, 27, 0.08);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E8F5F0;
    --ink-2: #CDE7DE;
    --ink-3: #B5D3CA;
    --surface: #0F2A24;
    --page: #0B1F1B;
    --line: #1F3F36;
    --mint-pale: #14332A;
    --muted: #A9C2BA;
    --muted-2: #7FA096;
  }
}

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

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--ink); }
h1 { font-size: var(--t-3xl); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--t-2xl); font-weight: 700; }
h3 { font-size: var(--t-lg); font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s2); }

.skip {
  position: absolute; left: var(--s2); top: -48px;
  padding: var(--s1) var(--s2); background: var(--ink); color: #fff; border-radius: 8px; z-index: 10;
  transition: top 180ms var(--ease);
}
.skip:focus-visible { top: var(--s1); outline: 2px solid var(--emerald); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.bar { display: flex; align-items: center; gap: var(--s2); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s1); text-decoration: none; color: var(--ink-2); font-weight: 700; border-radius: 8px; white-space: nowrap; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: #0B1F1B; color: var(--mint); font-size: var(--t-sm); font-weight: 700;
}
.nav { display: none; gap: var(--s3); margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: var(--t-sm); font-weight: 600; padding: var(--s1) 0; transition: color 180ms var(--ease); }
.nav a:hover { color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.nav + .bar-actions { margin-left: 0; }
.brand:focus-visible, .nav a:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }

/* Buttons: default, hover, active, focus-visible, disabled */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 48px; padding: 12px var(--s3);
  font: inherit; font-size: var(--t-base); font-weight: 700; text-decoration: none;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 150ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid rgba(14, 158, 122, 0.35); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { min-height: 44px; padding: 8px var(--s2); font-size: var(--t-sm); }
.btn-block { width: 100%; }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 1px 2px rgba(11, 107, 71, 0.2), 0 6px 16px rgba(14, 158, 122, 0.22); }
.btn-primary:hover { background: var(--emerald-dk); }
.btn-outline { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-outline:hover { border-color: var(--mint); background: var(--mint-pale); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 8px var(--s2); min-height: 44px; }
.btn-ghost:hover { background: var(--mint-pale); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mint-pale); }

/* Hero */
.hero { padding: var(--s6) 0 var(--s7); }
.hero-grid { display: grid; gap: var(--s5); align-items: center; }
.eyebrow { font-size: var(--t-sm); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--emerald-dk); margin-bottom: var(--s2); }
.lead { margin-top: var(--s2); font-size: var(--t-lg); line-height: 1.5; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.trust { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: var(--s3) 0 0; }
.trust li { font-size: var(--t-sm); color: var(--ink-3); font-weight: 600; padding: var(--s1) var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }

.server-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: var(--s3); max-width: 420px; margin: 0 auto; width: 100%;
}
.server-top { display: flex; gap: 6px; margin-bottom: var(--s2); }
.server-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.server-row { display: flex; align-items: center; gap: var(--s1); padding: var(--s1) 0; color: var(--ink-3); font-size: var(--t-sm); border-bottom: 1px solid var(--line); }
.server-row:last-of-type { border-bottom: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.dot-ok { background: var(--emerald); }
.meter { height: 8px; margin-top: var(--s3); background: var(--mint-pale); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--emerald); border-radius: 999px; }
.meter-label { margin-top: var(--s1); font-size: var(--t-sm); color: var(--muted); }

/* Sections */
.section { padding: var(--s7) 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--s5); }
.section-sub { margin-top: var(--s2); color: var(--muted); }

.feature-grid { display: grid; gap: var(--s3); }
.feature {
  padding: var(--s4) var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}
.feature:hover { transform: translateY(-2px); border-color: var(--mint); }
.feature p { margin-top: var(--s1); color: var(--muted); }

.plan-grid { display: grid; gap: var(--s3); }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s4) var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
}
.plan-desc { color: var(--muted); font-size: var(--t-sm); }
.price { font-size: var(--t-4xl); font-weight: 800; color: var(--ink); line-height: 1; margin: var(--s1) 0; }
.currency { font-size: var(--t-xl); vertical-align: top; margin-right: 2px; }
.per { font-size: var(--t-base); font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 var(--s2); display: grid; gap: var(--s1); flex: 1; }
.plan-list li { position: relative; padding-left: 24px; color: var(--ink-3); font-size: var(--t-sm); }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 6px;
  border-left: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald); transform: rotate(-45deg);
}
.plan-featured { border-color: var(--emerald); box-shadow: 0 1px 2px rgba(11, 107, 71, 0.1), 0 12px 32px rgba(14, 158, 122, 0.18); }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px var(--s2); font-size: var(--t-sm); font-weight: 700; color: #fff; background: var(--emerald); border-radius: 999px; white-space: nowrap;
}

/* FAQ */
.faq-wrap { max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--s2); }
.faq summary {
  cursor: pointer; list-style: none; min-height: 48px; padding: var(--s2) var(--s3);
  font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  transition: background 180ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--t-xl); color: var(--emerald-dk); transition: transform 180ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--mint-pale); border-radius: var(--radius); }
.faq summary:focus-visible { outline: 2px solid var(--emerald); outline-offset: -2px; border-radius: var(--radius); }
.faq details p { padding: 0 var(--s3) var(--s2); color: var(--muted); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: var(--s6) 0; text-align: center; }
.cta-inner { display: grid; gap: var(--s2); justify-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--mint); max-width: 52ch; }

/* Footer */
.site-footer { padding: var(--s4) 0; border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1); }
.foot-brand { font-weight: 700; color: var(--ink-2); }
.foot-note { color: var(--muted-2); font-size: var(--t-sm); }

/* Breakpoints (mobile first) */
@media (max-width: 419px) {
  .bar-actions .btn-ghost { display: none; }
}

@media (min-width: 720px) {
  .nav { display: flex; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan-featured { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
