:root {
  --bg: #070b16;
  --bg-2: #0b1020;
  --panel: #10182c;
  --panel-2: #0d1426;
  --line: #253250;
  --text: #eaf2ff;
  --muted: #a8b6ce;
  --soft: #7485a1;
  --brand: #44d7b6;
  --brand-2: #62a8ff;
  --warning: #ffd166;
  --danger: #ff7b7b;
  --shadow: 0 24px 80px rgba(0, 0, 0, .32);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -10%, rgba(98, 168, 255, .22), transparent 35%),
    radial-gradient(circle at 5% 25%, rgba(68, 215, 182, .13), transparent 28%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

a.link { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

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

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 11, 22, .78);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.03em; font-size: 21px; line-height: 1; }
.logo::after { content: "Needlebyte"; background: linear-gradient(90deg, #f8fbff 0%, #f8fbff 58%, #37e7ff 59%, #55a6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 22px rgba(55, 231, 255, 0.18); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.nav .pill { color: var(--bg); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 12px;
  font-size: 22px;
}

.hero {
  padding: 96px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(68, 215, 182, .28);
  border-radius: 999px;
  color: #bff6e8;
  background: rgba(68, 215, 182, .08);
  font-size: 13px;
  font-weight: 650;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 22px 0 20px;
  max-width: 820px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: .95;
  letter-spacing: -3.8px;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin-bottom: 16px;
}

h3 {
  font-size: 21px;
  letter-spacing: -.4px;
  margin-bottom: 10px;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.62;
}

.hero-actions, .cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button, .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 720;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}

.button { padding: 13px 19px; border: 1px solid transparent; }
.button:hover, .pill:hover { transform: translateY(-1px); }

.button.primary, .pill {
  background: linear-gradient(135deg, var(--brand), #7ce4ff);
  color: #071021;
  box-shadow: 0 10px 40px rgba(68, 215, 182, .18);
}

.button.secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255,255,255,.03);
}

.button.secondary:hover { border-color: rgba(255,255,255,.28); }

.pill { padding: 11px 15px; }

.hero-note {
  margin-top: 18px;
  color: var(--soft);
  font-size: 14px;
}

.hero-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    var(--panel-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -60px -80px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(68, 215, 182, .26), transparent 65%);
}

.card-title {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

.system-map {
  position: relative;
  display: grid;
  gap: 14px;
}

.map-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.node {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(7, 11, 22, .6);
}

.node strong { display: block; margin-bottom: 3px; }
.node span { color: var(--muted); font-size: 13px; }

.node.full { grid-column: 1 / -1; }
.node.accent { border-color: rgba(68, 215, 182, .45); background: rgba(68, 215, 182, .08); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.metric {
  padding: 15px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.metric strong { display: block; font-size: 24px; line-height: 1; }
.metric span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

.section { padding: 74px 0; }
.section.alt { background: rgba(255,255,255,.025); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p { color: var(--muted); font-size: 18px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.service-card, .price-card, .case-card, .faq-card, .text-panel {
  border: 1px solid rgba(255,255,255,.095);
  border-radius: var(--radius);
  background: rgba(13, 20, 38, .78);
  box-shadow: 0 16px 54px rgba(0,0,0,.18);
}

.service-card, .case-card, .faq-card, .text-panel { padding: 24px; }

.service-card p, .case-card p, .faq-card p, .text-panel p { color: var(--muted); }

.tagline {
  display: inline-block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 12px;
}

.list-clean {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.list-clean li { position: relative; padding-left: 20px; margin: 8px 0; }
.list-clean li::before { content: "•"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.price-card { padding: 0; overflow: hidden; }
.price-card.featured { border-color: rgba(68, 215, 182, .55); background: linear-gradient(180deg, rgba(68, 215, 182, .08), rgba(13, 20, 38, .85)); }

.price-head { padding: 24px 24px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.price-head p { margin-bottom: 0; color: var(--muted); }
.price { font-size: 34px; line-height: 1; letter-spacing: -1px; font-weight: 800; margin: 12px 0 8px; }
.price small { color: var(--muted); font-size: 14px; font-weight: 600; }
.price-body { padding: 22px 24px 24px; }

.notice {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 209, 102, .28);
  border-radius: 18px;
  background: rgba(255, 209, 102, .07);
  color: #ffe7a3;
}
.notice a { color: var(--warning); text-decoration: underline; text-underline-offset: 4px; }

.process {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  padding: 22px 22px 22px 74px;
  border: 1px solid rgba(255,255,255,.095);
  border-radius: var(--radius);
  background: rgba(13, 20, 38, .72);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(68, 215, 182, .12);
  color: var(--brand);
  font-weight: 800;
}
.step p { margin-bottom: 0; color: var(--muted); }

.cta-box {
  padding: 42px;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(68, 215, 182, .28);
  background:
    radial-gradient(circle at 82% 10%, rgba(68, 215, 182, .18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
    var(--panel-2);
  box-shadow: var(--shadow);
}

.cta-box p { max-width: 780px; color: var(--muted); font-size: 18px; }

.footer {
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer a { color: var(--muted); margin-right: 16px; }
.footer a:hover { color: var(--text); }

.page-hero { padding: 80px 0 38px; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 62px); }
.content { padding: 40px 0 80px; }
.content-card {
  max-width: 900px;
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(13, 20, 38, .78);
  border: 1px solid rgba(255,255,255,.095);
}
.content-card h2 { font-size: 28px; margin-top: 34px; }
.content-card h2:first-child { margin-top: 0; }
.content-card p, .content-card li { color: var(--muted); }
.content-card ul { padding-left: 22px; }
.content-card code { color: var(--brand); }

.local-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(98, 168, 255, .13);
  color: #cfe3ff;
  border: 1px solid rgba(98, 168, 255, .32);
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 940px) {
  .hero-grid, .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .hero-card { max-width: 640px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav {
    position: fixed;
    inset: 76px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 20px;
    background: rgba(11, 16, 32, .98);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .menu-button { display: inline-grid; place-items: center; }
  h1 { letter-spacing: -2.4px; }
  .lead { font-size: 18px; }
  .map-row, .metrics { grid-template-columns: 1fr; }
  .cta-box { padding: 28px; }
  .section { padding: 56px 0; }
}

.nav.open-static { display: flex; }
@media (max-width: 720px) {
  .nav.open-static {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    inset: auto;
  }
}

.small-note {
  margin-top: 16px;
  color: var(--soft);
  font-size: 14px;
}

.contact-lead {
  color: var(--text);
  font-size: 17px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
}

.contact-actions .button {
  cursor: pointer;
  border: 0;
  font: inherit;
}

.small-note {
  color: var(--soft);
  font-size: 14px;
}
