/* Permafrost IT — styles.css
   Mobile-first. Ice theme. No dependencies. */

:root {
  --bg: #060b16;
  --bg-2: #0a1324;
  --surface: #0f1b30;
  --surface-2: #14233c;
  --line: rgba(140, 200, 255, 0.16);
  --text: #e7f1fb;
  --muted: #9db4cc;
  --ice: #7fd4ff;
  --cyan: #22e0ff;
  --frost: #cfeeff;
  --accent-grad: linear-gradient(135deg, #7fd4ff 0%, #22e0ff 55%, #5aa8ff 100%);
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(127, 212, 255, 0.35), 0 8px 32px rgba(34, 224, 255, 0.18);
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -5%, rgba(34, 224, 255, 0.07), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(90, 168, 255, 0.06), transparent 60%);
  background-attachment: fixed;
  padding-top: var(--header-h);
}
img, svg, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--ice); text-underline-offset: 3px; }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; color: #fff; }
h1 { font-size: clamp(2.25rem, 7vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--cyan); color: #00131c; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 0.75rem; }

/* Placeholders the owner must fill in */
.ph {
  background: rgba(255, 214, 10, 0.18);
  color: #ffe58a;
  border: 1px dashed rgba(255, 214, 10, 0.6);
  border-radius: 5px;
  padding: 0 0.3em;
  font-style: normal;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 11, 22, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  transition: height 0.3s ease;
}
.site-header.scrolled {
  background: rgba(6, 11, 22, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}
.site-header.scrolled .bar { height: 56px; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
}
.brand img { width: 40px; height: 40px; transition: transform 0.3s; }
.site-header.scrolled .brand img { transform: scale(0.85); }
.brand b { color: var(--cyan); font-weight: 800; margin-left: 0.2em; }
.brand:hover { color: #fff; }
.brand:hover img { transform: scale(1.06); }
.logo-card { max-width: 520px; }
.logo-card img { width: 100%; height: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--frost); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(6, 11, 22, 0.97);
  border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; gap: 0.25rem; padding: 1rem;
}
.nav.open { display: flex; }
/* Navigation stays usable until its JavaScript handler is ready. */
.nav-toggle { display: none; }
@media (max-width: 859px) {
  html:not(.nav-ready) body { padding-top: 0; }
  html:not(.nav-ready) .hero { margin-top: 0; padding-top: 4.5rem; }
  html:not(.nav-ready) .site-header { position: static; }
  html:not(.nav-ready) .site-header .bar { height: auto; flex-wrap: wrap; padding-block: 1rem; }
  html:not(.nav-ready) .nav { position: static; display: flex; width: 100%; }
  .nav-ready .nav-toggle { display: inline-flex; }
  .nav { max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow-y: auto; }
}
.nav a:not(.btn) {
  color: var(--text); text-decoration: none; padding: 0.8rem 0.9rem; border-radius: 10px; font-weight: 600;
}
.nav a:not(.btn):hover { background: var(--surface); color: var(--cyan); }
.nav a[aria-current="page"] { color: var(--cyan); background: rgba(34, 224, 255, 0.08); }
.nav .btn { margin-top: 0.5rem; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; display: flex; flex-direction: row; align-items: center;
    background: none; border: 0; padding: 0; gap: 0.15rem;
  }
  .nav a:not(.btn) { padding: 0.5rem 0.85rem; font-size: 0.97rem; position: relative; }
  .nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem; height: 2px;
    background: var(--accent-grad); transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
  }
  .nav a:not(.btn):hover { background: none; }
  .nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { background: none; }
  .nav .btn { margin: 0 0 0 0.75rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer;
  text-decoration: none; position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--accent-grad); color: #00131c; box-shadow: 0 6px 24px rgba(34, 224, 255, 0.25); }
.btn-primary:hover { color: #00131c; transform: translateY(-2px); box-shadow: 0 10px 34px rgba(34, 224, 255, 0.45); }
.btn-ghost { background: rgba(127, 212, 255, 0.06); color: var(--frost); border-color: var(--line); }
.btn-ghost:hover { color: #fff; border-color: var(--ice); background: rgba(127, 212, 255, 0.14); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.93rem; }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 4.5rem 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 0.9rem;
}
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }
.grad-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* ---------- Hero ---------- */
.hero { margin-top: calc(var(--header-h) * -1); padding: calc(4.5rem + var(--header-h)) 0 4rem; overflow: hidden; isolation: isolate; }
.hero canvas#frost {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9;
}
.hero-glow {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; will-change: transform;
}
.hero-glow.g1 { width: 420px; height: 420px; right: -120px; top: -80px; background: rgba(34, 224, 255, 0.2); }
.hero-glow.g2 { width: 360px; height: 360px; left: -120px; bottom: -120px; background: rgba(90, 168, 255, 0.18); }
.hero-inner { max-width: 820px; will-change: transform; }
.hero p.lead { margin: 1.2rem 0 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.2rem; padding: 0; list-style: none; }
.hero-badges li {
  font-size: 0.9rem; padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(15, 27, 48, 0.6); color: var(--frost);
}
.page-hero { padding: 4rem 0 2.5rem; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); }

@media (min-width: 860px) {
  .hero { padding: calc(7.5rem + var(--header-h)) 0 6.5rem; }
  .section { padding: 6rem 0; }
}

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid > *, .split > *, .field-row > *, .footer-grid > *, .contact-list li > div { min-width: 0; }
.contact-list a, .site-footer a { overflow-wrap: anywhere; }
input, select, textarea { min-width: 0; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: linear-gradient(180deg, var(--surface), rgba(15, 27, 48, 0.6));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(127, 212, 255, 0.5); box-shadow: var(--glow); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: rgba(34, 224, 255, 0.1); border: 1px solid var(--line); color: var(--cyan);
}
.icon svg { width: 26px; height: 26px; }
.service-card { display: flex; flex-direction: column; padding: 2rem; }
.service-card ul { color: var(--muted); margin: 0.5rem 0 1.5rem; }
.service-card li { margin-bottom: 0.3rem; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 1rem; height: 0.55rem;
  border-left: 2.5px solid var(--cyan); border-bottom: 2.5px solid var(--cyan); transform: rotate(-45deg) translateY(-30%);
}
.checklist strong { color: var(--text); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.stat { text-align: center; padding: 1.2rem 0.5rem; border-top: 1px solid var(--line); }
.stat .num { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; line-height: 1; }
.stat .label { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; position: relative; padding: 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: transform 0.3s, border-color 0.3s;
}
.steps li:hover { transform: translateY(-5px); border-color: rgba(127, 212, 255, 0.5); }
.steps li::before {
  content: "0" counter(step); display: block; font-family: var(--mono); font-size: 2.2rem; font-weight: 700;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.4rem;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 0; padding: 4rem 0; text-align: center; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #0a2a44, #072033 50%, #0a1b33);
  border-block: 1px solid var(--line);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: radial-gradient(500px 250px at 50% 0, rgba(34, 224, 255, 0.35), transparent 70%);
}
.cta-band p { color: var(--frost); max-width: 560px; margin: 0 auto 1.8rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .tag {
  position: absolute; top: -0.8rem; left: 1.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--accent-grad); color: #00131c; padding: 0.25rem 0.8rem; border-radius: 999px;
}
.price-card.featured { border-color: rgba(34, 224, 255, 0.6); box-shadow: var(--glow); }
.price { font-size: 2rem; font-weight: 800; color: #fff; margin: 0.4rem 0 0.2rem; line-height: 1.2; }
.zero-down {
  display: inline-block; vertical-align: middle; margin-left: 0.4rem; padding: 0.15rem 0.7rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap;
  background: var(--accent-grad); color: #00131c; box-shadow: 0 0 18px rgba(34, 224, 255, 0.45);
  animation: zd-pulse 2.4s ease-in-out infinite;
}
@keyframes zd-pulse { 0%, 100% { box-shadow: 0 0 10px rgba(34, 224, 255, 0.3); } 50% { box-shadow: 0 0 24px rgba(34, 224, 255, 0.7); } }
.price .from { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; line-height: 1.3; }
.price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.price-card .checklist { margin: 1rem 0 1.5rem; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 0.8rem;
  transition: border-color 0.25s;
}
.faq details[open] { border-color: rgba(127, 212, 255, 0.5); }
.faq summary {
  cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 700; list-style: none; position: relative; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--cyan); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Tags / pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; list-style: none; margin: 0; }
.pills li {
  padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--frost); font-size: 0.97rem; transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.pills li:hover { border-color: var(--ice); transform: translateY(-3px); background: var(--surface-2); }
.notice {
  border-left: 4px solid var(--cyan); background: rgba(34, 224, 255, 0.07);
  padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 0 0 2rem; color: var(--frost);
}
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: 0.95rem; }
label .req { color: var(--cyan); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #0a1426; border: 1px solid var(--muted);
  border-radius: 10px; padding: 0.8rem 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 150px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 224, 255, 0.25); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ice) 50%), linear-gradient(135deg, var(--ice) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.5em; font-weight: 600; margin: 0; }
.form-status.ok { color: #6ff0b4; }
.form-status.err { color: #ff9b9b; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list .icon { margin: 0; flex: none; width: 44px; height: 44px; }
.contact-list strong { display: block; color: #fff; }
.contact-list a { color: var(--frost); text-decoration: none; }
.contact-list a:hover { color: var(--cyan); text-decoration: underline; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf .big { font-size: clamp(5rem, 22vw, 10rem); font-weight: 900; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #040810; border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; color: var(--muted); font-size: 0.97rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--frost); margin-bottom: 0.9rem; font-family: var(--mono); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.88rem;
}
.vet { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--frost); }

/* ---------- Scroll reveal ---------- */
.reveal.in { animation: reveal-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.reveal.from-left.in { animation-name: reveal-left; }
.reveal.from-right.in { animation-name: reveal-right; }
@keyframes reveal-left { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal.in { animation: none; }
  .brand:hover img, .site-header.scrolled .brand img { transform: none; }
  .card:hover, .btn:hover, .steps li:hover, .pills li:hover { transform: none; }
}
