/* ============ Design tokens ============ */
:root {
  --bg: #060a08;
  --bg-raised: #0a120e;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --emerald: #34d399;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --fg: #e8f0ec;
  --fg-muted: #93a89e;
  --fg-dim: #5c6f66;
  --grad: linear-gradient(120deg, var(--emerald), var(--cyan));
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius: 18px;
  --section-pad: clamp(4.5rem, 10vw, 8rem);
}

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }

::selection { background: rgba(52, 211, 153, 0.35); }

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Utilities ============ */
.container {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--grad);
}

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-top: 0.9rem;
}
.section-head p { margin-top: 0.9rem; color: var(--fg-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px var(--emerald);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #04120c;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.35);
}
.btn-primary:hover { box-shadow: 0 0 38px rgba(52, 211, 153, 0.55); }

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(52, 211, 153, 0.5); }

/* ============ Navbar ============ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding-block: 0.9rem;
  transition: background-color 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(6, 10, 8, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding-block: 0.6rem;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.nav-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}
.nav-word span {
  display: block;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--emerald);
}
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a:not(.nav-cta) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.nav-links a:not(.nav-cta):hover,
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-cta { padding: 0.55rem 1.3rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 85;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 82;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(6, 10, 8, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .nav-links a:not(.nav-cta) { font-size: 1.4rem; font-family: var(--font-display); }
  body.nav-open .nav-links { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.mesh-blob {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.mesh-a {
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.18), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
.mesh-b {
  bottom: -220px;
  right: -160px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, 50px) scale(1.15); }
}

.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(52, 211, 153, 0.22), rgba(34, 211, 238, 0.14), transparent 60%, rgba(52, 211, 153, 0.22));
  filter: blur(42px);
  animation: orbspin 14s linear infinite;
  pointer-events: none;
}
@keyframes orbspin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding-block: 7rem 4rem;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.hero-sub {
  max-width: 560px;
  color: var(--fg-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg-muted);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-blob, .hero-orb, .hero-scroll { animation: none; }
}

/* ============ Tech marquee ============ */
.tech-marquee { padding-block: clamp(2.5rem, 6vw, 4rem); }
.tech-marquee .container { margin-bottom: 1.6rem; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding-block: 0.5rem;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee[data-dir="rtl"] .marquee-track { animation-direction: reverse; }
.marquee-track ul { display: flex; gap: 0.9rem; padding-right: 0.9rem; }
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-a { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.dot-b { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused; }
}

/* ============ Bento / glow cards ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.bento-feature { grid-column: span 2; grid-row: span 2; }

.glow-card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s;
}
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px at var(--mx, 50%) var(--my, 50%), rgba(52, 211, 153, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.glow-card:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, 0.35); }
.glow-card:hover::before { opacity: 1; }

.glow-card .card-icon { margin-bottom: 1rem; }
.glow-card h3 {
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.glow-card p { font-size: 0.92rem; color: var(--fg-muted); }

.bento-feature { display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; }
.bento-feature h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; }
.bento-feature p { font-size: 1rem; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-feature { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-feature { grid-column: auto; }
}

/* ============ Why choose us ============ */
.tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) { .tri-grid { grid-template-columns: 1fr; } }

.why-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ============ Stats ============ */
.stats-band {
  background: var(--bg-raised);
  border-block: 1px solid var(--border);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { display: flex; flex-direction: column-reverse; gap: 0.4rem; }
.stat dt { font-size: 0.85rem; color: var(--fg-muted); letter-spacing: 0.04em; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  display: inline-block;
  min-width: 3ch;
}

/* ============ Process ============ */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), var(--cyan), transparent);
  opacity: 0.4;
}
.process li { position: relative; text-align: center; padding-top: 0.2rem; }
.process-node {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.18);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 1rem;
}
.process h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.4rem; }
.process p { font-size: 0.85rem; color: var(--fg-muted); }

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 2rem; }
  .process::before {
    top: 5%;
    bottom: 5%;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--emerald), var(--cyan), transparent);
  }
  .process li {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 1.2rem;
    text-align: left;
    align-items: start;
  }
  .process li h3 { grid-column: 2; margin-top: 0; }
  .process li p { grid-column: 2; }
  .process-node { grid-row: 1 / span 2; margin-bottom: 0; }
}

/* ============ Industries ============ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.industries-grid .glow-card { padding: 1.3rem; }
.industries-grid h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.25rem; }
.industries-grid p { font-size: 0.8rem; color: var(--fg-dim); }

/* ============ Testimonials ============ */
.testimonial { display: flex; flex-direction: column; gap: 1.2rem; }
.quote-mark {
  position: absolute;
  top: -0.5rem;
  right: 0.8rem;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: rgba(52, 211, 153, 0.1);
  pointer-events: none;
}
.testimonial blockquote { font-size: 0.95rem; color: var(--fg-muted); }
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: auto;
}
.testimonial strong { color: var(--fg); font-weight: 600; }
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: #04120c;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============ Big CTA ============ */
.big-cta { text-align: center; overflow: hidden; }
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.16), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.cta-inner h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.cta-inner p { color: var(--fg-muted); max-width: 460px; }

/* ============ Footer ============ */
footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding-top: var(--section-pad);
  background: linear-gradient(180deg, var(--bg), var(--bg-raised));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.footer-col li svg { flex-shrink: 0; margin-top: 0.3rem; color: var(--emerald); }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--fg); }
.footer-col p { font-size: 0.9rem; color: var(--fg-muted); margin-bottom: 1rem; }

.newsletter { display: flex; gap: 0.5rem; }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
}
.newsletter input::placeholder { color: var(--fg-dim); }
.newsletter input:focus { outline: none; border-color: rgba(52, 211, 153, 0.5); }
.newsletter .btn { padding: 0.7rem 1.3rem; font-size: 0.85rem; }
.newsletter-thanks { color: var(--emerald) !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--fg-dim);
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-legal a:hover { color: var(--fg-muted); }

/* Giant Antigravity-style wordmark */
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 22.5vw, 26rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: center;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.38), rgba(34, 211, 238, 0.04));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-block: 1.5rem 0;
}

/* ============ Floating buttons ============ */
.floaters {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.floater {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.25s, opacity 0.3s, visibility 0.3s;
}
.floater:hover { transform: translateY(-3px); }
.floater-wa {
  background: #10231a;
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #25d366;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.25);
}
.floater-call {
  background: var(--grad);
  color: #04120c;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
}
.floater-top {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
}
.floater-top.is-visible { opacity: 1; visibility: visible; }

/* ============ Scroll reveals ============ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js [data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============ QA polish ============ */
/* Fill the bento's last row on wide screens */
@media (min-width: 901px) {
  .bento > .glow-card:nth-last-child(1) { grid-column: span 2; }
}

/* Industries: clean 4x2 on wide screens */
@media (min-width: 1000px) {
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Newsletter: stack on narrow screens */
@media (max-width: 420px) {
  .newsletter { flex-direction: column; align-items: stretch; }
}

/* ============ Inner pages ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(8rem, 16vw, 11rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.page-hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
.page-hero p { max-width: 560px; color: var(--fg-muted); }

/* ============ Forms ============ */
.form-card {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-grid { display: grid; gap: 1.1rem; }
.form-grid .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-grid .row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}
.field input,
.field textarea,
.field select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}
.field select { appearance: none; }
.field option { background: var(--bg-raised); color: var(--fg); }

.form-success {
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.08);
  color: var(--emerald);
  font-size: 0.92rem;
  text-align: center;
}

/* ============ Info cards (contact methods, offices) ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.info-card { text-align: center; padding: 2rem 1.4rem; }
.info-card .card-icon { margin: 0 auto 1rem; }
.info-card h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.4rem; }
.info-card p { font-size: 0.88rem; color: var(--fg-muted); }
.info-card a.strong { color: var(--emerald); font-weight: 600; }

/* ============ FAQ accordion ============ */
.accordion { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.8rem; }
.accordion details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.3s;
}
.accordion details[open] { border-color: rgba(52, 211, 153, 0.4); }
.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--emerald);
  transition: transform 0.3s;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { padding: 0 1.4rem 1.2rem; font-size: 0.92rem; color: var(--fg-muted); }

/* ============ Team ============ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; max-width: 760px; margin-inline: auto; }
.team-card { text-align: center; padding: 2rem 1.4rem; }
.team-avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #04120c;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.team-card h3 { font-size: 1.02rem; font-weight: 500; }
.team-card p { font-size: 0.82rem; color: var(--fg-dim); margin-top: 0.2rem; }

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; gap: 1.2rem; padding: 2rem 1.6rem; }
.price-card.featured { border-color: rgba(52, 211, 153, 0.5); box-shadow: 0 0 34px rgba(52, 211, 153, 0.12); }
.price-card .plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.price-card .plan-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.price-card ul { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.price-card li { display: flex; gap: 0.6rem; font-size: 0.9rem; color: var(--fg-muted); }
.price-card li::before { content: "✓"; color: var(--emerald); font-weight: 700; }
.pricing-note { text-align: center; margin-top: 1.5rem; font-size: 0.8rem; color: var(--fg-dim); }

/* ============ Projects ============ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; }
.project-card { display: flex; flex-direction: column; gap: 0.8rem; }
.project-thumb {
  height: 140px;
  border-radius: 12px;
  margin-bottom: 0.4rem;
  background:
    radial-gradient(120px at 20% 20%, rgba(52, 211, 153, 0.25), transparent),
    radial-gradient(160px at 85% 80%, rgba(34, 211, 238, 0.2), transparent),
    var(--bg-raised);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.project-thumb svg { opacity: 0.9; }
.project-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
}
.project-card h3 { font-size: 1.08rem; font-weight: 500; }
.project-card > p { font-size: 0.9rem; color: var(--fg-muted); flex: 1; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-chips span {
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--emerald);
  margin-top: 0.4rem;
}
.project-link:hover { text-decoration: underline; }

.section-cta { text-align: center; margin-top: 2.5rem; }

/* ============ Chat page ============ */
.chat-card {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.wa-badge {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #25d366;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.25);
}

/* ============ Legal ============ */
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.legal-nav a {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
  transition: color 0.2s, border-color 0.2s;
}
.legal-nav a:hover { color: var(--fg); border-color: rgba(52, 211, 153, 0.4); }
.legal-body { max-width: 760px; margin-inline: auto; }
.legal-body section { margin-bottom: 3rem; scroll-margin-top: 90px; }
.legal-body h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.legal-body .updated { font-size: 0.78rem; color: var(--fg-dim); margin-bottom: 1.2rem; }
.legal-body h3 { font-size: 1.02rem; font-weight: 600; margin: 1.4rem 0 0.4rem; }
.legal-body p, .legal-body li { font-size: 0.92rem; color: var(--fg-muted); }
.legal-body ul { list-style: disc; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.4rem; }

/* two-up variant of tri-grid (collapses with the same media query) */
@media (min-width: 861px) {
  .tri-grid.duo-grid { grid-template-columns: 1fr 1fr; }
}

/* nav logo image */
.nav-logo { border-radius: 50%; box-shadow: 0 0 14px rgba(52, 211, 153, 0.25); }

/* ============ Lead popup ============ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(4, 7, 5, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}
.popup-overlay.is-open { opacity: 1; }

.popup-card {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100vh - 2.4rem);
  overflow-y: auto;
  padding: 2rem 1.8rem;
  background: var(--bg-raised);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(52, 211, 153, 0.18);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.popup-overlay.is-open .popup-card { transform: none; }

.popup-card h3 {
  font-size: 1.4rem;
  margin: 0.7rem 0 0.4rem;
}
.popup-card > p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 1.2rem;
}
.popup-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.3rem;
  color: var(--fg-dim);
  transition: color 0.2s;
}
.popup-close:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .popup-overlay, .popup-card { transition: none; }
}

/* single-member team layout (more names added later) */
.team-grid-solo { grid-template-columns: minmax(200px, 260px); justify-content: center; }
.team-grid-solo .team-avatar { font-size: 1.3rem; }
