/* =========================================================
   FM Lean Design — futuristic theme
   Palette derived from the logo:
   teal #00515f · green #167c4a · lime #94d448 · charcoal #3b4248
   ========================================================= */

:root {
  /* Brand */
  --teal: #00515f;
  --teal-bright: #12b3c6;
  --green: #167c4a;
  --green-bright: #2fbf6b;
  --lime: #94d448;
  --charcoal: #3b4248;

  /* Surfaces */
  --bg: #070a0e;
  --bg-2: #0a0f15;
  --surface: #0d141b;
  --surface-2: #111a23;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(148, 212, 72, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);

  /* Text */
  --text: #e9f1ec;
  --muted: #93a6a0;
  --muted-2: #6f827c;

  /* Signature gradient (the logo swoosh) */
  --grad: linear-gradient(115deg, var(--teal-bright) 0%, var(--green-bright) 48%, var(--lime) 100%);
  --grad-soft: linear-gradient(115deg, rgba(18,179,198,.16), rgba(47,191,107,.14), rgba(148,212,72,.16));

  /* Shape */
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --maxw: 1160px;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(148,212,72,.18), 0 18px 50px -18px rgba(18,179,198,.4);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(18,179,198,.14), transparent 60%),
    radial-gradient(50% 45% at 10% 5%, rgba(47,191,107,.12), transparent 55%),
    radial-gradient(45% 40% at 50% 110%, rgba(148,212,72,.08), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 85%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

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

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--lime); color: #06210f; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  --pad: 13px 22px;
  display: inline-flex; align-items: center; gap: .5em;
  padding: var(--pad);
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-sm { --pad: 10px 18px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--grad);
  color: #052012;
  box-shadow: 0 10px 30px -10px rgba(47,191,107,.6), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(47,191,107,.75), inset 0 1px 0 rgba(255,255,255,.3); }

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border-color: var(--border-soft);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border); background: var(--glass-strong); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 12, 16, .72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border-soft);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.brand-chip {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(180deg, #fff, #eef3ee);
  box-shadow: 0 0 0 1px rgba(148,212,72,.35), 0 10px 24px -10px rgba(18,179,198,.5);
  overflow: hidden; flex: none;
}
.brand-chip img { width: 40px; height: 40px; border-radius: 9px; }
.brand-name { font-size: 1.12rem; letter-spacing: -.02em; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  color: var(--muted); font-size: .96rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-list a:hover, .nav-list a.active { color: var(--text); background: var(--glass); }
.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--border-soft);
  cursor: pointer; padding: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 22px;
  background: rgba(8, 12, 16, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu a { padding: 13px 12px; color: var(--text); border-radius: 10px; font-weight: 500; }
.mobile-menu a:hover { background: var(--glass); }
.mobile-menu .btn { margin-top: 8px; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; }
.hero-glow {
  position: absolute; z-index: 0; top: -20%; right: -10%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(18,179,198,.22), transparent 60%);
  filter: blur(30px); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "JetBrains Mono", monospace; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
  padding: 6px 14px; border: 1px solid var(--border-soft); border-radius: 999px; background: var(--glass);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .5; transform: scale(.8);} }

.hero h1 { font-size: clamp(2.5rem, 6vw, 4.05rem); font-weight: 700; margin-bottom: 22px; }
.lede { font-size: clamp(1.06rem, 2vw, 1.22rem); color: var(--muted); max-width: 42ch; margin: 0 0 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0; margin: 0; }
.hero-badges li { font-size: .9rem; color: var(--muted); display: flex; align-items: baseline; gap: 7px; }
.hero-badges strong { color: var(--lime); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.02rem; }

/* Hero app mockup */
.hero-visual { position: relative; }
.app-window {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow), var(--glow);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.hero-visual:hover .app-window { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.app-titlebar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,.02); }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3138; }
.tl-dot:nth-child(1) { background: #ef6a5e; } .tl-dot:nth-child(2) { background: #f5bd4f; } .tl-dot:nth-child(3) { background: #61c454; }
.app-title { margin-left: 10px; font-family: "JetBrains Mono", monospace; font-size: .78rem; color: var(--muted-2); }

.app-body { display: grid; grid-template-columns: 54px 1fr; min-height: 300px; }
.app-side { border-right: 1px solid var(--border-soft); padding: 18px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; background: rgba(0,0,0,.15); }
.side-item { width: 22px; height: 22px; border-radius: 7px; background: var(--glass-strong); }
.side-item.active { background: var(--grad); box-shadow: 0 0 16px rgba(47,191,107,.5); }

.app-main { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-stat { background: var(--glass); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden; }
.ms-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); }
.ms-val { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--text); }
.spark { height: 3px; border-radius: 3px; background: var(--grad); opacity: .8; margin-top: 4px; }

.chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 12px; background: var(--glass); border: 1px solid var(--border-soft); border-radius: 12px; }
.chart span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--lime), rgba(18,179,198,.35)); opacity: .85; transform-origin: bottom; animation: grow 1.1s var(--ease) both; }
.chart span:nth-child(odd) { background: linear-gradient(180deg, var(--green-bright), rgba(18,179,198,.3)); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.rows { display: flex; flex-direction: column; gap: 9px; }
.rows .row { height: 12px; border-radius: 6px; background: var(--glass-strong); }
.rows .row:nth-child(1) { width: 100%; } .rows .row:nth-child(2) { width: 82%; } .rows .row:nth-child(3) { width: 91%; }

.float-tag {
  position: absolute; z-index: 2;
  font-family: "JetBrains Mono", monospace; font-size: .78rem;
  padding: 9px 13px; border-radius: 11px;
  background: rgba(12, 18, 24, .82); backdrop-filter: blur(10px);
  border: 1px solid var(--border); color: var(--text);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.7);
  animation: floaty 5s ease-in-out infinite;
}
.tag-1 { top: 8%; left: -6%; }
.tag-2 { bottom: 12%; right: -8%; animation-delay: -2.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--border-soft); background: rgba(255,255,255,.015); }
.trust-inner { padding: 28px 24px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; text-align: center; }
.trust-label { font-family: "JetBrains Mono", monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin: 0; }
.trust-items { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.trust-item { color: var(--muted); font-size: .93rem; font-weight: 500; }
.sep { width: 5px; height: 5px; border-radius: 50%; background: var(--border); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.014), rgba(255,255,255,0)); border-block: 1px solid var(--border-soft); }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 16px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { opacity: .7; }

/* Services */
.service-card h3 { font-size: 1.32rem; margin-bottom: 12px; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--lime);
}
.svc-icon svg { width: 26px; height: 26px; }
.service-card p { color: var(--muted); margin: 0 0 18px; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.check-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: .95rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: .68rem; color: #052012; background: var(--grad); font-weight: 700;
}

/* Why / features */
.feature {
  padding: 26px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--border-soft);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s;
}
.feature:hover { transform: translateY(-5px); border-color: var(--border); background: var(--glass-strong); }
.feat-num { font-family: "JetBrains Mono", monospace; font-size: .82rem; color: var(--lime); opacity: .8; }
.feature h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Process timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.timeline-step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-soft); }
.timeline-step::after {
  content: ""; position: absolute; top: 50px; right: -22px; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.timeline-step:last-child::after { display: none; }
.ts-index {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--lime);
  background: var(--grad-soft); border: 1px solid var(--border);
}
.timeline-step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.timeline-step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Certifications */
.cert-card {
  padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-soft); position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.cert-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); opacity: .5;
}
.cert-card[data-level="apple"]::after { background: linear-gradient(90deg, #d0d3d7, #8b9096); }
.cert-card:hover { transform: translateY(-5px); border-color: var(--border); }
.cert-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cert-issuer { font-family: "JetBrains Mono", monospace; font-size: .78rem; letter-spacing: .05em; color: var(--muted); }
.cert-level {
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px; color: var(--muted);
  background: var(--glass-strong); border: 1px solid var(--border-soft);
}
.cert-level.lvl-expert { color: #052012; background: var(--grad); border-color: transparent; }
.cert-level.lvl-apple { color: var(--text); }
.cert-card h3 { font-size: 1.04rem; line-height: 1.3; margin-bottom: 10px; }
.cert-date { font-size: .82rem; color: var(--muted-2); margin: 0; font-family: "JetBrains Mono", monospace; }
.cert-cta { text-align: center; margin-top: 36px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 20px; }
.about-copy > p { color: var(--muted); margin: 0 0 18px; font-size: 1.05rem; }
.values { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value-icon { color: var(--lime); font-size: .9rem; margin-top: 5px; }
.value strong { display: block; font-family: "Space Grotesk", sans-serif; }
.value span { color: var(--muted); font-size: .94rem; }

.about-card {
  position: sticky; top: 100px;
  padding: 30px; border-radius: var(--radius-lg); text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.about-chip {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(180deg, #fff, #eef3ee);
  box-shadow: 0 0 0 1px rgba(148,212,72,.35), 0 16px 34px -14px rgba(18,179,198,.55);
}
.about-chip img { width: 72px; height: 72px; border-radius: 14px; }
.about-role { font-family: "Space Grotesk", sans-serif; font-weight: 600; margin: 0 0 22px; }
.about-stats { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.about-stats li { display: flex; flex-direction: column; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
.about-stats li:last-child { border-bottom: 0; padding-bottom: 0; }
.about-stats strong { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; color: var(--lime); }
.about-stats span { color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq-wrap { max-width: 800px; }
.faq-group { margin-bottom: 46px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group > h2 {
  font-size: 1.22rem; margin-bottom: 18px;
  display: flex; align-items: center; gap: 13px;
}
.faq-group > h2::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px;
  background: var(--grad); flex: none;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden;
  background: var(--glass); transition: border-color .3s;
}
.faq-item[open] { border-color: var(--border); }
.faq-item summary {
  cursor: pointer; padding: 20px 24px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--lime); transition: transform .3s var(--ease); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* Contact */
.contact-section { padding-bottom: clamp(70px, 9vw, 130px); }
.contact-shell {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow), var(--glow);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.contact-intro { padding: clamp(34px, 5vw, 56px); position: relative; }
.contact-intro::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: radial-gradient(70% 60% at 0% 0%, rgba(18,179,198,.16), transparent 60%);
  pointer-events: none;
}
.contact-intro > * { position: relative; z-index: 1; }
.contact-intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 16px; }
.contact-intro > p { color: var(--muted); margin: 0 0 28px; }
.contact-methods { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-methods li { display: flex; align-items: center; gap: 13px; }
.cm-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--lime); flex: none; }
.contact-methods a { color: var(--text); font-weight: 500; transition: color .2s; }
.contact-methods a:hover { color: var(--lime); }

.contact-form { padding: clamp(34px, 5vw, 56px); background: rgba(0,0,0,.22); display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .86rem; font-weight: 500; color: var(--muted); font-family: "Space Grotesk", sans-serif; }
.field .opt { color: var(--muted-2); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--border-soft); color: var(--text);
  font-family: inherit; font-size: .98rem; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--border); background: var(--glass-strong); box-shadow: 0 0 0 3px rgba(148,212,72,.12); }
.field textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { margin-top: 6px; }
.form-note { font-size: .9rem; margin: 4px 0 0; min-height: 1.2em; text-align: center; }
.form-note.ok { color: var(--lime); }
.form-note.err { color: #ef8f7e; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: rgba(255,255,255,.012); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin: 18px 0 0; font-size: .96rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 11px; }
.footer-nav h4, .footer-contact h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin: 0 0 6px; font-family: "JetBrains Mono", monospace; font-weight: 500; }
.footer-nav a, .footer-contact a { color: var(--muted); font-size: .96rem; transition: color .2s; width: fit-content; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid var(--border-soft); }
.footer-bottom p { margin: 0; color: var(--muted-2); font-size: .85rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px; cursor: pointer;
  background: var(--grad); color: #052012; border: none; font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 12px 30px -10px rgba(47,191,107,.6);
  opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; padding: clamp(38px, 6vw, 76px) 0 clamp(28px, 4vw, 48px); overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 700; margin-bottom: 18px; }
.page-hero .lede { max-width: 62ch; margin-bottom: 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 22px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; font-size: .87rem; }
.breadcrumb li { color: var(--muted-2); display: flex; align-items: center; gap: 9px; }
.breadcrumb li + li::before { content: "/"; color: var(--border); }
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--lime); }

/* ---------- Service detail rows ---------- */
.svc-detail { display: grid; grid-template-columns: 1.35fr .65fr; gap: 44px; align-items: start; }
.svc-detail.reverse .svc-detail-copy { order: 2; }
.svc-detail.reverse .svc-detail-aside { order: 1; }
.svc-detail-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 16px; }
.svc-detail-copy > p { color: var(--muted); margin: 0 0 22px; font-size: 1.05rem; }
.svc-detail-aside {
  padding: 26px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-soft);
}
.svc-detail-aside h3 { font-size: 1.02rem; margin-bottom: 18px; }
.svc-detail-aside .about-stats { margin-bottom: 0; }
.svc-detail-aside .btn { margin-top: 20px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; padding: clamp(38px, 5vw, 62px) 28px;
  border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); box-shadow: var(--shadow), var(--glow);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, rgba(18,179,198,.14), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Contact note ---------- */
.contact-note {
  margin-top: 26px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--border-soft);
}
.contact-note strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: .95rem; }
.contact-note span { color: var(--muted); font-size: .9rem; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chart span, .float-tag, .eyebrow .dot { animation: none; }
  .app-window { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-card { position: static; }
  .svc-detail { grid-template-columns: 1fr; gap: 30px; }
  .svc-detail.reverse .svc-detail-copy,
  .svc-detail.reverse .svc-detail-aside { order: initial; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-step::after { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .contact-shell { grid-template-columns: 1fr; }
  .trust-items { gap: 12px; }
  .sep { display: none; }
  .float-tag { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}
