/* ═══════════════════════════════════════════════════════════
   BuildHub — Design System
   Extends ShareHub ecosystem tokens
   Fonts: Instrument Serif + DM Sans
   Identity: tech-forward, clean, trustworthy, startup-quality
═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Backgrounds */
  --bg:          #f4f3f8;
  --bg-warm:     #eeedf4;
  --bg-panel:    #ffffff;
  --bg-dark:     #17171f;
  --bg-dark2:    #1e1e28;

  /* Text */
  --text:          #17171f;
  --text-secondary:#4a4a5a;
  --text-muted:    #6e6e82;
  --text-faint:    #9e9eb2;

  /* Brand accent — indigo/blue shifted from ShareHub green */
  --accent:        #4f6ef7;
  --accent-mid:    #6b85f8;
  --accent-soft:   #e0e6ff;
  --accent-pale:   #f0f2ff;

  /* Secondary palette */
  --purple:        #7c5cbf;
  --purple-soft:   #ede5ff;
  --orange:        #d97a3a;
  --orange-soft:   #fdebd8;
  --teal:          #3a9a8a;
  --teal-soft:     #d5f0ec;
  --pink:          #c4527a;
  --pink-soft:     #fde8ef;
  --green:         #4a7d5c;
  --green-soft:    #d8ead e;
  --indigo:        #4f6ef7;
  --indigo-soft:   #e0e6ff;

  /* Ecosystem carry-over */
  --sand:          #c9a97a;
  --sand-soft:     #f0e6d6;

  /* UI */
  --line:          rgba(23,23,31,0.08);
  --line-strong:   rgba(23,23,31,0.13);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:        0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-card:   0 2px 8px rgba(0,0,0,0.05), 0 8px 32px rgba(0,0,0,0.07);
  --shadow-accent: 0 8px 24px rgba(79,110,247,0.22);

  /* Radii */
  --r-sm:   10px;
  --r:      16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* Layout */
  --max:    1180px;
  --nav-h:  68px;

  /* Transitions */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 5% 0%, rgba(79,110,247,.08) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 5%, rgba(124,92,191,.07) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(58,154,138,.05) 0%, transparent 45%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.drawer-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: "Instrument Serif", Georgia, serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

em {
  font-style: italic;
  color: var(--accent-mid);
}

/* ── CONTAINER ── */
.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section { padding: 96px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 20px;
}

.section-label::before {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--accent-mid);
  border-radius: 2px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  margin-bottom: 18px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-family: "DM Sans", sans-serif;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn svg { flex-shrink: 0; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #3d58e0;
  border-color: #3d58e0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.btn-ghost {
  background: var(--bg-panel);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--bg-warm);
  transform: translateY(-1px);
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1.5px solid var(--line-strong);
  padding-bottom: 3px;
  transition: all 0.2s var(--ease);
}
.btn-ghost-dark:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost-dark svg { transition: transform 0.2s var(--ease); }
.btn-ghost-dark:hover svg { transform: translateX(4px); }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(244,243,248,0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.navbar--scrolled {
  background: rgba(244,243,248,0.97);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.brand-ecosystem {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 400;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.nav-cta {
  margin-left: 8px;
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
}

.nav-cta:hover {
  background: #3d58e0 !important;
  color: #fff !important;
  box-shadow: var(--shadow-accent) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.nav-toggle:hover { background: var(--bg-warm); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.22s var(--ease);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 190;
  background: rgba(244,243,248,0.98);
  backdrop-filter: blur(24px);
  padding: 32px 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}

.nav-drawer.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.nav-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer nav a {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.18s ease;
}

.nav-drawer nav a:hover { color: var(--accent-mid); }

.drawer-cta {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

/* ── HERO ── */
.hero {
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding: 8px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-h1 {
  font-size: clamp(3rem, 6.2vw, 5.2rem);
  line-height: 1.00;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 36px;
  font-weight: 350;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── HERO VISUAL ── */
.hero-visual { position: relative; }

.hero-visual-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  pointer-events: none;
}

.orb-1 {
  width: 65%; height: 65%;
  top: -8%; right: -8%;
  background: radial-gradient(circle, rgba(79,110,247,0.18) 0%, transparent 70%);
  animation: floatOrb1 9s ease-in-out infinite alternate;
}

.orb-2 {
  width: 55%; height: 55%;
  bottom: -8%; left: -8%;
  background: radial-gradient(circle, rgba(124,92,191,0.14) 0%, transparent 70%);
  animation: floatOrb2 11s ease-in-out infinite alternate;
}

.orb-3 {
  width: 40%; height: 40%;
  top: 38%; left: 28%;
  background: radial-gradient(circle, rgba(58,154,138,0.12) 0%, transparent 70%);
  animation: floatOrb1 13s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(14px,-18px) scale(1.05); }
}

@keyframes floatOrb2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-12px,16px) scale(1.07); }
}

/* Main hero card */
.hero-main-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hmc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hmc-dots {
  display: flex;
  gap: 5px;
}

.hmc-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hmc-dots span:first-child { background: #ff6b6b; }
.hmc-dots span:nth-child(2) { background: #ffd93d; }
.hmc-dots span:nth-child(3) { background: #6bcb77; }

.hmc-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-left: auto;
  font-family: "DM Mono", monospace;
}

.hmc-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hmc-line {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-warm);
}

.hmc-line--short { width: 40%; }
.hmc-line--long  { width: 90%; }
.hmc-line--mid   { width: 65%; }

.hmc-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.hmc-chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.hmc-chip--blue   { background: var(--indigo-soft); color: var(--accent); }
.hmc-chip--purple { background: var(--purple-soft); color: var(--purple); }
.hmc-chip--green  { background: var(--teal-soft);   color: var(--teal); }

.hmc-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
}

.hmc-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hmc-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

/* Floating stat cards */
.stat-float {
  position: absolute;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s var(--ease);
}

.stat-float:hover { transform: translateY(-4px) !important; }

.stat-float-1 {
  top: 6%; left: -4%;
  animation: floatCard1 8s ease-in-out infinite alternate;
}

.stat-float-2 {
  top: 44%; right: -6%;
  animation: floatCard2 10s ease-in-out infinite alternate;
}

.stat-float-3 {
  bottom: 8%; left: 6%;
  animation: floatCard1 12s ease-in-out infinite alternate-reverse;
}

@keyframes floatCard1 {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}
@keyframes floatCard2 {
  from { transform: translateY(0); }
  to   { transform: translateY(8px); }
}

.sf-number {
  font-family: "Instrument Serif", serif;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text);
}

.sf-icon { font-size: 1.2rem; line-height: 1; }

.sf-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ── SERVICES ── */
.section-services {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.service-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.service-card--featured {
  border-color: var(--accent-soft);
  background: linear-gradient(135deg, var(--accent-pale) 0%, var(--bg-panel) 60%);
}

.service-card--wide {
  grid-column: span 3;
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: var(--r-pill);
}

/* Service icons */
.service-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon--blue   { background: var(--indigo-soft); color: var(--accent); }
.service-icon--indigo { background: var(--purple-soft); color: var(--purple); }
.service-icon--purple { background: var(--purple-soft); color: var(--purple); }
.service-icon--orange { background: var(--orange-soft); color: var(--orange); }
.service-icon--teal   { background: var(--teal-soft);   color: var(--teal); }
.service-icon--pink   { background: var(--pink-soft);   color: var(--pink); }
.service-icon--green  { background: #d8eade;            color: var(--green); }

.service-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

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

.service-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

/* Wide consulting card */
.consulting-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex: 1;
}

.consulting-cta {
  flex-shrink: 0;
}

/* ── PROCESS ── */
.section-process {
  background: var(--bg);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 12px;
}

.step-number {
  font-family: "Instrument Serif", serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--line-strong);
  letter-spacing: -0.04em;
}

.step-content h4 {
  font-size: 1.1rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.process-connector {
  width: 48px;
  height: 1px;
  background: var(--line-strong);
  margin-top: 24px;
  position: relative;
}

.process-connector::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg);
}

/* ── CONTACT ── */
.section-contact {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
}

.contact-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}

.contact-left {
  padding: 56px 48px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-left h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.contact-left > p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

a.contact-info-item:hover { color: var(--accent); }

.contact-info-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.contact-right {
  padding: 48px;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: "DM Sans", sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e82' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.10);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.btn-submit {
  width: 100%;
  height: 52px;
  font-size: 0.95rem;
}

.btn-submit:disabled {
  pointer-events: none;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
}

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--teal-soft);
  border: 1px solid rgba(58,154,138,0.2);
  border-radius: var(--r);
}

.form-success[hidden] { display: none; }

.success-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.form-success strong {
  font-size: 0.9rem;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.form-success p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ── ECOSYSTEM FOOTER STRIP ── */
.ecosystem-footer-strip {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
}

.efs-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 16px;
}

.efs-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.efs-item {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
}

.efs-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

a.efs-item:hover .efs-name { color: var(--accent); }

.efs-item--current .efs-name {
  color: var(--accent);
  font-weight: 600;
}

.efs-current-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: var(--r-pill);
}

.efs-sep {
  color: var(--line-strong);
  font-size: 1rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.55);
  padding: 52px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-mark {
  display: flex;
  align-items: center;
}

.footer-brand-name {
  font-family: "DM Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}

.footer-brand-sub {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.35);
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.38);
  max-width: 260px;
  line-height: 1.5;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.09);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-meta a { color: rgba(255,255,255,0.5); transition: color 0.18s ease; }
.footer-meta a:hover { color: #fff; }
.footer-sep { opacity: 0.3; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.18s ease;
}

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

/* ── ANIMATIONS ── */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate="fade-up"]  { transform: translateY(24px); }
[data-animate="fade-left"] { transform: translateX(24px); }
[data-animate="stagger"]  { opacity: 0; transform: translateY(16px); }

[data-animate].animated {
  opacity: 1;
  transform: none;
}

[data-animate="stagger"].animated > * {
  animation: staggerIn 0.6s var(--ease) both;
}

[data-animate="stagger"].animated > *:nth-child(1)  { animation-delay: 0.04s; }
[data-animate="stagger"].animated > *:nth-child(2)  { animation-delay: 0.12s; }
[data-animate="stagger"].animated > *:nth-child(3)  { animation-delay: 0.20s; }
[data-animate="stagger"].animated > *:nth-child(4)  { animation-delay: 0.28s; }
[data-animate="stagger"].animated > *:nth-child(5)  { animation-delay: 0.34s; }
[data-animate="stagger"].animated > *:nth-child(6)  { animation-delay: 0.40s; }
[data-animate="stagger"].animated > *:nth-child(7)  { animation-delay: 0.46s; }

@keyframes staggerIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 52px; }
  .hero-visual { order: -1; }
  .hero-visual-inner { max-width: 400px; aspect-ratio: 1 / 0.78; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: span 2; }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-connector { display: none; }
  .process-step { padding: 0; flex-direction: row; gap: 20px; align-items: flex-start; }
  .step-number { min-width: 48px; }

  .contact-card { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 1px solid var(--line); padding: 40px 40px 32px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .container { width: min(var(--max), calc(100% - 32px)); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 60px 0 68px; }
  .hero-h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
  .hero-sub { max-width: 100%; }
  .hero-visual-inner { max-width: 340px; aspect-ratio: 1 / 0.7; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: span 1; }
  .consulting-inner { flex-direction: column; align-items: flex-start; gap: 20px; }

  .contact-card { border-radius: var(--r-lg); }
  .contact-left { padding: 32px 24px; }
  .contact-right { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

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

  .efs-sep { display: none; }
}

@media (max-width: 480px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .hero-h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-visual-inner { max-width: 300px; aspect-ratio: 1 / 0.65; }
  .section { padding: 60px 0; }
  .contact-left, .contact-right { padding: 24px 20px; }
}

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