/* ===== Design tokens ===== */
:root {
  --bg: #071613;
  --bg-2: #0a1e19;
  --surface: #0e2822;
  --surface-2: #13342c;
  --text: #e7f4ef;
  --muted: #9dc0b4;
  --border: rgba(255, 255, 255, 0.09);
  --brand: #10b981;
  --brand-2: #14b8a6;
  --brand-3: #a3e635;
  --accent-grad: linear-gradient(120deg, #10b981, #14b8a6 52%, #a3e635);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(3, 8, 22, 0.5);
  --maxw: 1140px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-3);
  margin: 0 0 0.9rem;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--display);
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent-grad);
  color: #04120e;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { background: #04120e; color: #eafff6; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--display); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.brand-text { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-text span { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.15s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.28), rgba(163, 230, 53, 0.12) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 0.4em; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 1rem; margin: 2rem 0 2.4rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* Hero visual */
.hero-visual { position: relative; min-height: 340px; }
.glass-card {
  position: absolute;
  background: linear-gradient(160deg, rgba(24, 36, 68, 0.9), rgba(15, 23, 41, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.card-code {
  top: 0; left: 0; right: 24px;
  padding: 18px;
  animation: float 6s ease-in-out infinite;
}
.card-code .dots { display: flex; gap: 7px; margin-bottom: 14px; }
.card-code .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3a5e; }
.card-code .dots i:first-child { background: #ff5f57; }
.card-code .dots i:nth-child(2) { background: #febc2e; }
.card-code .dots i:nth-child(3) { background: #28c840; }
.card-code pre { margin: 0; overflow-x: auto; }
.card-code code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #cdd8ef;
  white-space: pre;
}
.c-key { color: #5eead4; }
.c-var { color: #a3e635; }
.c-fn { color: #fcd34d; }
.c-str { color: #6ee7a8; }

.card-badge {
  bottom: 8px; right: 0;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 14px 18px;
  animation: float 6s ease-in-out infinite 1.5s;
}
.badge-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(34, 211, 158, 0.15);
  color: #6ee7a8;
  font-size: 1.2rem;
}
.card-badge strong { display: block; font-family: var(--display); font-size: 0.95rem; }
.card-badge small { color: var(--muted); font-size: 0.8rem; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Trusted strip ===== */
.trusted { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trusted p { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 0 0 14px; }
.trusted-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
}
.trusted-row span {
  font-family: var(--display);
  font-weight: 700;
  color: #5f7095;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-sub { color: var(--muted); }

.grid { display: grid; gap: 22px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Services */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service:hover { transform: translateY(-6px); border-color: rgba(16, 185, 129, 0.5); box-shadow: var(--shadow); }
.service-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(16,185,129,0.22), rgba(163,230,53,0.15));
  border: 1px solid var(--border);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service h3 { font-size: 1.2rem; }
.service p { color: var(--muted); margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.about-copy > p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 0.8rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--text); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 158, 0.16);
  color: #6ee7a8;
  font-size: 0.75rem; font-weight: 700;
}
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value h3 { font-size: 1.1rem; color: var(--brand); }
.value p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* Process */
.process {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  counter-reset: step;
}
.process li {
  position: relative;
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-no {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.process h3 { font-size: 1.15rem; margin: 0.5rem 0 0.4rem; }
.process p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* Industries */
.industries-grid { grid-template-columns: repeat(4, 1fr); }
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 20px;
  text-align: center;
  font-weight: 600;
  font-family: var(--display);
  transition: border-color 0.2s, transform 0.2s;
}
.chip:hover { border-color: var(--brand); transform: translateY(-3px); }

/* CTA band */
.cta-band { background: var(--accent-grad); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 54px 24px; flex-wrap: wrap;
}
.cta-inner h2 { color: #04120e; margin: 0 0 0.3rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-inner p { color: rgba(4,18,14,0.82); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.contact-copy > p { color: var(--muted); }
.contact-info { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.contact-info li { display: flex; align-items: center; gap: 0.8rem; color: var(--text); }
.contact-info span {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
}
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.field textarea { resize: vertical; }
.form-note { margin: 0; font-size: 0.9rem; min-height: 1.2em; }
.form-note.ok { color: #6ee7a8; }
.form-note.err { color: #ff8a8a; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 60px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px;
}
.footer-brand p { color: var(--muted); max-width: 22rem; margin: 1rem 0 0; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--muted); padding: 0.3rem 0; font-size: 0.92rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 22px 24px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.88rem; flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--text); }

/* ===== Active nav ===== */
.nav a.active { color: var(--text); }
.nav a.active:not(.nav-cta) { position: relative; }
.nav a.active:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}

/* ===== Interior page hero ===== */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero .hero-glow { top: -40%; }
.page-hero-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
.page-hero p { color: var(--muted); font-size: 1.1rem; margin: 0 auto; max-width: 42rem; }
.breadcrumb { color: var(--muted); font-size: 0.86rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--brand-2); }
.breadcrumb a:hover { color: var(--text); }

/* ===== Service detail (with feature list) ===== */
.service .feature-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.service .feature-list li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.service .feature-list li::before { content: "→"; position: absolute; left: 0; color: var(--brand); }

/* ===== Mission / vision ===== */
.mv-grid { grid-template-columns: 1fr 1fr; }
.mv-card { padding: 34px; }
.mv-card .service-icon { margin-bottom: 16px; }
.mv-card h3 { font-size: 1.4rem; }
.mv-card p { color: var(--muted); margin: 0; }

/* ===== Team ===== */
.team-grid { grid-template-columns: repeat(4, 1fr); }
.team-card { text-align: center; padding: 26px; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 16px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.7rem;
  color: #04120e; background: var(--accent-grad);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.team-card .role { color: var(--brand-2); font-size: 0.9rem; margin: 0; }

/* ===== Stats band ===== */
.stats-band { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-box { padding: 30px 18px; }
.stat-box strong {
  display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 800;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-box span { color: var(--muted); font-size: 0.92rem; }

/* ===== Engagement models ===== */
.model h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; }
.model p { color: var(--muted); margin: 0; }

/* ===== Industry detail cards ===== */
.ind-card .service-icon { font-size: 1.6rem; }
.ind-card h3 { font-size: 1.15rem; }
.ind-card p { color: var(--muted); margin: 0; font-size: 0.93rem; }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--display);
  font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; margin-top: 12px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { margin-top: 10px; border-bottom: 0; }
  .nav-toggle { display: flex; }
  .services-grid, .about-values, .industries-grid, .footer-grid,
  .team-grid, .stats-band { grid-template-columns: 1fr; }
  .nav a.active:not(.nav-cta)::after { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0; }
  .hero-stats { gap: 1.6rem; }
}
