/* mewl Cloud — витрина. Чистый CSS, без фреймворков. */
:root {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #17171c;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #ededef;
  --muted: #8b8d98;
  --faint: #5d5f6b;
  --accent: #8b7cff;
  --accent-2: #5ee1c4;
  --green: #3ecf8e;
  --yellow: #f5b83d;
  --red: #ff6b6b;
  --radius: 14px;
  --font: "Inter", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); }
.mono { font-family: var(--mono); }
.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
::selection { background: rgba(139, 124, 255, .35); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, .72);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: -.01em; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.logo-text { font-weight: 600; }
.logo-text b { font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  font: 500 15px/1 var(--font); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
}
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-primary { background: var(--text); color: #0a0a0b; }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.btn-secondary { background: rgba(255, 255, 255, .04); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn:focus-visible, .nav a:focus-visible, .linklike:focus-visible, .pill:focus-visible, .modal-close:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 25%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 25%, #000 25%, transparent 75%);
}
.hero-glow {
  position: absolute; left: -10%; right: -10%; top: -260px; height: 760px; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 45% at 50% 45%, rgba(139, 124, 255, .22), transparent 70%),
    radial-gradient(ellipse 25% 30% at 68% 35%, rgba(94, 225, 196, .10), transparent 70%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 6px 14px; margin-bottom: 28px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 13px;
  transition: color .15s, border-color .15s;
}
.pill:hover { color: var(--text); border-color: rgba(255, 255, 255, .24); }
.pill-sep { width: 1px; height: 12px; background: var(--border-strong); margin: 0 4px; }
h1 {
  margin: 0 0 22px; max-width: 940px;
  font-size: clamp(34px, 5.4vw, 62px); line-height: 1.05; letter-spacing: -.035em; font-weight: 650;
  background: linear-gradient(180deg, #fff 35%, #a4a6b3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.lead { margin: 0 0 36px; max-width: 680px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); text-wrap: pretty; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: var(--green); animation: pulse-g 2s infinite; }
.dot-yellow { background: var(--yellow); animation: pulse-y 2s infinite; }
@keyframes pulse-g { 0% { box-shadow: 0 0 0 0 rgba(62, 207, 142, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(62, 207, 142, 0); } }
@keyframes pulse-y { 0% { box-shadow: 0 0 0 0 rgba(245, 184, 61, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(245, 184, 61, 0); } }

/* ---------- Terminal ---------- */
.terminal {
  width: 100%; max-width: 780px; margin-top: 64px; text-align: left; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 23, 28, .92), rgba(13, 13, 16, .96));
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.terminal-bar { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a31; }
.terminal-title { position: absolute; left: 50%; transform: translateX(-50%); font: 12px var(--mono); color: var(--faint); }
.terminal pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: 13px/1.75 var(--mono); color: #c9cbd4; }
.t-p { color: var(--accent-2); } .t-m { color: var(--faint); } .t-g { color: var(--green); }
.t-y { color: var(--yellow); } .t-r { color: var(--red); }

/* ---------- Stats ---------- */
.stats-wrap { border-bottom: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--border); }
.stat { padding: 28px 24px; border-right: 1px solid var(--border); }
.stat b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 13px; }
.stat em { display: block; font-style: normal; color: var(--faint); font-size: 12px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; border-bottom: 1px solid var(--border); }
.section-head { max-width: 700px; margin-bottom: 48px; }
.eyebrow { display: block; margin-bottom: 14px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.eyebrow-muted { color: var(--faint); }
h2 { margin: 0 0 16px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.03em; font-weight: 620; text-wrap: balance; }
h3 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.01em; font-weight: 600; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s;
}
.card:hover { border-color: var(--border-strong); }
.card-dashed { background: rgba(255, 255, 255, .012); border: 1px dashed rgba(245, 184, 61, .35); }
.card-dashed:hover { border-color: rgba(245, 184, 61, .6); }

.loc { display: flex; flex-direction: column; }
.loc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.loc-title { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.flag { font-size: 26px; line-height: 1; }
.code { font: 400 13px var(--mono); color: var(--faint); padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border: 1px solid; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.status-online { color: var(--green); border-color: rgba(62, 207, 142, .3); background: rgba(62, 207, 142, .08); }
.status-building { color: var(--yellow); border-color: rgba(245, 184, 61, .3); background: rgba(245, 184, 61, .08); }

.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spec-list li { display: flex; gap: 12px; color: var(--muted); font-size: 14.5px; }
.spec-list li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 10px; border-radius: 50%; background: var(--faint); }
.spec-list code { font-size: 13px; color: var(--text); background: rgba(255, 255, 255, .05); padding: 1px 6px; border-radius: 5px; }

.callout {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px;
  background: rgba(245, 184, 61, .06); border: 1px solid rgba(245, 184, 61, .18); border-radius: 10px;
}
.callout-ico { font-size: 20px; line-height: 1.3; }
.callout p { margin: 0; font-size: 14px; color: #d8cdb4; }
.callout b { color: var(--text); }
.loc-foot {
  display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--border); font: 12px var(--mono); color: var(--faint);
}
.callout + .loc-foot { margin-top: 22px; }

.build { margin-top: auto; padding-top: 26px; }
.build-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.progress span {
  display: block; height: 100%; width: 37%; border-radius: 99px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, #c98d17 8px 16px);
  background-size: 22.63px 22.63px; animation: stripes 1s linear infinite;
}
@keyframes stripes { to { background-position: 22.63px 0; } }
.build-note { margin: 12px 0 0; font-size: 13px; color: var(--faint); }

/* ---------- Tech ---------- */
.tech-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.ipv6-card {
  padding: 40px; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(139, 124, 255, .12), transparent 60%), var(--surface);
}
.ipv6-big {
  margin-bottom: 20px; font-size: clamp(64px, 9vw, 112px); line-height: .9; font-weight: 700; letter-spacing: -.06em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ipv6-card p { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.addr-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }
.addr-list code { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; color: var(--accent-2); background: rgba(94, 225, 196, .06); border: 1px solid rgba(94, 225, 196, .16); }
.footnote { font-size: 12.5px !important; color: var(--faint) !important; margin: 18px 0 0 !important; }

.oversell-card { display: flex; flex-direction: column; }
.oversell-card blockquote {
  margin: 0 0 28px; padding: 0 0 0 16px; border-left: 2px solid var(--accent);
  font-size: 18px; line-height: 1.5; letter-spacing: -.01em; color: var(--text); text-wrap: pretty;
}
.meters { display: grid; gap: 16px; }
.meter-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.meter-row .mono { font-size: 12px; }
.meter-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.meter-bar span { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.meter-bar.over span { background: linear-gradient(90deg, var(--yellow), var(--red)); }
.oversell-card .footnote { margin-top: auto !important; padding-top: 22px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 20px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature { padding: 22px; background: var(--bg); }
.feature b { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; }
.feature span { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; }
.plan-featured {
  border-color: rgba(139, 124, 255, .5);
  background: linear-gradient(180deg, rgba(139, 124, 255, .10), rgba(139, 124, 255, 0) 45%), var(--surface);
  box-shadow: 0 0 0 1px rgba(139, 124, 255, .2), 0 24px 60px -24px rgba(139, 124, 255, .45);
}
.plan-featured:hover { border-color: rgba(139, 124, 255, .7); }
.badge { position: absolute; top: -11px; left: 30px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #0b0820; font-size: 12px; font-weight: 600; }
.plan-name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.plan-sub { margin-top: 2px; font: 12px var(--mono); color: var(--faint); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 26px 0; }
.price b { font-size: 48px; font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.price span { color: var(--muted); }
.plan .spec-list { flex: 1; margin-bottom: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.plan .btn { width: 100%; }
.plan-max { background: linear-gradient(180deg, rgba(94, 225, 196, .07), rgba(94, 225, 196, 0) 45%), var(--surface); border-color: rgba(94, 225, 196, .25); }
.plan-max:hover { border-color: rgba(94, 225, 196, .5); }
.pricing-note { margin: 28px 0 0; text-align: center; font-size: 13px; color: var(--faint); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 140px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.logo-footer { margin-bottom: 18px; color: var(--text); }
.footer-legal p { margin: 0 0 6px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-h { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 4px; }
.linklike {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px;
  transition: color .15s, text-decoration-color .15s;
}
.linklike:hover { color: var(--text); text-decoration-color: var(--muted); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 20px; z-index: 60;
  width: min(780px, 100% - 32px);
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px 14px 18px;
  background: rgba(23, 23, 28, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .7);
  opacity: 0; transform: translate(-50%, 16px);
  transition: opacity .3s ease, transform .3s ease;
}
.cookie.show { opacity: 1; transform: translate(-50%, 0); }
.cookie p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.cookie-ico { font-size: 22px; }

/* ---------- Modal ---------- */
.modal {
  width: min(760px, 100% - 32px); max-height: min(84vh, 820px); padding: 0;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .85);
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .2s ease; }
.modal::backdrop { background: rgba(4, 4, 6, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.modal-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 16px 26px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 20px; line-height: 1;
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 26px 30px; font-size: 14.5px; line-height: 1.7; color: #c6c8d1; }
.modal-body h4 { margin: 24px 0 6px; font-size: 15px; color: var(--text); }
.modal-body p { margin: 0 0 8px; }
.modal-body ul { margin: 0 0 8px; padding-left: 20px; }
.modal-body a { color: var(--accent); }
.modal-body code { font-size: 13px; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: var(--text); }
.doc-meta { font: 12px var(--mono) !important; color: var(--faint); margin: 8px 0 0 !important; }
.quote {
  margin: 10px 0 12px; padding: 12px 16px; border-left: 2px solid var(--accent); border-radius: 0 10px 10px 0;
  background: rgba(139, 124, 255, .07); color: var(--text);
}
.template-text { font-family: "Times New Roman", Times, Georgia, serif; font-size: 15.5px; color: #b9bcc6; }
.template-text h4 { font-family: "Times New Roman", Times, Georgia, serif; }
.glitch {
  margin: 6px 0 14px; padding: 14px 16px; border-radius: 10px;
  font: 13.5px/1.6 var(--mono); color: var(--red);
  background: rgba(255, 107, 107, .06); border: 1px dashed rgba(255, 107, 107, .4);
  animation: flicker 4s infinite;
}
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .4; } 94% { opacity: 1; } 96% { opacity: .6; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }
  .stats, .features { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
}
@media (max-width: 760px) {
  .container { width: min(1120px, 100% - 32px); }
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .grid-2, .footer-grid, .pricing { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 72px 0; }
  .ipv6-card { padding: 28px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie-ico { display: none; }
  .terminal pre { font-size: 12px; }
}
@media (max-width: 460px) {
  .stats, .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
