/* ============================================================
   813 Sites — Dark refined tech theme
   ============================================================ */
:root {
  --bg: #060b16;
  --bg-2: #0a1220;
  --panel: rgba(13, 21, 36, 0.72);
  --panel-solid: #0c1424;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e7eef8;
  --muted: #8b98ad;
  --accent: #4da8ff;
  --accent-deep: #2563eb;
  --accent-cyan: #38e0ff;
  --green: #34d399;
  --grad-aqua: linear-gradient(135deg, #2563eb 0%, #4da8ff 100%);
  --grad-leaf: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 78% -8%, rgba(37, 99, 235, 0.16), transparent 65%),
    radial-gradient(900px 500px at -12% 30%, rgba(56, 224, 255, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mono, .section-head .eyebrow, .hero-kicker, .stat .lbl, .c-row .lbl {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

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

a { color: var(--accent); text-decoration: none; }

/* ---------- particle network canvas ---------- */
#bubble-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.page-wrap { position: relative; z-index: 1; }

/* subtle blueprint grid behind content */
.page-wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 100%);
}

/* ---------- panels ---------- */
.glass {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(2, 6, 16, 0.5);
}
.glass::before { content: none; }

/* ---------- nav ---------- */
nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  gap: 18px;
  background: rgba(8, 14, 26, 0.82);
}

/* ---------- wordmark ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.22rem;
  color: var(--text);
  text-decoration: none;
}
.logo .mark-num {
  font-weight: 700;
  font-size: 1.18em;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--accent) 20%, var(--accent-cyan) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(77, 168, 255, 0.35));
}
.logo .mark-word {
  font-weight: 500;
  font-size: 0.72em;
  letter-spacing: 0.34em;
  color: var(--text);
  text-transform: uppercase;
  padding-left: 1px;
}
.logo:hover .mark-word { color: var(--accent); transition: color 0.2s ease; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.93rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(148,163,184,0.08); }
.nav-links a.active { color: var(--text); background: rgba(77,168,255,0.12); border-color: rgba(77,168,255,0.25); }

.nav-cta { margin-left: 8px; }
.nav-links a.nav-cta, a.btn.nav-cta { color: #fff; font-weight: 600; }
.nav-links a.nav-cta:hover, a.btn.nav-cta:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--grad-aqua);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(77,168,255,0.25), 0 10px 30px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn::before { content: none; }
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 0 1px rgba(77,168,255,0.4), 0 14px 40px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn:active { transform: translateY(0) scale(0.99); }

.btn.leaf {
  background: var(--grad-leaf);
  box-shadow: 0 0 0 1px rgba(52,211,153,0.25), 0 10px 30px rgba(16,185,129,0.3), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn.leaf:hover { box-shadow: 0 0 0 1px rgba(52,211,153,0.4), 0 14px 40px rgba(16,185,129,0.45), inset 0 1px 0 rgba(255,255,255,0.22); }

.btn.ghost {
  background: rgba(148,163,184,0.06);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(77,168,255,0.06); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 20px 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(37, 99, 235, 0.14), transparent 70%),
    radial-gradient(500px 260px at 82% 78%, rgba(56, 224, 255, 0.06), transparent 70%);
}
.hero-bg .orb { display: none; }

.hero-card {
  max-width: 800px;
  padding: 56px 52px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(13,21,36,0.85), rgba(10,16,28,0.65));
  border-color: var(--border-strong);
}
.hero-card::after {
  content: "";
  position: absolute;
  top: -1px; left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77,168,255,0.8), transparent);
}
.hero-kicker {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(77,168,255,0.08);
  border: 1px solid rgba(77,168,255,0.25);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.7rem);
  line-height: 1.08;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  margin: 20px auto 34px;
  max-width: 580px;
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }
.mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  position: relative;
  background: rgba(148,163,184,0.05);
}
.mouse::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--accent);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- sections ---------- */
section.block {
  max-width: 1100px;
  margin: 0 auto 90px;
  padding: 0 20px;
}
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 12px;
}
.section-head .eyebrow::before { content: "// "; color: var(--muted); }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--text); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.02rem; max-width: 620px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.stat { padding: 30px 22px; text-align: center; }
.stat .num {
  font-size: 2.3rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(120deg, var(--accent), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl { color: var(--muted); font-weight: 400; margin-top: 8px; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { padding: 30px 26px; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.card h3 { font-size: 1.12rem; margin: 16px 0 10px; color: var(--text); }
.card p { color: var(--muted); line-height: 1.65; font-weight: 400; font-size: 0.95rem; }

.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: rgba(77,168,255,0.1);
  border: 1px solid rgba(77,168,255,0.3);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(77,168,255,0.12), inset 0 0 12px rgba(77,168,255,0.08);
}
.card.leaf-icon .icon {
  background: rgba(52,211,153,0.1);
  border-color: rgba(52,211,153,0.3);
  color: var(--green);
  box-shadow: 0 0 24px rgba(52,211,153,0.1), inset 0 0 12px rgba(52,211,153,0.07);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(77,168,255,0.35);
  box-shadow: 0 24px 60px rgba(2,6,16,0.6), 0 0 40px rgba(77,168,255,0.06);
}

/* sheen sweep on hover — slim accent line instead of gloss */
.sheen { position: relative; }
.sheen::after { content: none; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step { padding: 30px 24px; }
.step .badge {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  margin-bottom: 16px;
  background: rgba(77,168,255,0.08);
  border: 1px solid rgba(77,168,255,0.3);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); line-height: 1.6; font-size: 0.9rem; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.price-card { padding: 38px 30px; display: flex; flex-direction: column; }
.price-card.featured {
  border-color: rgba(77,168,255,0.5);
  box-shadow: 0 18px 50px rgba(2,6,16,0.5), 0 0 50px rgba(77,168,255,0.1);
}
.price-card .tag {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--green);
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
}
.price-card .tag.blue {
  color: var(--accent);
  background: rgba(77,168,255,0.1);
  border-color: rgba(77,168,255,0.3);
}
.price-card .amount { font-size: 2.8rem; font-weight: 600; font-family: "Space Grotesk", sans-serif; color: var(--text); margin: 18px 0 2px; letter-spacing: -0.02em; }
.price-card .amount span { font-size: 1.05rem; color: var(--muted); font-weight: 400; }
.price-card .per { color: var(--muted); font-weight: 400; margin-bottom: 24px; font-size: 0.95rem; }
.price-card ul { list-style: none; margin: 0 0 28px; flex: 1; }
.price-card li { padding: 8px 0 8px 30px; position: relative; color: var(--muted); font-size: 0.93rem; line-height: 1.5; border-bottom: 1px solid rgba(148,163,184,0.07); }
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  color: var(--green);
  font-size: 0.85rem;
}

.price-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 640px;
  margin: 28px auto 0;
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* work / portfolio */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.work-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.work-card:hover { transform: translateY(-4px); border-color: rgba(77,168,255,0.4); box-shadow: 0 24px 60px rgba(2,6,16,0.6), 0 0 40px rgba(77,168,255,0.08); }
.work-thumb { position: relative; height: 190px; overflow: hidden; background: linear-gradient(180deg, #0a1424 0%, #0d1a2f 60%, #0f1e36 100%); border-bottom: 1px solid var(--border); }
.work-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77,168,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,168,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 160px at 70% 20%, rgba(37,99,235,0.28), transparent 70%);
}
.work-thumb .skyline {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  gap: 5px;
  padding: 0 12px;
}
.work-thumb .bar {
  width: 13px;
  background: linear-gradient(180deg, rgba(77,168,255,0.65), rgba(77,168,255,0.08));
  border-radius: 2px 2px 0 0;
}
.work-thumb .sun { display: none; }
.work-thumb .bub { display: none; }
.work-body { padding: 22px 24px 26px; }
.work-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.work-body p { color: var(--muted); line-height: 1.6; font-size: 0.9rem; }
.work-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}
.work-link:hover { text-decoration: underline; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details.faq-item { padding: 22px 26px; }
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex: none;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { margin-top: 14px; color: var(--muted); line-height: 1.7; font-size: 0.95rem; }

/* split feature (about) */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.split .glass { padding: 18px; }
.split img { border-radius: 12px; box-shadow: 0 24px 60px rgba(2,6,16,0.6); }
.split h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: 18px; }
.split p { color: var(--muted); line-height: 1.75; margin-bottom: 15px; font-size: 0.99rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-info { padding: 34px 30px; display: grid; gap: 22px; align-content: start; }
.c-row { display: flex; gap: 14px; align-items: center; }
.c-row .icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  background: rgba(77,168,255,0.1);
  border: 1px solid rgba(77,168,255,0.3);
  color: var(--accent);
}
.c-row .lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-weight: 600; }
.c-row .val { font-weight: 600; color: var(--text); font-size: 1rem; }
.c-row a.val { color: var(--accent); }
.c-row a.val:hover { text-decoration: underline; }

form.contact-form { padding: 34px 30px; display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.82rem; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(6, 11, 22, 0.6);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(139,152,173,0.5); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: rgba(77,168,255,0.6);
  box-shadow: 0 0 0 3px rgba(77,168,255,0.15);
}

/* CTA band */
.cta-band { padding: 52px 40px; text-align: center; overflow: hidden; }
.cta-band::after {
  content: "";
  position: absolute;
  top: -1px; left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77,168,255,0.7), transparent);
}
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; }

/* footer */
footer {
  position: relative;
  z-index: 1;
  margin: 40px auto 0;
  padding: 34px 20px 26px;
}
footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 36px 34px;
}
footer h4 { font-family: "Space Grotesk", sans-serif; margin-bottom: 14px; color: var(--text); font-size: 0.95rem; }
footer ul { list-style: none; }
footer li { margin: 8px 0; }
footer a, footer p { color: var(--muted); font-size: 0.88rem; }
footer a:hover { color: var(--accent); }
footer .copy {
  text-align: center;
  padding: 20px;
  color: rgba(139,152,173,0.6);
  font-size: 0.78rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.5px;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.9, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.9, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

.bubble-float { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  footer .inner { grid-template-columns: 1fr; text-align: center; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    display: none;
    min-width: 210px;
    background: rgba(8, 14, 26, 0.95);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(2,6,16,0.7);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: grid !important; }
  .hero-card { padding: 40px 26px; }
}
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(148,163,184,0.06);
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
