/* ============================================================
   KERDIA Online Solutions v2
   Dark theme · coral accent (from brand logo) · Sora + Inter
   ============================================================ */

:root {
  --bg: #0b101b;
  --bg-soft: #101726;
  --surface: #151d2f;
  --surface-2: #1a2338;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef1f7;
  --text-dim: #9aa5ba;
  --accent: #f26651;
  --accent-2: #fc4236;
  --accent-soft: rgba(242, 102, 81, 0.14);
  --grad: linear-gradient(120deg, #f26651, #fc4236 55%, #ff8a5c);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  /* Always reserve the vertical scrollbar's space. Without this, the scrollbar
     appears only once content becomes tall, shrinking the page width by ~15px
     for a frame and re-centering the whole hero — the "jerk" seen on reload. */
  scrollbar-gutter: stable;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

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

::selection { background: var(--accent); color: #fff; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 1001;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled {
  background: rgba(11, 16, 27, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 29px; height: 30px;
  background: url(../images/logo.png) no-repeat 0 0;
  background-size: 150px 30px;
}
.brand-text {
  width: 108px; height: 30px;
  background: url(../images/logo_white.png) no-repeat -42px 0;
  background-size: 150px 30px;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta).active::after { width: 100%; }

.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(242, 102, 81, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(242, 102, 81, 0.5); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  /* promote to its own layer so the (expensive) blur is rasterised once and
     only translated each frame — avoids per-frame re-blur jank on load */
  will-change: transform;
  transform: translateZ(0);
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; background: rgba(242, 102, 81, 0.35); top: -140px; right: -120px; }
.orb-2 { width: 380px; height: 380px; background: rgba(62, 130, 195, 0.28); bottom: -120px; left: -100px; animation-delay: -6s; }
.orb-3 { width: 260px; height: 260px; background: rgba(255, 138, 92, 0.22); top: 40%; left: 45%; animation-delay: -11s; }
/* translate-only (no scale) so the blurred layer never needs re-rasterising */
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(46px, -34px, 0); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
/* grid/flex items default to min-width:auto, which lets the code card's long
   lines stretch the whole hero wider than the screen (cutting content off on
   the right). min-width:0 lets them shrink so overflow is contained instead. */
.hero-copy, .hero-visual { min-width: 0; }

.hero-badge {
  display: inline-block;
  max-width: 100%;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(242, 102, 81, 0.3);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 34px;
}
.typed-wrap { display: block; margin-top: 6px; font-weight: 600; color: var(--text); min-height: 1.7em; }
#typed { color: var(--accent); }
.typed-cursor { color: var(--accent); animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(242, 102, 81, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(242, 102, 81, 0.55); }
.btn-primary svg { transition: transform 0.25s ease; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }

.hero-stats {
  display: flex;
  gap: 44px 40px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num, .stat-plus {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  display: inline;
}
/* equal-width digits so the counting number never changes width */
.stat-num { color: var(--text); font-variant-numeric: tabular-nums; }
.stat-plus { color: var(--accent); }
.stat > .stat-num { display: inline-block; }
.stat { flex-direction: row; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.stat-label { width: 100%; font-size: 0.85rem; color: var(--text-dim); margin-top: 2px; }

/* hero visual */
.hero-visual { position: relative; }
.code-card {
  background: rgba(21, 29, 47, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  overflow: hidden;
  max-width: 100%;
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.code-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.code-card-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c3853; }
.code-card-bar span:nth-child(1) { background: #ff5f57; }
.code-card-bar span:nth-child(2) { background: #ffbd2e; }
.code-card-bar span:nth-child(3) { background: #28c840; }
.code-card-bar em { margin-left: 10px; font-style: normal; font-size: 0.8rem; color: var(--text-dim); }
.code-card-body {
  padding: 22px 24px;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.85;
  overflow-x: auto;
}
.c-key { color: #c792ea; }
.c-var { color: #82aaff; }
.c-prop { color: #eef1f7; }
.c-str { color: #c3e88d; }
.c-num { color: #f78c6c; }
.c-fn  { color: #ffcb6b; }
.c-cmt { color: #5c6b8a; }

.float-chip {
  position: absolute;
  background: rgba(21, 29, 47, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  animation: floaty 5s ease-in-out infinite;
}
.chip-1 { top: -22px; right: 8%; animation-delay: 0s; }
.chip-2 { bottom: 18%; left: -26px; animation-delay: -1.6s; }
.chip-3 { bottom: -20px; right: 16%; animation-delay: -3.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--text-dim);
  border-radius: 999px;
  opacity: 0.6;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 4px;
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section:nth-of-type(even) { background: var(--bg-soft); }

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(242, 102, 81, 0.45); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); background: var(--grad); color: #fff; }
.service-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; color: var(--text-dim); }

/* ---------- process ---------- */
.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.process-step:hover { transform: translateY(-6px); border-color: rgba(242, 102, 81, 0.4); }
.step-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
  display: block;
  margin-bottom: 12px;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { font-size: 0.92rem; color: var(--text-dim); }

/* ---------- work / portfolio ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 12 / 7;
  display: block;
}
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.6s ease;
}
.work-card:hover img { transform: scale(1.08); filter: brightness(0.45) saturate(1.1); }
.work-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(transparent, rgba(7, 10, 18, 0.92));
  transform: translateY(30%);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.work-card:hover .work-overlay { transform: translateY(0); opacity: 1; }
.work-overlay h3 { font-size: 1.1rem; margin-bottom: 4px; }
.work-overlay span { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.work-more { text-align: center; margin-top: 40px; color: var(--text-dim); }
.work-more a { color: var(--accent); font-weight: 600; }
.work-more a:hover { text-decoration: underline; }

/* ---------- testimonials ---------- */
.slider {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.slides {
  position: relative;
  min-height: 320px;
  /* inactive slides are shifted +48px for the slide-in effect; clip so they
     don't add horizontal scroll on narrow screens. Vertical padding keeps
     the active slide's shadow from being cut. */
  overflow: hidden;
  margin: -10px;
  padding: 10px;
}
.slide {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 48px 52px 42px;
  text-align: center;
  opacity: 0;
  transform: translateX(48px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.stars { color: #ffbd2e; font-size: 1.15rem; letter-spacing: 4px; }
.slide blockquote {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
}
.slide figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  margin-top: 4px;
}
.t-avatar {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--t-a, #f26651), var(--t-b, #fc4236));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.t-meta { display: flex; flex-direction: column; }
.slide figcaption strong { display: block; font-family: var(--font-head); }
.slide figcaption span { font-size: 0.86rem; color: var(--text-dim); }
.t-meta strong { font-size: 1rem; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 32px;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.slider-btn:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.slider-dots { display: flex; gap: 10px; }
.slider-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.slider-dots button.active { background: var(--accent); transform: scale(1.35); }

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.team-card:hover { transform: translateY(-8px); border-color: rgba(242, 102, 81, 0.4); }
.team-photo {
  width: 118px; height: 118px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: var(--grad);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--surface);
}
.team-avatar {
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2a3c58, #1a2338);
  border: 4px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.team-photo.team-avatar {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 2px rgba(242, 102, 81, 0.5);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.team-card p { font-size: 0.9rem; color: var(--text-dim); }

.name-origin { margin-top: 56px; display: flex; justify-content: center; }
.origin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 48px;
  text-align: center;
}
.origin-card h4 { color: var(--text-dim); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.origin-formula { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.06em; }
.origin-formula span { color: var(--accent); }
.origin-brand {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-size: 1.7rem;
}
.origin-pron { margin-top: 10px; color: var(--text-dim); }

/* ---------- contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(242, 102, 81, 0.12);
  filter: blur(80px);
  top: -160px; right: -140px;
  pointer-events: none;
}
.contact-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.contact-info > p { color: var(--text-dim); margin-bottom: 30px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; color: var(--text-dim); }
.contact-list a { color: var(--text); font-weight: 500; transition: color 0.25s; }
.contact-list a:hover { color: var(--accent); }
.ci-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.ci-icon svg { width: 20px; height: 20px; }

.contact-form { display: grid; gap: 18px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 102, 81, 0.18);
}
.form-note { font-size: 0.78rem; color: var(--text-dim); text-align: center; }
.form-note.is-error { color: #ff6b6b; }
.form-note.is-success { color: #46c98b; }

/* honeypot: kept in the DOM for bots, invisible & unreachable for humans */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form.is-sending #contactSubmit { opacity: 0.6; pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { background: #070b13; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 70px 0 50px;
}
.footer-brand { margin-bottom: 18px; }
.footer-col p { font-size: 0.9rem; color: var(--text-dim); max-width: 30ch; }
.footer-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 11px;
  transition: color 0.25s, transform 0.25s;
}
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.fl-icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--accent);
  opacity: 0.85;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- whatsapp ---------- */
.ci-whatsapp { background: rgba(37, 211, 102, 0.14); color: #25d366; }
.ci-whatsapp svg { width: 21px; height: 21px; }

.whatsapp-float {
  position: fixed;
  left: 26px; bottom: 26px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  z-index: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.2s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.55);
}

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-shadow: 0 12px 30px rgba(242, 102, 81, 0.4);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Hero is above the fold, so it must NOT wait for the JS scroll-observer to
   become visible (that gated fade is what felt like a "jerk" on reload).
   Instead it fades in with a pure-CSS animation that runs the moment the
   stylesheet is parsed — no JS, no layout shift, consistent every reload. */
.hero .reveal {
  opacity: 0;
  transform: none;
  animation: heroFade 0.6s ease forwards;
}
.hero .reveal.delay-1 { animation-delay: 0.08s; }
.hero .reveal.delay-2 { animation-delay: 0.16s; }
.hero .reveal.delay-3 { animation-delay: 0.24s; }
.hero .reveal.delay-4 { animation-delay: 0.32s; }
/* keep it visible even if the observer later adds .in-view */
.hero .reveal.in-view { opacity: 1; transform: none; }
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* stagger grids */
.services-grid .reveal:nth-child(2), .process-grid .reveal:nth-child(2),
.work-grid .reveal:nth-child(2), .team-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3), .process-grid .reveal:nth-child(3),
.work-grid .reveal:nth-child(3), .team-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services-grid .reveal:nth-child(4), .process-grid .reveal:nth-child(4),
.work-grid .reveal:nth-child(4), .team-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(5), .work-grid .reveal:nth-child(5) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(6), .work-grid .reveal:nth-child(6) { transition-delay: 0.16s; }
.services-grid .reveal:nth-child(7), .work-grid .reveal:nth-child(7) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(8), .work-grid .reveal:nth-child(8) { transition-delay: 0.08s; }
.work-grid .reveal:nth-child(9) { transition-delay: 0.16s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid, .process-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 540px; margin: 0 auto; width: 100%; }
  .contact-panel { grid-template-columns: 1fr; padding: 48px 40px; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(11, 16, 27, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 4vw 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }

  /* badge is a long single line on desktop; let it wrap & shrink so it never
     clips off the right edge on narrow phones */
  .hero-badge {
    white-space: normal;
    font-size: 0.74rem;
    padding: 6px 14px;
    line-height: 1.45;
    border-radius: 16px;
    margin-bottom: 20px;
  }
  /* smaller code font so the snippet needs little/no sideways scroll on phones */
  .code-card-body { font-size: 0.72rem; padding: 18px 16px; }

  .section { padding: 76px 0; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-stats { gap: 28px; }
  .stat-num, .stat-plus { font-size: 1.6rem; }
  .float-chip { display: none; }
  .scroll-hint { display: none; }

  .services-grid, .process-grid, .team-grid, .work-grid, .form-row { grid-template-columns: 1fr; }
  .slides { min-height: 400px; }
  .slide { padding: 36px 26px 32px; }
  .slide blockquote { font-size: 1.05rem; }
  .contact-panel { padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 54px 0 36px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .back-to-top { right: 16px; bottom: 16px; }
  .whatsapp-float { left: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero .reveal { opacity: 1; transform: none; animation: none; }
}
