:root {
  --bg: #060810;
  --bg2: #0b0f1a;
  --teal: #00d4c8;
  --purple: #8b2fc9;
  --white: #f0f4ff;
  --muted: #6b7590;
  --line: rgba(240, 244, 255, 0.08);
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", monospace;
  --shadow: 0 28px 80px rgba(0, 212, 200, 0.06);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  font-family: var(--font);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin-top: 0; line-height: 1.7; color: var(--muted); }
h1, h2, h3 { margin-top: 0; letter-spacing: -0.05em; }

.shell {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.skip-link, .sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  z-index: 100; width: auto; height: auto;
  padding: 10px 16px; clip: auto; background: var(--teal); color: var(--bg);
}

/* ── Animated background ─────────────────────────────────────── */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 200, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  animation: gridDrift 24s linear infinite;
}

@keyframes gridDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(48px, 48px); }
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  animation: orbFloat 14s ease-in-out infinite;
}

.bg-orb--teal {
  width: 600px; height: 600px;
  left: -200px; top: -100px;
  background: var(--teal);
}

.bg-orb--purple {
  width: 500px; height: 500px;
  right: -180px; bottom: -80px;
  background: var(--purple);
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%       { transform: translate3d(40px, -40px, 0); }
}

.bg-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
}

/* ── Code rain / typing background ──────────────────────────── */
.code-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cr-block {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre;
  pointer-events: none;
  opacity: 0;
  animation: crFade var(--cr-dur, 14s) var(--cr-delay, 0s) ease-in-out forwards;
  color: var(--cr-color, rgba(0, 212, 200, 0.28));
  text-shadow: 0 0 8px var(--cr-color, rgba(0, 212, 200, 0.18));
}

@keyframes crFade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  78%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Cursor blink at the end of each typing block */
.cr-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: currentColor;
  vertical-align: text-bottom;
  animation: crBlink 0.8s step-end infinite;
  opacity: 0.7;
}

@keyframes crBlink {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0; }
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(6, 8, 16, 0.85);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  padding: 4px;
}

.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; }
.brand em { font-size: 0.7rem; font-style: normal; color: var(--teal); letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--mono); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: rgba(240,244,255,0.7); transition: color 0.15s ease, background 0.15s ease; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav__cta { color: var(--bg) !important; background: var(--teal); font-weight: 700; }
.nav__cta:hover { background: #00f0e2 !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--white); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding: clamp(80px, 10vw, 120px) 0 60px; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

.eyebrow::before { content: "//"; color: var(--purple); margin-right: 2px; }

h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.94;
  margin-bottom: 22px;
  color: var(--white);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 0.96;
  margin-bottom: 16px;
  color: var(--white);
}

h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--white); }

.grad-text {
  background: linear-gradient(90deg, var(--teal), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__copy > p { font-size: 1.08rem; max-width: 540px; margin-bottom: 30px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: var(--white);
  box-shadow: 0 12px 40px rgba(0, 212, 200, 0.22);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0, 212, 200, 0.3); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255,255,255,0.04);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* Code window */
.code-window {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0e1a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.code-window__bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--line);
}

.code-window__bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.code-window__bar span:nth-child(1) { background: #ff5f57; }
.code-window__bar span:nth-child(2) { background: #febc2e; }
.code-window__bar span:nth-child(3) { background: #28c840; }

.code-window__body {
  padding: 22px 24px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #8b9bc8;
  overflow: auto;
}

.c-kw { color: var(--purple); }
.c-var { color: var(--teal); }
.c-key { color: #7dd3fc; }
.c-str { color: #86efac; }
.c-fn  { color: #fde68a; }

/* Metrics strip */
.hero__metrics {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 700px;
  margin: 52px auto 0;
  padding: 20px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
}

.hero__metrics > div {
  flex: 1;
  text-align: center;
}

.hero__metrics strong { display: block; font-size: 1.15rem; font-weight: 700; color: var(--teal); }
.hero__metrics span { font-size: 0.78rem; color: var(--muted); font-family: var(--mono); }

.metric-sep {
  width: 1px;
  height: 36px;
  background: var(--line);
  flex: none;
}

/* ── Section ─────────────────────────────────────────────────── */
.section { padding: clamp(70px, 8vw, 110px) 0; }

.section__head { max-width: 780px; margin-bottom: 40px; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head p { font-size: 1rem; }

/* ── Services ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  background: rgba(0,212,200,0.06);
  border-color: rgba(0,212,200,0.25);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0,212,200,0.14), rgba(139,47,201,0.14));
  border: 1px solid var(--line);
  margin-bottom: 20px;
  color: var(--teal);
}

.service-card__icon svg { width: 24px; height: 24px; }

.service-card p { font-size: 0.9rem; }

/* ── About ───────────────────────────────────────────────────── */
.about {
  background: linear-gradient(180deg, transparent, rgba(139,47,201,0.06), transparent);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 52px;
  align-items: center;
}

.about__text > p { font-size: 1rem; }

.about__pillars { display: grid; gap: 14px; margin-top: 28px; }

.about__pillars > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}

.about__pillars span {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal);
  padding: 4px 8px;
  border: 1px solid rgba(0,212,200,0.3);
  border-radius: 8px;
  flex-shrink: 0;
}

.about__pillars strong { display: block; margin-bottom: 4px; color: var(--white); }
.about__pillars p { font-size: 0.86rem; margin: 0; }

.about__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(14px);
}

.about__card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: rgba(255,255,255,0.04);
  padding: 32px;
}

.about__card-body { padding: 22px; border-top: 1px solid var(--line); }
.about__card-body strong { display: block; font-size: 1.1rem; margin-bottom: 2px; }
.about__card-body span { font-size: 0.78rem; color: var(--teal); font-family: var(--mono); }

.about__details { margin-top: 14px; display: grid; gap: 6px; font-size: 0.84rem; color: var(--muted); }

/* ── Stack ───────────────────────────────────────────────────── */
.stack { }

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.stack-chip {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.stack-chip:hover {
  background: rgba(0,212,200,0.08);
  border-color: rgba(0,212,200,0.3);
  color: var(--teal);
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact {
  padding: 90px 0;
  background: linear-gradient(135deg, rgba(0,212,200,0.04), rgba(139,47,201,0.06));
  border-top: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: center;
}

.contact__grid > div > p { font-size: 1rem; max-width: 480px; }

.contact-card {
  display: grid;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  font-style: normal;
  backdrop-filter: blur(14px);
}

.contact-card__label {
  display: inline-flex;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0,212,200,0.12);
  border: 1px solid rgba(0,212,200,0.3);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card > strong {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255,255,255,0.06);
  transition: background 0.15s ease;
}

.contact-actions a:hover { background: rgba(255,255,255,0.1); }

.cta-wa { background: #17a558 !important; border-color: transparent !important; }
.cta-wa:hover { background: #15924e !important; }

.contact-address { font-size: 0.84rem; color: var(--muted); display: grid; gap: 6px; line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: 74px; right: 16px; left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(6,8,16,0.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.5);
  }
  .nav.is-open { display: flex; }
  .nav a { text-align: center; }
  .hero__inner, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .hero__metrics { flex-wrap: wrap; gap: 14px; }
  .metric-sep { display: none; }
}

@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
