/* ============================================================
   TECHNINJA LABS — CORE STYLESHEET
   Color system, typography, and shared components
   ============================================================ */

:root {
  /* Surface */
  --bg: #050605;
  --bg-elev: #0c0e0c;
  --bg-card: #0f120f;
  --bg-card-hover: #131713;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(34, 197, 94, 0.25);
  --border-accent: rgba(34, 197, 94, 0.5);

  /* Brand */
  --green: #22c55e;
  --green-bright: #4ade80;
  --green-dim: #16a34a;
  --green-deep: #15803d;
  --green-glow: rgba(34, 197, 94, 0.15);

  /* Text */
  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  --text-subtle: #4b5563;

  /* Layout */
  --max: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

.mono { font-family: 'JetBrains Mono', monospace; }

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

/* ------- BACKGROUND ATMOSPHERE ------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 197, 94, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(34, 197, 94, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 6, 5, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ------- BUTTONS ------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--green);
  color: #051005;
}

.btn-primary:hover {
  background: var(--green-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--green-glow);
  border-color: var(--green);
}

.btn-large {
  padding: 14px 28px;
  font-size: 15px;
}

.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   COMMON SECTION ELEMENTS
   ============================================================ */
.section { padding: 100px 0; position: relative; }
.section-tight { padding: 80px 0; }

.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}

.section-head-center {
  margin: 0 auto 64px;
  text-align: center;
}

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--green);
}

.section-head-center .section-eyebrow {
  display: inline-flex;
  justify-content: center;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-title .accent {
  color: var(--green);
  font-style: italic;
  font-weight: 600;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
}

.section-head-center .section-sub { margin: 0 auto; }

/* ============================================================
   PAGE HEADER (for sub-pages)
   ============================================================ */
.page-header {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(34, 197, 94, 0.06), transparent 70%);
  pointer-events: none;
}

.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--text-faint); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: var(--text-subtle); margin: 0 10px; }
.breadcrumb .current { color: var(--green); }

.page-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 900px;
}

.page-title .accent {
  color: var(--green);
  font-style: italic;
  font-weight: 600;
}

.page-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 720px;
}

/* ============================================================
   EYEBROW PILL
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-bright);
  background: rgba(34, 197, 94, 0.05);
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 340px;
  line-height: 1.65;
}

.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col ul { list-style: none; display: grid; gap: 10px; }

.footer-col a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a { color: var(--text-faint); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--green); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  color: var(--green);
}

/* ============================================================
   CTA BLOCK
   ============================================================ */
.cta-block {
  padding: 64px 48px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(34, 197, 94, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-block h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
}

.cta-block p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-block .btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s ease-out forwards;
}

.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.15s; }
.reveal:nth-child(3) { animation-delay: 0.25s; }
.reveal:nth-child(4) { animation-delay: 0.35s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HOME PAGE — HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--green);
  font-style: italic;
  font-weight: 600;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(34, 197, 94, 0.25));
}

.node-pulse { animation: nodePulse 2.4s ease-in-out infinite; }
.node-pulse:nth-child(2) { animation-delay: 0.3s; }
.node-pulse:nth-child(3) { animation-delay: 0.6s; }
.node-pulse:nth-child(4) { animation-delay: 0.9s; }
.node-pulse:nth-child(5) { animation-delay: 1.2s; }
.node-pulse:nth-child(6) { animation-delay: 1.5s; }

@keyframes nodePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.flow-line {
  stroke-dasharray: 4 8;
  animation: flow 6s linear infinite;
}

@keyframes flow { to { stroke-dashoffset: -200; } }

.orbit-ring {
  animation: rotate 40s linear infinite;
  transform-origin: center;
}

@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust {
  padding: 40px 0 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.trust-label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 32px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 56px;
  opacity: 0.7;
}

.trust-logos .vendor {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}

.trust-logos .vendor:hover { color: var(--green-bright); transform: translateY(-2px); }
.trust-logos .vendor .dim { color: var(--text-faint); font-weight: 500; }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 100px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-elev);
}

.stat {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}

.stat:last-child { border-right: none; }

.stat-number {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.pillar {
  position: relative;
  padding: 44px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.pillar:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.4;
}

.pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-strong);
}

.pillar h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.pillar p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.pillar-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.pillar-list li::before {
  content: '→';
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ============================================================
   CAPABILITIES GRID
   ============================================================ */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.cap {
  padding: 36px 30px;
  background: var(--bg-card);
  transition: background 0.3s;
}

.cap:hover { background: var(--bg-card-hover); }

.cap-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.cap h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.cap p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) { .capabilities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .capabilities { grid-template-columns: 1fr; } }

/* ============================================================
   WHY CHOOSE
   ============================================================ */
.why {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.why-cards { display: grid; gap: 14px; }

.why-card {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  transition: border-color 0.3s, transform 0.3s;
}

.why-card:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  border: 1px solid var(--border-strong);
}

.why-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.why-card p { font-size: 15px; color: var(--text-muted); }

@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent, var(--green), transparent, var(--green));
  background-size: 25% 100%;
  opacity: 0.3;
}

.step { position: relative; }

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.step h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.step p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } .process::before { display: none; } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] { border-color: var(--border-strong); }

.faq-item summary {
  padding: 22px 28px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--green);
  font-weight: 300;
  transition: transform 0.3s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .answer {
  padding: 0 28px 22px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ============================================================
   SERVICE PAGE — DETAILED SERVICES
   ============================================================ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-of-type { border-bottom: none; }

.service-block-meta {
  position: sticky;
  top: 100px;
}

.service-block-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.service-block-meta h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.service-block-meta p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.service-block-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-strong);
  color: var(--green);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.service-detail {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s, transform 0.3s;
}

.service-detail:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.service-detail-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--green);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.service-detail h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.service-detail p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-detail .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--green-bright);
  border-radius: 999px;
  letter-spacing: 0.3px;
}

@media (max-width: 900px) {
  .service-block { grid-template-columns: 1fr; gap: 32px; }
  .service-block-meta { position: static; }
  .service-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ENGAGEMENT MODELS
   ============================================================ */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.engagement {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.3s, transform 0.3s;
}

.engagement.featured {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06), var(--bg-card));
}

.engagement-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}

.engagement h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.engagement-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.engagement-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.engagement-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.engagement-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
}

@media (max-width: 900px) { .engagement-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT — STORY / VALUES
   ============================================================ */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-text p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.story-text p:first-of-type {
  font-size: 19px;
  color: var(--text);
}

.story-visual {
  position: relative;
  aspect-ratio: 1 / 1.1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.15), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(34, 197, 94, 0.1), transparent 50%);
}

.story-visual-content {
  position: relative;
  text-align: center;
  padding: 40px;
}

.story-visual-content .since {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.story-visual-content .year {
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -4px;
  background: linear-gradient(180deg, #fff, #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.story-visual-content .label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 40px; } }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.3s, transform 0.3s;
}

.value-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  border: 1px solid var(--border-strong);
  margin-bottom: 20px;
}

.value-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.value-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cert-card {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.cert-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.cert-card .cert-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.cert-card .cert-name {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) { .certs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .certs-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.industry-tag {
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  color: var(--text);
  transition: all 0.3s;
}

.industry-tag:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  color: var(--green-bright);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--bg-elev);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

.form-field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2322c55e'><path d='M4 6l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 15px;
}

.form-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 16px;
  text-align: center;
  line-height: 1.5;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-info-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  border: 1px solid var(--border-strong);
}

.contact-info-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-info-card .value {
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

.contact-info-card .value a:hover { color: var(--green-bright); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } .contact-form-wrap { padding: 28px; } .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   FORM STATES — LOADING, SUCCESS, ERROR
   ============================================================ */

/* Invalid field highlight */
.form-field input.invalid,
.form-field textarea.invalid,
.form-field select.invalid {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.04);
}

/* Honeypot — hidden from humans, visible to bots */
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Loading spinner inside button */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(5, 16, 5, 0.25);
  border-top-color: #051005;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.form-submit:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Inline error message */
.error-box {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 14px;
  line-height: 1.5;
}

.error-box.show { display: block; }

.error-box a {
  color: #fecaca;
  text-decoration: underline;
}

/* Success card replaces form on successful submission */
.success-box {
  display: none;
  padding: 56px 40px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(34, 197, 94, 0.03));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.success-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(34, 197, 94, 0.12), transparent 60%);
  pointer-events: none;
}

.success-box.show { display: block; }

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-accent);
  position: relative;
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-box h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  position: relative;
}

.success-box p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 460px;
  margin: 0 auto 24px;
  position: relative;
}

.success-box .ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
  letter-spacing: 1px;
  padding: 8px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  display: inline-block;
  position: relative;
}
