/* CoAxn redesign — OpenXcell structure + CoAxn brand */
:root {
  --blue: #00A651;
  --blue-dark: #008C44;
  --blue-deep: #006B34;
  --cyan: #6EE7A8;
  --navy: #0b1220;
  --slate: #1e293b;
  --muted: #64748b;
  --text: #334155;
  --bg: #ffffff;
  --bg-soft: #F0F9F4;
  --bg-softer: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 166, 81, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Topbar */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 0.55rem 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar a {
  color: #e2e8f0;
  transition: color 0.2s;
}

.topbar a:hover {
  color: #fff;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #475569;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--slate);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(0, 166, 81, 0.35);
}

.logo-text span {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(0, 166, 81, 0.28);
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: 0.25s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 166, 81, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(0, 166, 81, 0.4);
}

.btn-ghost {
  background: #fff;
  color: var(--slate);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn.full {
  width: 100%;
}

.text-link {
  color: var(--blue);
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* Eyebrow + section heads */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.eyebrow.dark {
  color: var(--blue);
}

.eyebrow.light {
  color: var(--cyan);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  color: var(--slate);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head.light h2 {
  color: #fff;
}

.section-head.light p {
  color: #94a3b8;
}

.gradient-text {
  background: linear-gradient(120deg, var(--blue) 0%, #34D399 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(0, 166, 81, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(110, 231, 168, 0.1), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 166, 81, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--slate);
  margin: 0 0 1.25rem;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 1.75rem;
}

.hero-lead strong {
  color: var(--slate);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 480px;
}

.metric {
  padding: 0.85rem 0 0;
  border-top: 2px solid var(--blue);
}

.metric strong {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--slate);
  line-height: 1.1;
}

.metric span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Hero visual cards */
.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.main-card {
  padding: 1.35rem;
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.pipe-step {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  padding: 0.45rem 0.2rem;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
}

.pipe-step.done {
  background: #dcfce7;
  color: #15803d;
}

.pipe-step.active {
  background: rgba(0, 166, 81, 0.12);
  color: var(--blue);
  outline: 1px solid rgba(0, 166, 81, 0.35);
}

.code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  background: var(--navy);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.c-key { color: #c084fc; }
.c-fn { color: #34D399; }
.c-str { color: #A7F3D0; }
.c-num { color: #fbbf24; }

.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-stats span {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}

.float-card.one {
  top: 8%;
  right: -4%;
  animation-delay: 0s;
}

.float-card.two {
  bottom: 8%;
  left: -6%;
  animation-delay: 1.2s;
}

.float-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--slate);
}

.float-card span {
  font-size: 0.72rem;
  color: var(--muted);
}

.mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.mini-icon.blue {
  background: rgba(0, 166, 81, 0.12);
}

.mini-icon.cyan {
  background: rgba(110, 231, 168, 0.18);
  color: var(--blue-deep);
  font-weight: 800;
}

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

/* Trust marquee */
.trust {
  padding: 1.75rem 0;
  border-block: 1px solid var(--border);
  background: #fff;
}

.trust-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.trust-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: #94a3b8;
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* About */
.about {
  padding: 6rem 0;
  background: var(--bg-softer);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.about-letter h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--slate);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.about-letter .lead {
  font-size: 1.1rem;
  color: var(--slate);
}

.about-letter p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.mission-box {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0 1.75rem;
  box-shadow: var(--shadow);
}

.mission-box h3 {
  margin: 0 0 0.5rem;
  color: var(--slate);
  font-size: 1rem;
}

.mission-box p {
  margin: 0;
  font-size: 0.95rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.stat-card strong {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--blue);
  line-height: 1;
}

.stat-card > span {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
}

.stat-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card.accent {
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  border: none;
  color: #fff;
}

.stat-card.accent strong {
  color: #fff;
  font-size: 1.5rem;
}

.stat-card.accent p {
  color: rgba(255, 255, 255, 0.85);
}

/* Services */
.services {
  padding: 6rem 0;
}

.service-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1rem;
  min-height: 420px;
}

.service-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-tab {
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s;
}

.service-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--slate);
}

.service-tab.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.service-panels {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-panel {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.service-panel.active {
  display: grid;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.panel-copy h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--slate);
  margin: 0 0 0.75rem;
}

.panel-copy > p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--slate);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* Service panel visuals */
.panel-visual {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.phone {
  width: 150px;
  height: 280px;
  border-radius: 28px;
  background: var(--navy);
  padding: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.phone-notch {
  width: 48px;
  height: 6px;
  background: #334155;
  border-radius: 999px;
  margin: 4px auto 10px;
}

.phone-screen {
  background: linear-gradient(180deg, #0f172a, #1e293b);
  border-radius: 20px;
  height: calc(100% - 20px);
  padding: 1rem 0.85rem;
}

.app-row,
.app-cta {
  height: 10px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.35);
  margin-bottom: 0.65rem;
}

.app-row.short {
  width: 60%;
  background: rgba(148, 163, 184, 0.35);
}

.app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.app-card {
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(0, 166, 81, 0.5), rgba(110, 231, 168, 0.25));
}

.app-cta {
  margin-top: auto;
  background: var(--blue);
  height: 28px;
  border-radius: 8px;
}

.browser-mock {
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.browser-bar {
  background: #f1f5f9;
  padding: 0.55rem 0.75rem;
  display: flex;
  gap: 0.35rem;
}

.browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 160px;
  background: #fff;
}

.b-sidebar {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}

.b-main {
  padding: 0.85rem;
}

.b-line {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.b-line.short {
  width: 50%;
}

.b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.b-grid div {
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.15), rgba(110, 231, 168, 0.2));
}

.ai-nodes {
  position: relative;
  width: 280px;
  height: 200px;
}

.node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.node-lines path {
  fill: none;
  stroke: rgba(0, 166, 81, 0.35);
  stroke-width: 2;
}

.node {
  position: absolute;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  box-shadow: var(--shadow);
}

.n1 { top: 20px; left: 20px; }
.n2 { top: 80px; left: 105px; }
.n3 { top: 20px; right: 20px; }
.n4 { bottom: 20px; right: 20px; }

.stack-layers {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.layer {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  text-align: center;
}

.layer:nth-child(1) { background: #34D399; }
.layer:nth-child(2) { background: var(--blue); }
.layer:nth-child(3) { background: var(--blue-dark); }
.layer:nth-child(4) { background: var(--navy); }

.devops-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.flow-box {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--slate);
}

.flow-box.highlight {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.flow-arrow {
  color: var(--muted);
  font-weight: 700;
}

/* Solutions */
.solutions {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--navy) 0%, #0f1c33 100%);
  color: #e2e8f0;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.solution-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: 0.25s;
}

.solution-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(52, 211, 153, 0.35);
}

.sol-icon {
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}

.solution-card h3 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
}

.solution-card p {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.92rem;
}

.sol-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(110, 231, 168, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

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

/* Work */
.work {
  padding: 6rem 0;
  background: var(--bg-softer);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.work-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.work-card.large {
  grid-row: span 2;
  background: linear-gradient(160deg, #fff 0%, #E8F8EF 100%);
  display: flex;
  flex-direction: column;
}

.work-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0, 166, 81, 0.1);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  width: fit-content;
}

.work-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--slate);
  margin: 0 0 0.65rem;
}

.work-card p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tech-pills span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.pointers {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.pointers li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 500;
}

/* Impact */
.impact {
  padding: 6rem 0;
  background: var(--navy);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.impact-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.impact-item strong {
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.35rem;
}

.impact-item h4 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: 1.05rem;
}

.impact-item p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Tech stack */
.tech {
  padding: 6rem 0;
}

.tech-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.tech-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.tech-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.tech-panel {
  display: none;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.tech-panel.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.tech-panel span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  color: var(--slate);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Industries */
.industries {
  padding: 6rem 0;
  background: linear-gradient(180deg, #0f1c33, var(--navy));
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.industry-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: 0.25s;
}

.industry-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateY(-3px);
}

.industry-card span {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.65rem;
}

.industry-card h3 {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Process */
.process {
  padding: 6rem 0;
  background: var(--bg-softer);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  color: rgba(0, 166, 81, 0.2);
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  color: var(--slate);
  font-family: var(--display);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */
.contact {
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--slate);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.contact-info > p {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-list a,
.contact-list span {
  color: var(--slate);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--blue);
}

.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  color: var(--slate);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  background: #fff;
  color: var(--slate);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

.form-note {
  margin: 0.85rem 0 0;
  color: #15803d;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: #070c16;
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  margin: 0;
  max-width: 280px;
  font-size: 0.92rem;
}

.footer h4 {
  color: #fff;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.footer a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.to-top:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 420px;
    margin: 0 auto;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .service-tab {
    white-space: nowrap;
  }

  .service-panel,
  .service-panel.active {
    grid-template-columns: 1fr;
  }

  .solution-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-card.large {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 32px) 1rem auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.15rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.25s;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav a {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
  }

  .nav a:hover {
    background: var(--bg-soft);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .float-card.one {
    right: 0;
  }

  .float-card.two {
    left: 0;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .solution-grid,
  .work-grid,
  .impact-grid,
  .process-steps,
  .industry-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-tagline {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* ── Logo ───────────────────────────────── */
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img-light {
  /* white bg logo works on dark footer with slight invert? keep as-is with bg pill */
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  height: 48px;
}
.logo {
  display: inline-flex;
  align-items: center;
}

/* ── Blog listing ───────────────────────── */
.blog-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, #F0F9F4 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--slate);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.blog-hero p {
  color: var(--muted);
  max-width: 560px;
  margin: 0;
  font-size: 1.05rem;
}
.blog-layout {
  padding: 3rem 0 5rem;
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.blog-filters a {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  transition: 0.2s;
}
.blog-filters a:hover,
.blog-filters a.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
  box-shadow: var(--shadow);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 166, 81, 0.35);
}
.blog-card-cover {
  height: 160px;
  background: linear-gradient(135deg, #00A651 0%, #006B34 60%, #0b1220 100%);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.9);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.blog-cat {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-card h2,
.blog-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--slate);
  line-height: 1.3;
}
.blog-card h2 a,
.blog-card h3 a {
  color: inherit;
}
.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--blue);
}
.blog-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
  flex: 1;
}
.blog-card .read-more {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
}
.blog-empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  grid-column: 1 / -1;
}

/* Home blog teaser */
.home-blog {
  padding: 6rem 0;
  background: var(--bg-softer);
}
.home-blog .section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  max-width: none;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Single post ────────────────────────── */
.post-page {
  padding: 3rem 0 5rem;
}
.post-header {
  max-width: 760px;
  margin: 0 auto 2rem;
}
.post-header h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  color: var(--slate);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1rem;
}
.post-header .blog-meta {
  margin-bottom: 0;
}
.post-article {
  max-width: 760px;
  margin: 0 auto;
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.post-content h2 {
  font-family: var(--display);
  color: var(--slate);
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}
.post-content h3 {
  color: var(--slate);
  margin: 1.5rem 0 0.5rem;
}
.post-content p { margin: 0 0 1.1rem; }
.post-content ul, .post-content ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}
.post-content li { margin-bottom: 0.35rem; }
.post-content a { color: var(--blue); font-weight: 600; }
.post-content a:hover { text-decoration: underline; }
.post-content strong { color: var(--slate); }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}
.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}
.post-content th {
  background: var(--bg-soft);
  color: var(--slate);
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.post-tags span {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
}
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-posts h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--slate);
  margin: 0 0 1.25rem;
}

/* ── Admin ──────────────────────────────── */
.admin-body {
  background: #f4f7f5;
  min-height: 100vh;
}
.admin-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.admin-top h1 {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--slate);
  margin: 0;
}
.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-published {
  background: #dcfce7;
  color: #15803d;
}
.badge-draft {
  background: #fef3c7;
  color: #b45309;
}
.admin-row-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.btn-sm {
  padding: 0.4rem 0.75rem !important;
  font-size: 0.8rem !important;
}
.btn-danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
  box-shadow: none !important;
}
.btn-secondary {
  background: #fff !important;
  color: var(--slate) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}
.flash {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.flash-success {
  background: #dcfce7;
  color: #15803d;
}
.flash-error {
  background: #fee2e2;
  color: #b91c1c;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 166, 81, 0.12), transparent),
    #f4f7f5;
}
.login-card {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.login-card .logo-img {
  height: 48px;
  margin: 0 auto 1.25rem;
}
.login-card h1 {
  text-align: center;
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--slate);
}
.login-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.form-stack label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.9rem;
}
.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--slate);
}
.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}
.form-stack textarea {
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.55;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}
.admin-form-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.nav a.active {
  color: var(--blue);
}

.page-404 {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}
.page-404 h1 {
  font-family: var(--display);
  font-size: 3rem;
  color: var(--blue);
  margin: 0;
}
.page-404 p {
  color: var(--muted);
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; }
}

/* ── Transparent logo polish ────────────── */
.logo-img {
  height: 44px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  background: transparent !important;
}
.logo-img-footer {
  height: 48px;
  max-width: 160px;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
}
.logo-img-light {
  background: transparent !important;
  padding: 0;
}

/* ── Dynamic hero extras ────────────────── */
.live-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #15803d;
  background: #dcfce7;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.card-header {
  width: 100%;
}
.tech-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tech-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-deep);
  background: rgba(0, 166, 81, 0.1);
  border: 1px solid rgba(0, 166, 81, 0.2);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  animation: chipIn 0.35s ease;
}
@keyframes chipIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.card-stats em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-card.scene-pulse {
  animation: scenePulse 0.4s ease;
}
@keyframes scenePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

/* ── Dynamic tech panel ─────────────────── */
.tech-dynamic {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.tech-dynamic-copy h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  color: var(--slate);
  font-size: 1.25rem;
}
.tech-dynamic-copy p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.tech-panel.fade-swap {
  animation: fadeIn 0.35s ease;
}
#techPanelItems {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: transparent;
  border: none;
  padding: 0;
}

/* ── Rich case studies ──────────────────── */
.case-grid {
  grid-template-columns: 1.15fr 1fr 1fr;
}
.case-rich .case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.case-rich .case-metrics.compact {
  grid-template-columns: 1fr 1fr;
}
.case-metrics div {
  background: rgba(0, 166, 81, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.55rem;
  text-align: center;
}
.case-metrics strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--blue);
  line-height: 1.1;
}
.case-metrics span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.work-card.case-rich {
  display: flex;
  flex-direction: column;
}
.work-card.case-rich .pointers {
  margin-top: auto;
}

@media (max-width: 1024px) {
  .case-grid {
    grid-template-columns: 1fr 1fr;
  }
  .work-card.large.case-rich {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Testimonials (single-slide carousel) ─ */
.testimonials {
  padding: 3.5rem 0;
  background: var(--bg-softer);
  position: relative;
  overflow: hidden;
}

.testimonials-head.section-head,
.testimonials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
  max-width: none;
}

.testimonials-head > div:first-child {
  min-width: 0;
  flex: 1;
}

.testimonials-head h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}

.testimonials-head p {
  margin: 0;
  max-width: 34rem;
  font-size: 0.95rem;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.t-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--slate);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s;
  box-shadow: var(--shadow);
}

.t-nav:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--bg-soft);
}

.t-nav:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.t-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.25rem;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: 0.25s;
}

.t-dot.active {
  width: 22px;
  background: var(--blue);
}

.t-dot:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.testimonials-slider {
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: pan-y;
}

.testimonials-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-card.google-review {
  background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
}

.g-review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.g-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5f6368;
  background: #f1f3f4;
  border-radius: 999px;
  padding: 0.28rem 0.6rem 0.28rem 0.45rem;
  flex-shrink: 0;
}

.g-logo {
  display: block;
}

.g-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.g-rating .g-stars {
  color: #fbbc04;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.g-rating strong {
  color: var(--slate);
  font-weight: 700;
}

.testimonial-stars {
  color: #fbbc04;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
  line-height: 1;
}

.testimonial-card blockquote {
  margin: 0;
}

.testimonial-card blockquote p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 500;
  max-width: 52rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, #4285f4, #34a853);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.testimonial-author cite {
  display: block;
  font-style: normal;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a73e8;
  line-height: 1.25;
}

.testimonial-author span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.12rem;
  font-weight: 500;
}

.testimonials-footer {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
}

.g-all-reviews {
  font-weight: 600;
}

@media (max-width: 768px) {
  .testimonials {
    padding: 2.75rem 0;
  }

  .testimonials-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-card {
    padding: 1.15rem 1.15rem 1.1rem;
  }

  .testimonial-card blockquote p {
    font-size: 0.95rem;
  }
}

/* ── Floating chatbot ───────────────────── */
.chatbot-root {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  font-family: var(--font);
}
.chatbot-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #00A651, #006B34);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 166, 81, 0.4);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chatbot-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0, 166, 81, 0.5);
}
.chatbot-fab.is-open {
  background: var(--slate);
}
.chatbot-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 166, 81, 0.5);
  animation: fabPulse 2s infinite;
  pointer-events: none;
}
.chatbot-fab.is-open .chatbot-fab-pulse {
  display: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}
.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(380px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 120px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Critical: keep panel closed when hidden (display:flex would override default [hidden]) */
.chatbot-panel[hidden] {
  display: none !important;
}
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #00A651, #008C44);
  color: #fff;
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.chatbot-header-info img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  padding: 4px;
}
.chatbot-header-info strong {
  display: block;
  font-size: 0.95rem;
}
.chatbot-header-info span {
  font-size: 0.72rem;
  opacity: 0.9;
}
.chatbot-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f7faf8;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.chat-bubble {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: fadeIn 0.25s ease;
}
.chat-bubble.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--slate);
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chatbot-input-row {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chatbot-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-size: 0.9rem;
}
.chatbot-input-row input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}
.chatbot-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem 0.9rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chat-quick-btn {
  border: 1px solid rgba(0, 166, 81, 0.3);
  background: rgba(0, 166, 81, 0.08);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s;
}
.chat-quick-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.footer-address {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.35rem;
  max-width: 260px;
}
