/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #3a7fb7;
  --blue-dark: #2d6a9a;
  --green: #076951;
  --green-dark: #055541;
  --blue-soft: #eaf3f9;
  --green-soft: #e8f5f1;

  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --radius: 12px;
  --radius-lg: 16px;
  --max: 1040px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 28px rgba(15, 23, 42, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--green); }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.section {
  padding-block: 4rem;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.7rem;
}
.label::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
h1 { font-size: clamp(1.8rem, 4.5vw, 2.25rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); margin-bottom: 0.7rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.3rem; font-weight: 650; letter-spacing: -0.02em; }
p + p { margin-top: 0.8rem; }
.muted { color: var(--text-muted); }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 248, 0.8);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.nav-logo {
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--blue); text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
}
.nav-cta {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  margin-left: 0.2rem;
  background: var(--blue);
  color: #fff !important;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

@media (min-width: 640px) {
  .nav-cta {
    padding: 0.45rem 0.95rem;
    font-size: 0.875rem;
    margin-left: 0.35rem;
    border-radius: 8px;
  }
  .nav-cta:hover {
    background: var(--green);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
  }
}

/* ===== HERO ===== */
.hero {
  padding-block: 4.25rem 3rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(58, 127, 183, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(7, 105, 81, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.75rem;
  }
}
.hero h1 {
  margin-bottom: 0.85rem;
  max-width: none;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 40ch;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.hero-meta .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-meta .tag:first-child {
  background: var(--blue-soft);
  border-color: transparent;
  color: var(--blue-dark);
}
.hero-meta .tag:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  display: none;
  position: relative;
  height: 360px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, #f8fafc 0%, #eef4f9 45%, #e8f2ef 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero-visual { display: block; }
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,127,183,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,127,183,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hv-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
  animation: hv-orb 7s var(--ease) infinite alternate;
}
.hv-orb.o1 {
  width: 140px; height: 140px;
  background: rgba(58, 127, 183, 0.28);
  top: -10%; right: -5%;
}
.hv-orb.o2 {
  width: 110px; height: 110px;
  background: rgba(7, 105, 81, 0.22);
  bottom: -8%; left: -5%;
  animation-delay: -2.5s;
}
.hv-orb.o3 {
  width: 70px; height: 70px;
  background: rgba(58, 127, 183, 0.18);
  top: 40%; left: 40%;
  animation-delay: -4s;
  animation-duration: 9s;
}
.hv-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hv-lines path {
  fill: none;
  stroke-width: 1.75;
  stroke-dasharray: 5 7;
  animation: hv-dash 11s linear infinite;
}
.hv-lines .p1 { stroke: rgba(58, 127, 183, 0.45); }
.hv-lines .p2 { stroke: rgba(7, 105, 81, 0.4); animation-direction: reverse; animation-duration: 9s; }
.hv-lines .p3 { stroke: rgba(100, 116, 139, 0.35); animation-duration: 13s; }
.hv-lines .p4 { stroke: rgba(58, 127, 183, 0.3); animation-direction: reverse; animation-duration: 15s; }
.hero-visual-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hv-card {
  position: absolute;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  animation: hv-float 4.8s var(--ease) infinite;
  white-space: nowrap;
}
.hv-card .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hv-card .sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.hv-card.stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.hv-card.c1 { top: 12%; left: 8%; animation-delay: 0s; }
.hv-card.c1 .dot { background: var(--blue); box-shadow: 0 0 0 3px rgba(58,127,183,0.2); }
.hv-card.c2 { top: 14%; right: 8%; animation-delay: -1s; animation-duration: 5.2s; }
.hv-card.c2 .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(7,105,81,0.2); }
.hv-card.c3 { bottom: 14%; left: 10%; animation-delay: -2s; animation-duration: 5.6s; }
.hv-card.c3 .dot { background: #64748b; box-shadow: 0 0 0 3px rgba(100,116,139,0.18); }
.hv-card.c4 { bottom: 16%; right: 10%; animation-delay: -3s; animation-duration: 5s; }
.hv-card.c4 .dot { background: var(--blue); box-shadow: 0 0 0 3px rgba(58,127,183,0.15); }
.hv-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.hv-center {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow:
    0 8px 28px rgba(58, 127, 183, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  animation: hv-pulse 3s var(--ease) infinite;
  position: relative;
}
.hv-center::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1.5px solid rgba(58, 127, 183, 0.25);
  animation: hv-ring 3s var(--ease) infinite;
}
.hv-center svg {
  width: 30px; height: 30px;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.hv-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hv-ping {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(7, 105, 81, 0.5);
  animation: hv-ping 2.4s var(--ease) infinite;
}
.hv-ping.p1 { top: 28%; left: 48%; animation-delay: 0s; }
.hv-ping.p2 { top: 55%; left: 72%; animation-delay: 0.6s; }
.hv-ping.p3 { top: 62%; left: 30%; animation-delay: 1.2s; }
@keyframes hv-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes hv-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes hv-ring {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.12); }
}
@keyframes hv-dash {
  to { stroke-dashoffset: -140; }
}
@keyframes hv-orb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(14px, -12px) scale(1.08); }
}
@keyframes hv-ping {
  0% { box-shadow: 0 0 0 0 rgba(7, 105, 81, 0.45); opacity: 1; }
  70% { box-shadow: 0 0 0 12px rgba(7, 105, 81, 0); opacity: 0.6; }
  100% { box-shadow: 0 0 0 0 rgba(7, 105, 81, 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-card, .hv-center, .hv-center::before, .hv-lines path, .hv-orb, .hv-ping {
    animation: none !important;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(58, 127, 183, 0.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(58, 127, 183, 0.4);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 4px rgba(58, 127, 183, 0.25);
}
.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(7, 105, 81, 0.28);
}
.btn-green:hover {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(7, 105, 81, 0.38);
  transform: translateY(-1px);
}

/* ===== WORK ===== */
.cases {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}
.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.case:hover {
  border-color: rgba(58, 127, 183, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.case-meta {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.case p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.55;
}
.case-result {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--green-soft);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--green-dark);
  font-weight: 650;
}

/* ===== PROCESS ===== */
.steps {
  margin-top: 1.5rem;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.step:last-child { border-bottom: none; }
.step:hover { background: rgba(58, 127, 183, 0.03); }
.step-num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
  box-shadow: 0 2px 6px rgba(7, 105, 81, 0.25);
}
.step h3 { margin-bottom: 0.2rem; }
.step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== ABOUT ===== */
.about-text { max-width: 58ch; }
.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
}
.about-text p:first-of-type {
  color: var(--text);
  font-size: 1.05rem;
}
.not-for {
  margin-top: 1.5rem;
  padding: 1.05rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}
.not-for::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
}
.not-for strong {
  color: var(--text);
  font-weight: 650;
}

/* ===== CTA ===== */
.cta-box {
  background: transparent;
  color: #0f172a;
  border-radius: var(--radius-lg);
  padding: 3rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}
.cta-box::before {
  display: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
  color: #0f172a;
  margin-bottom: 0.55rem;
  font-size: clamp(1.3rem, 3vw, 1.5rem);
}
.cta-box p {
  color: #475569;
  max-width: 40ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.cta-box .btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transform: none;
}
.cta-box .btn-primary:hover {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.cta-secondary {
  font-size: 0.875rem;
  color: var(--blue);
  font-weight: 500;
}
.cta-secondary a {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s;
}
.cta-secondary a:hover { color: #334155; }

/* ===== FOOTER ===== */
footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
footer a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
footer a:hover { color: var(--blue); }

/* ===== PLACEHOLDER HINTS ===== */
.placeholder-hint {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
  vertical-align: middle;
  font-style: normal;
  letter-spacing: 0;
}

/* ===== RESPONSIVE UTILITIES / OVERRIDES ===== */
@media (max-width: 640px) {
  .cta-box {
    padding: 2rem 0.75rem;
  }
}

@media (max-width: 400px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ===== REVIEWS CAROUSEL ===== */
.carousel-section {
  margin-top: 2.5rem;
}
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.carousel-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar {
  display: none;
}
.carousel-slide {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 0.5rem);
  }
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.review-card:hover {
  border-color: rgba(58, 127, 183, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.review-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}
.review-author {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text);
}
.carousel-controls {
  display: flex;
  gap: 0.4rem;
}
.carousel-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-dark);
}