:root {
  --bg:      #1e1f22;
  --bg2:     #27282c;
  --bg3:     #2b2d30;
  --border:  #3d3f41;
  --text:    #dfe1e5;
  --muted:   #9da0a8;
  --pink:    #df7280;
  --green:   #86ab63;
  --pink-d:  #c55e6b;
  --green-d: #6a8a4c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.site-nav.scrolled {
  background: rgba(30,31,34,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--border);
}
.logo-icon {
  max-height: 27px;
  margin-right: 10px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -.2px;
}
.nav-brand .dot { color: var(--pink); }
.nav-brand .ext { color: var(--muted); font-weight: 400; }
.nav-links {
  display: flex;
  align-items: center;
  gap: .125rem;
  list-style: none;
}
.nav-links a {
  font-size: .8375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: .375rem .75rem;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg3); }
.nav-cta {
  color: var(--text) !important;
  background: var(--bg3) !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  padding: .375rem 1rem !important;
  font-weight: 600 !important;
  transition: border-color .15s, background .15s !important;
}
.nav-cta:hover {
  border-color: var(--pink) !important;
  background: rgba(223,114,128,.07) !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .3rem .45rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; }
@media(max-width:767px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: .75rem;
    gap: .25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 4px; padding: .5rem .75rem; }
}

/* ── HERO ── */
#hero {
  padding: 140px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 75% 45%, rgba(134,171,99,.04) 0%, transparent 65%);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .25rem .875rem;
  margin-bottom: 1.875rem;
}
.hero-tag .blink {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.hero-h {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 510px;
  margin-bottom: 2rem;
}
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--pink);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  padding: .625rem 1.375rem;
  border-radius: 4px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-p:hover { background: var(--pink-d); color: #fff; transform: translateY(-1px); }
.btn-o {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: transparent;
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  padding: .625rem 1.375rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-o:hover { border-color: var(--green); background: rgba(134,171,99,.06); color: var(--text); }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-n sup { font-size: .85rem; color: var(--green); }
.stat-l { font-size: .73rem; color: var(--muted); margin-top: .3rem; letter-spacing: .1px; }

/* ── CODE PANEL ── */
.code-panel {
  background: #16171a;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: .775rem;
  line-height: 1.7;
  box-shadow: 0 32px 72px rgba(0,0,0,.45);
}
.code-header {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: .5rem .875rem;
  display: flex;
  align-items: center;
  gap: .875rem;
}
.code-dots { display: flex; gap: 5px; flex-shrink: 0; }
.cd { width: 10px; height: 10px; border-radius: 50%; }
.cd.r { background: #ed6a5e; }
.cd.y { background: #f4bf4f; }
.cd.g { background: #61c554; }
.code-tabs { display: flex; }
.code-tab {
  font-size: .7rem;
  color: var(--muted);
  padding: .2rem .875rem;
  border-right: 1px solid var(--border);
  cursor: default;
  white-space: nowrap;
}
.code-tab.active {
  color: var(--text);
  background: #16171a;
  border-top: 1px solid var(--pink);
  margin-top: -1px;
}
.code-body { display: flex; }
.code-ln {
  padding: 1.125rem .75rem;
  text-align: right;
  color: #3d4048;
  font-size: .7rem;
  line-height: 1.7;
  user-select: none;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.04);
}
.code-ln span { display: block; }
.code-pre {
  padding: 1.125rem 1.25rem 1.25rem .875rem;
  margin: 0;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
  flex: 1;
  background: transparent;
  border: none;
}

/* Syntax tokens */
.kw { color: #df7280; }
.fn { color: #86ab63; }
.tp { color: #86ab63; font-style: italic; }
.st { color: #6aab73; }
.cm { color: #4d5058; font-style: italic; }
.nm { color: #d19a66; }
.at { color: #9da0a8; }
.mc { color: #56b6c2; }

/* ── TECH STRIP ── */
.tech-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .875rem 0;
  overflow: hidden;
}
.tech-track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  animation: scroll-x 22s linear infinite;
  width: max-content;
}
.tech-track:hover { animation-play-state: paused; }
@keyframes scroll-x { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ti {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .4px;
  color: var(--muted);
  white-space: nowrap;
}
.ti i { font-size: .8rem; }
.ti-sep { color: var(--border); font-size: .7rem; }

/* ── SERVICES ── */
#services { padding: 96px 0 100px; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .875rem;
}
.sh {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1.2px;
  line-height: 1.12;
}
.sm { font-size: .9375rem; color: var(--muted); line-height: 1.75; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 3rem;
}
@media(max-width:991px) { .svc-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:575px)  { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--bg2);
  padding: 2rem;
  transition: background .15s;
}
.svc-card:hover { background: var(--bg3); }
.svc-ico {
  width: 34px; height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  margin-bottom: 1.125rem;
  background: rgba(223,114,128,.1);
  color: var(--pink);
}
.svc-ico.g { background: rgba(134,171,99,.1); color: var(--green); }
.svc-card h3 {
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .5rem;
  letter-spacing: -.2px;
}
.svc-card p {
  font-size: .8375rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .875rem;
}
.tag {
  font-size: .67rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: .1rem .45rem;
}

/* ── ABOUT ── */
#about {
  padding: 96px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media(max-width:767px) { .about-grid { grid-template-columns: 1fr; gap: 3rem; } }
.about-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}
.about-text p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: .875rem;
}
.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .3rem .7rem;
  margin-top: .375rem;
}
.loc-pill i { color: var(--pink); }
.about-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  margin-top: 1.25rem;
  transition: gap .15s;
}
.about-link:hover { color: var(--green); gap: .625rem; }
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.metric-card {
  background: var(--bg);
  padding: 1.75rem;
}
.metric-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: .375rem;
}
.metric-card .num span { color: var(--green); }
.metric-card .lbl { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* ── CONTACT ── */
#contact { padding: 96px 0 100px; }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}
@media(max-width:767px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }
.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.18;
  margin-bottom: 1rem;
}
.contact-info > p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.875rem;
}
.c-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 0;
  border-top: 1px solid var(--border);
}
.c-item:last-child { border-bottom: 1px solid var(--border); }
.c-ico {
  width: 32px; height: 32px;
  border-radius: 4px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .8rem;
  flex-shrink: 0;
}
.c-label { font-size: .71rem; color: var(--muted); margin-bottom: .1rem; }
.c-value { font-size: .875rem; font-weight: 500; color: var(--text); }
.form-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.875rem;
}
.f-row { margin-bottom: 1rem; }
.f-row:last-child { margin-bottom: 0; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:480px) { .f-grid { grid-template-columns: 1fr; } }
.f-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
}
.f-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: .5625rem .875rem;
  font-size: .875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.f-input:focus { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(223,114,128,.1); }
.f-input::placeholder { color: #4a4d54; }
textarea.f-input { resize: vertical; min-height: 100px; }
select.f-input { cursor: pointer; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 1.375rem 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.footer-brand .dot { color: var(--pink); }
.footer-brand .ext { color: var(--muted); font-weight: 400; }
footer p { font-size: .78rem; color: var(--muted); margin: 0; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.up { opacity: 1; transform: none; }
.d1 { transition-delay: .07s; }
.d2 { transition-delay: .14s; }
.d3 { transition-delay: .21s; }
.d4 { transition-delay: .28s; }
.d5 { transition-delay: .35s; }
.d6 { transition-delay: .42s; }
