/* ============ Sysverge 4.0 — homepage mockup ============ */

:root {
  --bg: #04050d;
  --bg-raise: #0a0c1a;
  --text: #e9ebf3;
  --muted: #828a9d;
  --muted-2: #aab0c4;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #1d3bff;
  --accent-soft: #6d7fff;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { width: min(1160px, 88vw); margin: 0 auto; }
.wrap-narrow { width: min(760px, 88vw); margin: 0 auto; }

/* ---- shared bits ---- */
.label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.accent-label { color: var(--accent-soft); }

.mono-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
  transition: color 0.25s;
}
.mono-link:hover { color: #ffffff; }

h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-top: 14px;
}
h3 { font-size: 21px; font-weight: 600; line-height: 1.25; }

.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }

/* ---- buttons: solid, flat, no glow ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: #3550ff; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.55); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-row.center { justify-content: center; }

/* ---- cards ---- */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  transition: border-color 0.3s, background-color 0.3s;
}
.card:hover { border-color: rgba(109, 127, 255, 0.45); background: rgba(255, 255, 255, 0.045); }

/* ============ NAV ============ */
.nav-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: rgba(10, 12, 26, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 600;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--muted-2);
  transition: color 0.25s;
}
.nav-links a:hover { color: #ffffff; }
/* .btn is a flex container, so the space between the "Call" span and the number
   collapses away: hold it open with gap instead */
.nav-cta { padding: 10px 20px; font-size: 14px; gap: 6px; white-space: nowrap; }
.nav-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 90px;
  overflow: clip;
}

/* the one continuous element: a slow-drifting accent field. transform-only, no opacity fades */
.hero-drift {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 75vw;
  height: 75vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(29, 59, 255, 0.22) 0%, rgba(29, 59, 255, 0.07) 45%, transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(28vw, 14vh) scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-drift { animation: none; }
  html { scroll-behavior: auto; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(58px, 8.6vw, 128px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-top: 22px;
}
.hero-title .accent { color: var(--accent-soft); }

.hero-lede { font-size: 19px; line-height: 1.55; color: var(--text); }
.hero-points { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.hero-points li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  color: var(--muted-2);
}
.hero-points li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 10px;
  color: var(--accent-soft);
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 72px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ============ SERVICES ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.svc-card { display: flex; flex-direction: column; gap: 14px; }
.svc-card > p:first-of-type { color: var(--text); font-size: 16.5px; font-weight: 500; }
.svc-card ul { display: flex; flex-direction: column; gap: 9px; }
.svc-card ul li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--muted-2);
}
.svc-card ul li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--accent-soft);
  font-size: 12px;
}
.svc-note { font-size: 14px; color: var(--muted); }
.svc-card .mono-link { margin-top: auto; padding-top: 10px; }

.catchall {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.catchall p { color: var(--muted-2); margin-top: 6px; max-width: 560px; }

/* ============ PORTFOLIO ============ */
.folio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.folio-card { display: block; }
.frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-raise);
  transition: border-color 0.3s, transform 0.3s;
}
.folio-card:hover .frame {
  border-color: rgba(109, 127, 255, 0.5);
  transform: translateY(-4px);
}
.frame-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.frame-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.frame-body { padding: 18px; height: 190px; display: flex; flex-direction: column; gap: 12px; }

.sk { border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
.sk-hero { flex: 1.4; }
.sk-row { display: flex; gap: 12px; flex: 1; }
.sk-block { flex: 1; }
.sk-tall { flex: 1; }
.sk-bar { height: 26px; }
.fb-1 .sk-hero { background: linear-gradient(120deg, rgba(29, 59, 255, 0.30), rgba(255, 255, 255, 0.05)); }
.fb-2 .sk-tall:first-child { background: linear-gradient(160deg, rgba(29, 59, 255, 0.24), rgba(255, 255, 255, 0.05)); }
.fb-3 .sk-hero { background: linear-gradient(200deg, rgba(109, 127, 255, 0.25), rgba(255, 255, 255, 0.05)); }
.fb-4 .sk-tall { background: linear-gradient(140deg, rgba(29, 59, 255, 0.28), rgba(255, 255, 255, 0.05)); }

.frame-url {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folio-shot {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-raise);
}

.folio-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 4px 0;
  flex-wrap: wrap;
}
.folio-tag { font-size: 13.5px; color: var(--muted); }
.folio-desc { padding: 8px 4px 0; font-size: 14.5px; color: var(--muted-2); }
.folio-note { margin-top: 34px; color: var(--muted-2); font-size: 15px; }
.folio-note .mono-link { margin-left: 10px; }

/* ============ PROCESS ============ */
.phase-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: phase;
}
.phase h3 { margin: 12px 0 10px; }
.phase p { font-size: 14.5px; color: var(--muted-2); }

/* ============ WHY ============ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.why-story { margin-top: 20px; color: var(--muted-2); font-size: 16px; }
.why-payoff {
  margin-top: 26px;
  padding: 20px 22px;
  border-left: 2px solid var(--accent);
  background: rgba(29, 59, 255, 0.06);
  border-radius: 0 12px 12px 0;
}
.why-payoff p { margin-top: 10px; color: var(--text); font-size: 16px; }
.why-list { display: flex; flex-direction: column; gap: 0; }
.why-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--muted-2);
}
.why-list li:first-child { padding-top: 6px; }
.why-list strong { color: var(--text); display: block; margin-bottom: 4px; font-weight: 600; }

/* ============ FAQ ============ */
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 600;
  transition: color 0.25s;
}
.faq summary:hover { color: var(--accent-soft); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent-soft);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; color: var(--muted-2); font-size: 15.5px; max-width: 640px; }
/* keeps accordion rows readable inside a full-width .wrap (pricing page) */
.faq-list { max-width: 760px; }

/* ============ CONTACT ============ */
.contact { padding-bottom: 110px; }
.contact-lede { margin-top: 18px; color: var(--muted-2); font-size: 16.5px; }

.contact-form { margin-top: 44px; display: flex; flex-direction: column; gap: 18px; }
.chips { border: 0; }
.chips legend { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  color: var(--muted-2);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.chips label:hover span { border-color: rgba(255, 255, 255, 0.4); }
.chips input:checked + span {
  border-color: var(--accent);
  background: rgba(29, 59, 255, 0.16);
  color: #ffffff;
}
.chips input:focus-visible + span { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.25s, background-color 0.25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.06);
}
.contact-form ::placeholder { color: var(--muted); }
.form-alt { text-align: center; margin-top: 8px; color: var(--muted-2); font-size: 15px; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 54px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, auto));
  gap: 10px 28px;
  align-content: start;
}
.footer-links a { color: var(--muted-2); font-size: 14.5px; transition: color 0.25s; white-space: nowrap; }
.footer-links a:hover { color: #ffffff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ============ SUB-PAGE HERO ============ */
.page-hero { padding: 168px 0 26px; }
.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 16px;
}
.page-lede { margin-top: 20px; max-width: 640px; font-size: 17.5px; color: var(--muted-2); }
.nav-links a.here { color: #ffffff; }

/* ============ SERVICES PAGE ============ */
.svc-detail { padding: 64px 0; border-top: 1px solid var(--line); }
.svc-detail:first-of-type { border-top: 0; }
.sd-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.sd-left h2 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 40px); }
.sd-left p { margin-top: 16px; color: var(--muted-2); font-size: 16px; }
.sd-tag {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.sd-deliver { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-deliver li {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}
.sd-fit { margin-top: 30px; }
.sd-fit ul { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.sd-fit li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--muted-2);
}
.sd-fit li::before { content: "—"; position: absolute; left: 0; color: var(--accent-soft); }
.ship-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ship-grid .card h3 { font-size: 17px; }
.ship-grid .card p { margin-top: 8px; font-size: 14px; color: var(--muted-2); }

/* ============ PRICING PAGE ============ */
.plan-section { padding: 56px 0; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan-grid.pair { grid-template-columns: repeat(2, 1fr); }
.plan-group-label { margin: 34px 0 14px; }
.plan { display: flex; flex-direction: column; }
.plan .for {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 4px 0 18px;
}
.plan.featured { border-color: rgba(109, 127, 255, 0.65); background: rgba(29, 59, 255, 0.07); }
.price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.price .from { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.price .amt { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: #ffffff; }
.price .per { font-size: 14px; color: var(--muted); }
.plan ul { display: flex; flex-direction: column; gap: 10px; }
.plan li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--muted-2);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-soft);
}
.plan li strong { color: var(--text); font-weight: 600; }
.fine { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.fine strong { color: var(--muted-2); font-weight: 600; }
.addon-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.addon-chips span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted-2);
}
.addon-chips span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.closing { text-align: center; padding: 60px 0 30px; }
.closing h2 { margin: 14px auto 12px; }
.closing p { max-width: 560px; margin: 0 auto 24px; color: var(--muted-2); }
/* Balance the CTA. Sibling margins collapse, so the gap above is max(p margin-bottom, cta-row margin-top) = 24px.
   .contact-line's own margin-top is dead here: `.closing p` (0,1,1) outranks `.contact-line` (0,1,0),
   so it must be set at (0,2,0) to win and match the 24px above. */
.closing .cta-row { margin-top: 24px; }
.closing .contact-line { margin-top: 24px; }
.contact-line {
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.contact-line a { color: var(--muted-2); border-bottom: 1px solid rgba(255, 255, 255, 0.18); transition: color 0.3s; }
.contact-line a:hover { color: #ffffff; }

/* ============ PORTFOLIO PAGE ============ */
.folio-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ============ INSIGHTS ============ */
.post-list { display: flex; flex-direction: column; gap: 22px; }
.post-card { display: block; }
.post-card .post-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.post-card h3 { font-size: 24px; transition: color 0.25s; }
.post-card:hover h3 { color: var(--accent-soft); }
.post-card p { margin-top: 10px; color: var(--muted-2); font-size: 15.5px; max-width: 720px; }
.post-card .mono-link { display: inline-block; margin-top: 16px; }

.article { padding-bottom: 100px; }
.article-head { padding: 168px 0 40px; border-bottom: 1px solid var(--line); }
.article-head h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 16px;
  max-width: 820px;
}
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.article-body { max-width: 720px; margin: 0 auto; padding-top: 48px; }
.article-body h2 { font-size: 26px; margin: 40px 0 14px; }
.article-body p { margin: 0 0 18px; color: var(--muted-2); font-size: 16.5px; line-height: 1.75; }
.article-body strong { color: var(--text); }
.article-body ul { margin: 0 0 18px; padding-left: 4px; display: flex; flex-direction: column; gap: 9px; }
.article-body ul li {
  position: relative;
  padding-left: 22px;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.6;
}
.article-body ul li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--accent-soft);
  font-size: 12px;
}
.article-cta {
  margin-top: 48px;
  text-align: center;
}

/* ============ PORTFOLIO LAUNCH CHECKLIST ============ */
.launch-list { margin: 4px 0 26px; }

/* ============ ABOUT PAGE ============ */
.about-story p { margin-bottom: 18px; color: var(--muted-2); font-size: 16.5px; line-height: 1.75; }
.about-story p:last-child { margin-bottom: 0; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.about-facts p { margin-top: 8px; font-size: 15.5px; color: var(--text); }

@media (max-width: 960px) {
  .about-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .about-facts { grid-template-columns: 1fr; }
}

/* ============ PRIVACY / LEGAL ============ */
.legal { padding-top: 40px; }
.legal-block { padding: 34px 0; border-top: 1px solid var(--line); }
.legal-block:first-child { border-top: 0; }
.legal-block h2 { font-size: 22px; margin: 10px 0 14px; }
.legal-block p { margin-bottom: 14px; color: var(--muted-2); font-size: 15.5px; line-height: 1.7; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block strong { color: var(--text); }
.legal-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}
.legal-block ul { margin-bottom: 14px; display: flex; flex-direction: column; gap: 9px; }
.legal-block ul li {
  position: relative;
  padding-left: 22px;
  color: var(--muted-2);
  font-size: 15.5px;
  line-height: 1.6;
}
.legal-block ul li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--accent-soft);
  font-size: 12px;
}

/* ============ 404 ============ */
.nf-hero { min-height: 88svh; }
.nf-wrap { position: relative; z-index: 1; text-align: center; }
.nf-code {
  font-size: clamp(110px, 22vw, 240px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 10px 0 6px;
  color: var(--accent-soft);
}
.nf-lede { max-width: 480px; margin: 0 auto; color: var(--muted-2); font-size: 16.5px; }
.nf-wrap .cta-row { justify-content: center; }

/* ============ FORM (3.0 fields) ============ */
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  color-scheme: dark;
  transition: border-color 0.25s, background-color 0.25s;
}
.contact-form select:focus { outline: none; border-color: var(--accent-soft); background: rgba(255, 255, 255, 0.06); }
.contact-form select:invalid { color: var(--muted); }
.form-span { grid-column: 1 / -1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .ship-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid, .folio-grid, .folio-page-grid { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .sd-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
}

@media (max-width: 700px) {
  /* .plan-grid.pair is (0,2,0) and would out-specify the bare .plan-grid rule, so name it explicitly */
  .plan-grid, .plan-grid.pair { grid-template-columns: 1fr; }
  .ship-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 130px; }
  .article-head { padding-top: 130px; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 120px; }
  .hero-foot { flex-direction: column; gap: 8px; margin-top: 52px; }
  .form-row { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr; }

  /* mobile nav */
  .nav-pill { width: 100%; justify-content: space-between; gap: 12px; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(10, 12, 26, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .nav-links a { padding: 10px 8px; font-size: 16px; }
  .nav-wrap.open .nav-links { display: flex; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
    align-items: center;
  }
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: transform 0.25s;
  }
  .nav-wrap.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-wrap.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* The header CTA is the phone number, so it stays reachable at every width (it is the
   primary action on a phone). Below 900px the full nav still shows but the pill runs out
   of room, so drop the "Call" word and let the number carry it. Placed after the 760px
   block so it is not overridden there. */
@media (max-width: 900px) {
  .nav-cta { padding: 9px 13px; font-size: 13px; }
  .cta-word { display: none; }
}

/* --- services dropdown + service-page blocks (SEO architecture) --- */
.nav-links .has-sub { position: relative; display: flex; align-items: center; }
.nav-links .sub {
  display: none; position: absolute; top: calc(100% + 14px); left: -12px;
  min-width: 210px; padding: 10px; border-radius: 14px;
  background: rgba(10, 12, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-links .has-sub::after {
  content: ""; position: absolute; top: 100%; left: -12px; right: -12px; height: 16px;
}
.nav-links .has-sub:hover .sub,
.nav-links .has-sub:focus-within .sub { display: block; }
.nav-links .sub a { display: block; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav-links .sub a:hover { background: rgba(29, 59, 255, 0.18); }
@media (max-width: 760px) {
  .nav-links .has-sub { flex-direction: column; align-items: stretch; }
  .nav-links .sub {
    display: block; position: static; background: none; border: 0;
    padding: 0 0 4px 16px; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}
.crumb {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; margin-bottom: 18px;
}
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.svc-related { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
@media (max-width: 640px) { .svc-related { grid-template-columns: 1fr; } }
