/* ============================================================
   County Asset Partners — Stylesheet
   ============================================================ */

:root {
  --bg-0: #060912;
  --bg-1: #0a0e1a;
  --bg-2: #0f1424;
  --bg-3: #141a2e;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-0: #f5f7fb;
  --text-1: #c9d1e0;
  --text-2: #8d97ad;
  --text-3: #5f6982;

  --accent: #4f9dff;
  --accent-2: #7b6cff;
  --accent-3: #22d3ee;
  --accent-glow: rgba(79, 157, 255, 0.35);

  --success: #34d399;
  --danger: #f87171;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);

  --container: 1240px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Background layers ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 80%);
}

.bg-glow {
  background:
    radial-gradient(700px circle at 15% 10%, rgba(79, 157, 255, 0.14), transparent 55%),
    radial-gradient(700px circle at 85% 20%, rgba(123, 108, 255, 0.12), transparent 55%),
    radial-gradient(900px circle at 50% 100%, rgba(34, 211, 238, 0.08), transparent 60%);
  animation: glowShift 18s ease-in-out infinite alternate;
}

@keyframes glowShift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -30px, 0) scale(1.08); }
}

.bg-noise {
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 20px var(--accent-glow);
  transition: width 0.1s linear;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.section {
  padding: 110px 0;
  position: relative;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)) ,
    var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--text-0);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradShift 8s ease infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 30px rgba(79, 157, 255, 0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--accent-2), var(--accent-3));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(79, 157, 255, 0.45);
}

.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-0);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 900;
  transition: all 0.4s var(--ease);
  background: rgba(6, 9, 18, 0);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(6, 9, 18, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
}

.logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(79, 157, 255, 0.35);
  transition: transform 0.4s var(--ease);
}

.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-line1 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.01em;
}

.logo-line2 {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  border-radius: 999px;
  position: relative;
  transition: all 0.3s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  transform: translateX(-50%);
}

.nav-link:hover { color: var(--text-0); }
.nav-link:hover::after { width: 20px; }

.header-cta { padding: 11px 22px; font-size: 14px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.burger span {
  width: 18px; height: 2px;
  background: var(--text-0);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(6, 9, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-120%);
  transition: transform 0.45s var(--ease);
  z-index: 890;
}

.mobile-menu.open { transform: translateY(0); }

.mobile-link {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text-1);
  transition: all 0.25s var(--ease);
}

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-0);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-h) + 80px) 0 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(79, 157, 255, 0.08);
  border: 1px solid rgba(79, 157, 255, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-number::after { content: '+'; color: var(--accent); font-size: 0.7em; vertical-align: top; }

.stat:nth-child(4) .stat-number::after { content: '%'; }

.stat-label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ---------- Hero visual ---------- */
.hero-visual {
  position: relative;
  height: 520px;
}

.visual-card {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: floatCard 7s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.visual-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(79, 157, 255, 0.12), transparent 45%);
  animation: rotate 25s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.visual-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.visual-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
  position: relative;
  z-index: 1;
}

.chart-row {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 20px 0;
  min-height: 220px;
}

.chart-bar {
  flex: 1;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 10px 10px 6px 6px;
  position: relative;
  animation: growBar 1.6s var(--ease) forwards;
  animation-delay: var(--d, 0s);
  opacity: 0.9;
  transition: opacity 0.3s, filter 0.3s;
}

.chart-bar:nth-child(1) { --d: 0.1s; }
.chart-bar:nth-child(2) { --d: 0.25s; }
.chart-bar:nth-child(3) { --d: 0.4s; }
.chart-bar:nth-child(4) { --d: 0.55s; }
.chart-bar:nth-child(5) { --d: 0.7s; }

@keyframes growBar {
  from { height: 0; opacity: 0; }
  to   { height: var(--h); opacity: 0.9; }
}

.chart-bar:hover {
  opacity: 1;
  filter: brightness(1.2);
}

.chart-bar span {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

.visual-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-0);
}

.metric-value.positive { color: var(--success); }

.floating-chip {
  position: absolute;
  padding: 10px 18px;
  background: rgba(10, 14, 26, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  z-index: 2;
  white-space: nowrap;
}

.chip-1 {
  top: 40px; left: -30px;
  animation: floatChip1 6s ease-in-out infinite;
}

.chip-2 {
  bottom: 120px; right: -30px;
  animation: floatChip2 7s ease-in-out infinite;
}

.chip-3 {
  bottom: 30px; left: 40px;
  animation: floatChip3 8s ease-in-out infinite;
}

@keyframes floatChip1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-8px, -12px); }
}
@keyframes floatChip2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(10px, -14px); }
}
@keyframes floatChip3 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-6px, 10px); }
}

/* ---------- Hero scroll indicator ---------- */
.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--text-3), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollDown 2.2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.trust-item {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-left: 20px;
}

.trust-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ---------- Section head ---------- */
.section-head {
  max-width: 780px;
  margin: 0 auto 70px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(79, 157, 255, 0.08);
  border: 1px solid rgba(79, 157, 255, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.section-lead {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 60px;
}

.about-card {
  padding: 32px 26px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
}

.about-card:hover::before { transform: scaleX(1); }

.about-icon {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.about-card h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.about-card p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
}

.about-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 44px;
  background: linear-gradient(120deg, rgba(79, 157, 255, 0.08), rgba(123, 108, 255, 0.06));
  border: 1px solid rgba(79, 157, 255, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.about-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 0% 50%, rgba(79, 157, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.about-strip-text h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.about-strip-text p {
  color: var(--text-2);
  max-width: 620px;
  font-size: 15px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 36px 30px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: -60%; right: -60%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(79, 157, 255, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 157, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.service-card:hover::after { opacity: 1; }

.service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-block;
  padding: 4px 10px;
  background: rgba(79, 157, 255, 0.1);
  border-radius: 6px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 22px;
  line-height: 1.7;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  font-size: 14px;
  color: var(--text-1);
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

/* ---------- Process ---------- */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 60px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 22px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}

.process-step {
  position: relative;
  padding-bottom: 46px;
}

.process-step:last-child { padding-bottom: 0; }

.process-marker {
  position: absolute;
  left: -60px; top: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 0 0 8px rgba(6, 9, 18, 1), 0 0 30px rgba(79, 157, 255, 0.4);
  z-index: 1;
  transition: transform 0.4s var(--ease);
}

.process-step:hover .process-marker {
  transform: scale(1.12) rotate(-8deg);
}

.process-content {
  padding: 26px 30px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
}

.process-step:hover .process-content {
  border-color: rgba(79, 157, 255, 0.3);
  transform: translateX(6px);
}

.process-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.process-content p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Industries ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.industry-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}

.industry-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

.industry-card:hover::before { transform: scaleY(1); }

.industry-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.industry-card p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: start;
}

.team-card {
  padding: 40px;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(79, 157, 255, 0.18), transparent 65%);
}

.team-avatar {
  width: 84px; height: 84px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(79, 157, 255, 0.4);
}

.team-card h3 {
  font-size: 26px;
  margin-bottom: 6px;
}

.team-role {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.team-card p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 26px;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.team-contact a {
  font-size: 14.5px;
  color: var(--text-1);
  transition: color 0.25s var(--ease);
}

.team-contact a:hover { color: var(--accent); }

.team-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-side-block {
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
}

.team-side-block:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(4px);
}

.team-side-block h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-0);
}

.team-side-block p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial {
  padding: 34px 30px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.4s var(--ease);
}

.testimonial:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 157, 255, 0.3);
}

.quote-mark {
  font-family: 'Space Grotesk', serif;
  font-size: 60px;
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 10px;
}

.testimonial p {
  font-size: 15.5px;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 22px;
}

.testimonial-author {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 30px;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-block {
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.35s var(--ease);
}

.info-block:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.info-label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.info-value {
  font-size: 15.5px;
  color: var(--text-0);
  line-height: 1.55;
}

.info-value a {
  color: var(--text-0);
  border-bottom: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

.info-value a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.location-map {
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  position: relative;
  background: var(--bg-2);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  filter: grayscale(0.4) invert(0.9) hue-rotate(180deg) contrast(0.9);
  transition: filter 0.5s var(--ease);
}

.location-map:hover iframe {
  filter: grayscale(0.1) invert(0.88) hue-rotate(180deg) contrast(1);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

.faq-item.open {
  border-color: rgba(79, 157, 255, 0.35);
  background: rgba(255, 255, 255, 0.045);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: none;
  color: var(--text-0);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.25s var(--ease);
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(79, 157, 255, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.4s var(--ease);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.faq-answer p {
  padding: 0 26px 24px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- CTA ---------- */
.cta-section { padding: 110px 0; }

.cta-box {
  text-align: center;
  padding: 70px 40px;
  background:
    radial-gradient(600px circle at 50% 0%, rgba(79, 157, 255, 0.18), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(79, 157, 255, 0.25);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box p {
  color: var(--text-2);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
}

.contact-form {
  padding: 40px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-0);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s var(--ease);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(79, 157, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(79, 157, 255, 0.1);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238d97ad' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-2);
  color: var(--text-0);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  cursor: pointer;
}

.inline-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.inline-link:hover { border-bottom-color: var(--accent); }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.form-status.success { color: var(--success); }
.form-status.error   { color: var(--danger); }

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-side-block {
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.35s var(--ease);
}

.contact-side-block:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

/* ---------- Legal ---------- */
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  justify-content: center;
}

.legal-tab {
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.legal-tab:hover {
  color: var(--text-0);
  border-color: var(--border-strong);
}

.legal-tab.active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(79, 157, 255, 0.3);
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 46px 50px;
  background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.legal-panel { display: none; }
.legal-panel.active { display: block; animation: fadeIn 0.4s var(--ease); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.legal-panel h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.legal-panel h4 {
  font-size: 17px;
  margin-top: 26px;
  margin-bottom: 10px;
  color: var(--accent);
}

.legal-panel p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-panel ul {
  margin: 12px 0 16px 22px;
  color: var(--text-2);
}

.legal-panel ul li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
}

.legal-panel a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.legal-panel a:hover { border-bottom-color: var(--accent); }

.legal-panel em { color: var(--text-3); font-size: 13.5px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo { margin-bottom: 20px; }

.logo-footer .logo-mark { width: 36px; height: 36px; font-size: 18px; }

.footer-brand p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-0);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.footer-col ul li a {
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  font-size: 13.5px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a { color: var(--text-3); }
.footer-bottom-links a:hover { color: var(--accent); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
  z-index: 800;
  box-shadow: 0 10px 30px rgba(79, 157, 255, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(79, 157, 255, 0.55);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.reveal.in:nth-child(2) { transition-delay: 0.08s; }
.reveal.in:nth-child(3) { transition-delay: 0.16s; }
.reveal.in:nth-child(4) { transition-delay: 0.24s; }
.reveal.in:nth-child(5) { transition-delay: 0.32s; }
.reveal.in:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { height: 460px; max-width: 560px; margin: 0 auto; width: 100%; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .section { padding: 80px 0; }
  .hero { padding: calc(var(--header-h) + 50px) 0 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .about-strip { flex-direction: column; align-items: flex-start; padding: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .legal-content { padding: 32px 24px; }
  .cta-box { padding: 50px 26px; }
  .contact-form { padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .floating-chip { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .section { padding: 70px 0; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
  .about-grid, .services-grid, .industries-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
  .process-timeline { padding-left: 46px; }
  .process-marker { left: -46px; width: 38px; height: 38px; font-size: 15px; }
  .process-timeline::before { left: 18px; }
  .team-card { padding: 28px 22px; }
  .visual-card { padding: 18px; }
  .hero-visual { height: 400px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}