/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === SCROLL-DRAWN ROAD LINES === */
.ink-trail {
  position: absolute; inset: 0 0 auto; z-index: 1; width: 100%;
  pointer-events: none; overflow: hidden;
  mix-blend-mode: difference;
  /* Temporarily disabled; keep the generated roads available for later. */
  opacity: 0 !important; visibility: hidden;
}
.ink-trail svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ink-trail__line {
  fill: none; stroke: #fff; stroke-width: 1;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; will-change: stroke-dashoffset;
}
.hero > .container,
.section > .container,
.footer > .container { position: relative; z-index: 2; }
.nav { z-index: 100; }

@media (prefers-reduced-motion: reduce) {
  .ink-trail { opacity: 0.4; }
}

/* === COLORS === */
:root {
  --navy: #160F18;
  --navy-mid: #241722;
  --navy-light: #362130;
  --rose: #AE445A;
  --gold: #F39F5A;
  --gold-light: #FFD0B0;
  --gold-bg: rgba(243, 159, 90, 0.1);
  --surface: #FBF8F8;
  --white: #FFFFFF;
  --text: #21151F;
  --muted: #736C76;
  --border: #E9E0E3;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 0.75rem;
  --text-meta: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --font-h1: clamp(2.75rem, 5.5vw, 4.5rem);
  --font-h2: clamp(2rem, 3.75vw, 3rem);
  --font-h3: 1.5rem;
  --font-h4: 1.125rem;
  --font-pill: var(--text-meta);
  --pill-height: 30px;
  --pill-padding: 0 12px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); margin-bottom: 16px; }
h3 { font-size: var(--font-h3); }
h4 { font-size: var(--font-h4); }
p { font-size: var(--text-base); }
.text-accent { color: var(--gold); font-style: italic; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px;
  font-weight: 600; font-size: var(--text-sm);
  transition: all 0.2s ease; cursor: pointer;
  border: none; font-family: inherit; text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--rose), var(--gold)); color: var(--white);
}
.btn--primary:hover { background: #E98748; transform: translateY(-1px); }
.btn--outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--ghost { background: transparent; color: var(--muted); padding: 8px 16px; }
.btn--ghost:hover { color: var(--gold); }
.btn--full { width: 100%; justify-content: center; padding: 14px 28px; font-size: var(--text-base); }

/* === BADGE === */
.badge {
  display: inline-flex; align-items: center; min-height: var(--pill-height);
  padding: var(--pill-padding); border-radius: 999px;
  background: var(--gold-bg); color: var(--gold);
  font-size: var(--font-pill); line-height: 1; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.footer-bottom a:hover { color: var(--gold); }

/* === LEGAL PAGES === */
.legal-section {
  padding: 80px 0 40px;
  min-height: 60vh;
}
.legal-container {
  max-width: 800px;
  margin: 0 auto;
}
.legal-header {
  text-align: center;
  margin-bottom: 48px;
}
.legal-header h1 {
  margin-bottom: 8px;
}
.legal-date {
  color: var(--muted);
  font-size: var(--text-sm);
}
.legal-body h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-body p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text);
}
.legal-body ul {
  margin-bottom: 16px;
  padding-left: 24px;
}
.legal-body li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text);
}
.legal-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover {
  color: var(--gold-light);
}
.legal-footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.legal-footer-links a {
  color: var(--muted);
  font-size: var(--text-sm);
  transition: color 0.2s;
}
.legal-footer-links a:hover {
  color: var(--gold);
}
/* === SECTION LABEL === */
.section-label {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 12px;
}
.section-label--light { color: var(--gold-light); }

/* === SECTION === */
.section {
  padding: 100px 0;
}
.section--dark {
  background: var(--navy); color: var(--white);
}
.section--light {
  background: var(--white);
}
.section--form {
  background: var(--navy); color: var(--white);
}
.section-header {
  text-align: center; max-width: 680px; margin: 0 auto 60px;
}
.section-header p {
  color: var(--muted); font-size: var(--text-lg);
}
.section--dark .section-header p { color: rgba(255,255,255,0.6); }
.section-header h2 { margin-bottom: 16px; }
.section--dark .section-header h2 { color: var(--white); }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(22, 15, 24, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; }
.logo-wordmark { width: 176px; height: auto; display: block; }
.logo-accent { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.7); font-size: var(--text-sm); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }

/* === HERO === */
.hero {
  position: relative; min-height: 100vh;
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding-top: 80px;
}
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(174,68,90,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(243,159,90,0.1) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}
.hero-text { max-width: 560px; }
.hero-sub { font-size: var(--text-lg); color: rgba(255,255,255,0.65); margin-bottom: 36px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 16px; }

/* Hero ecosystem */
.hero-visual {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px;
  perspective: 1200px;
}
.hero-ecosystem {
  position: relative; width: min(610px, 100%); aspect-ratio: 1.16;
  transform: rotateY(-3deg) rotateX(1deg);
}
.ecosystem-glow {
  position: absolute; inset: 12% 8%; border-radius: 50%;
  background: rgba(174,68,90,0.22); filter: blur(64px);
}
.ecosystem-window {
  position: absolute; inset: 8% 1% 12% 7%; overflow: hidden; border-radius: 18px;
  background: #F8FAFC; border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 34px 90px rgba(0,0,0,0.5), 0 0 0 8px rgba(255,255,255,0.025);
}
.ecosystem-window-bar {
  height: 42px; padding: 0 14px; display: grid; grid-template-columns: 62px 1fr 62px;
  align-items: center; background: #E9EDF3; border-bottom: 1px solid #D7DEE8;
  color: #718096; font-size: 0.625rem;
}
.ecosystem-dots { display: flex; gap: 5px; }
.ecosystem-dots i { width: 7px; height: 7px; border-radius: 50%; background: #FF6B64; }
.ecosystem-dots i:nth-child(2) { background: #F2BE4B; }
.ecosystem-dots i:nth-child(3) { background: #45C66A; }
.ecosystem-address {
  justify-self: center; padding: 5px 18px; border-radius: 999px;
  background: rgba(22,15,24,0.055); color: #667386;
}
.ecosystem-secure { justify-self: end; color: #238356; font-weight: 700; }
.ecosystem-app { height: calc(100% - 42px); display: grid; grid-template-columns: 62px 1fr; }
.ecosystem-sidebar {
  padding: 16px 13px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--navy); border-right: 1px solid rgba(255,255,255,0.06);
}
.ecosystem-mark {
  width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 8px;
  border: 1px solid rgba(243,159,90,0.55); border-radius: 8px;
  color: var(--gold); font-size: var(--text-meta); font-weight: 800;
}
.ecosystem-nav-item {
  width: 30px; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.14);
}
.ecosystem-nav-item.short { width: 20px; }
.ecosystem-nav-item.active { background: var(--gold); box-shadow: 0 0 14px rgba(243,159,90,0.35); }
.ecosystem-main { min-width: 0; padding: 25px 28px; color: var(--navy); }
.ecosystem-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ecosystem-heading > div { display: flex; flex-direction: column; gap: 3px; }
.ecosystem-heading strong { font-size: 1.05rem; }
.ecosystem-eyebrow { color: #8390A2; font-size: 0.5625rem; letter-spacing: 0.12em; font-weight: 700; }
.ecosystem-sync {
  padding: 6px 9px; border-radius: 999px; background: #E7F5ED;
  color: #287951; font-size: 0.5625rem; font-weight: 700;
}
.ecosystem-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 16px; }
.ecosystem-metric {
  min-width: 0; padding: 13px; overflow: hidden; border: 1px solid #E1E6ED;
  border-radius: 10px; background: #FFFFFF;
}
.ecosystem-metric span { display: block; color: #8490A1; font-size: 0.5625rem; }
.ecosystem-metric strong { display: block; margin: 3px 0 11px; font-size: var(--text-meta); }
.metric-line { display: block; width: 72%; height: 4px; border-radius: 99px; background: #8DA2BC; }
.metric-line--gold { width: 88%; background: var(--gold); }
.metric-line--short { width: 56%; }
.ecosystem-workflow { overflow: hidden; border: 1px solid #E1E6ED; border-radius: 10px; background: #FFFFFF; }
.ecosystem-workflow-head {
  padding: 11px 13px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #EDF0F4;
}
.ecosystem-workflow-head strong { font-size: 0.6875rem; }
.ecosystem-workflow-head span { color: #6D7B8D; font-size: 0.5625rem; }
.ecosystem-row {
  padding: 9px 13px; display: grid; grid-template-columns: 8px 1fr auto; gap: 9px;
  align-items: center; border-bottom: 1px solid #F0F2F5;
}
.ecosystem-row:last-child { border-bottom: 0; }
.workflow-dot { width: 6px; height: 6px; border-radius: 50%; background: #3BA16B; }
.workflow-dot--gold { background: var(--gold); }
.ecosystem-row span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ecosystem-row strong { font-size: 0.625rem; }
.ecosystem-row small { color: #8A96A6; font-size: 0.5rem; }
.ecosystem-row b { color: #3B8F65; font-size: 0.5rem; }
.ecosystem-card {
  position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.38); color: var(--navy);
}
.ecosystem-card-label {
  display: inline-block; color: var(--gold); font-size: 0.5625rem;
  letter-spacing: 0.12em; font-weight: 800;
}
.ecosystem-card--website {
  left: -3%; bottom: 0; width: 190px; padding: 13px; border-radius: 13px;
  background: #FFFFFF; transform: rotate(-4deg);
}
.website-preview {
  min-height: 136px; margin-top: 8px; padding: 12px; border-radius: 8px;
  background: linear-gradient(145deg, #0D1D34, #162B48); color: #FFFFFF;
}
.website-preview-nav { display: flex; align-items: center; gap: 5px; margin-bottom: 17px; }
.website-preview-nav i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--gold); }
.website-preview-nav span { width: 25px; height: 3px; border-radius: 4px; background: rgba(255,255,255,0.28); }
.website-preview strong { display: block; font-family: var(--font-display); font-size: var(--text-sm); line-height: 1.25; }
.website-preview small { display: block; margin: 6px 0 13px; color: rgba(255,255,255,0.52); font-size: 0.5rem; }
.website-preview b {
  display: inline-block; padding: 5px 8px; border-radius: 5px;
  background: var(--gold); color: var(--navy); font-size: 0.5rem;
}
.ecosystem-card--mobile {
  right: -2%; top: 1%; width: 138px; min-height: 220px; padding: 30px 16px 16px;
  border-radius: 22px; background: #FDFEFE; transform: rotate(4deg);
}
.mobile-notch {
  position: absolute; top: 9px; left: 50%; width: 38px; height: 5px;
  border-radius: 999px; background: #D6DCE4; transform: translateX(-50%);
}
.mobile-status {
  display: block; margin: 32px 0 7px; color: var(--gold);
  font-size: 0.5rem; letter-spacing: 0.1em; font-weight: 800;
}
.ecosystem-card--mobile strong { display: block; font-size: var(--text-meta); }
.ecosystem-card--mobile small { display: block; margin: 7px 0 18px; color: #7B8797; font-size: 0.5625rem; line-height: 1.45; }
.ecosystem-card--mobile b {
  display: block; padding: 8px; border-radius: 7px; background: var(--navy);
  color: #FFFFFF; text-align: center; font-size: 0.5625rem;
}
.hero-screen-note {
  color: rgba(255,255,255,0.42); font-size: var(--text-xs); letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-trust {
  text-align: center; padding: 40px 0 0;
  margin-top: 60px; position: relative; z-index: 2;
}
.hero-trust span {
  font-size: var(--text-sm); color: rgba(255,255,255,0.35);
  font-weight: 500;
}

/* === PRODUCTS === */
.products-grid { display: flex; flex-direction: column; gap: 96px; }
.product-card {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 56px;
  align-items: center;
}
.product-card.reverse { direction: rtl; }
.product-card.reverse > * { direction: ltr; }
.product-screenshot {
  border-radius: 16px; overflow: hidden;
  border: 1px solid #D7DDE6; background: var(--white);
  box-shadow: 0 24px 56px rgba(22,15,24,0.14), 0 2px 8px rgba(22,15,24,0.06);
}
.screen-bar {
  height: 42px; padding: 0 15px; display: grid;
  grid-template-columns: 74px 1fr 74px; align-items: center;
  background: #F3F5F8; border-bottom: 1px solid #DDE2E9;
  color: #718096; font-size: 0.6875rem;
}
.screen-dots { display: flex; gap: 6px; }
.screen-dots i { width: 8px; height: 8px; border-radius: 50%; background: #FF6B64; }
.screen-dots i:nth-child(2) { background: #F2BE4B; }
.screen-dots i:nth-child(3) { background: #45C66A; }
.screen-address {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  justify-self: center; padding: 5px 16px; border-radius: 999px;
  background: rgba(22,15,24,0.055); color: #6D7887; letter-spacing: 0.02em;
}
.screen-status { justify-self: end; color: #2E8B57; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.screen-viewport { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #EEF2F7; }
.screen-viewport img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.product-badge {
  display: inline-flex; align-items: center; min-height: var(--pill-height);
  padding: var(--pill-padding); border-radius: 999px;
  background: var(--gold-bg); color: var(--gold);
  font-size: var(--font-pill); line-height: 1; font-weight: 600; margin-bottom: 12px;
}
.product-info h3 { margin-bottom: 4px; }
.product-tagline { color: var(--gold); font-weight: 500; margin-bottom: 16px; font-size: var(--text-base); }
.product-info p { color: var(--muted); margin-bottom: 20px; }
.product-features { display: flex; flex-wrap: wrap; gap: 8px; }
.product-features span {
  display: inline-flex; align-items: center; min-height: var(--pill-height);
  padding: var(--pill-padding); border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--font-pill); line-height: 1; color: var(--text);
}
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
.project-button {
  min-height: 42px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--rose); border-radius: 8px; background: linear-gradient(135deg, var(--rose), var(--gold)); color: var(--white);
  font-size: var(--text-sm); font-weight: 700; line-height: 1.2;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.project-button:hover { background: #E98748; border-color: #E98748; transform: translateY(-1px); }
.project-button--secondary { background: transparent; color: var(--navy); border-color: #CCD3DC; }
.project-button--secondary:hover { background: var(--surface); border-color: var(--gold); }
.project-button--on-dark { box-shadow: 0 8px 24px rgba(0,0,0,0.16); }
.section--dark .project-button--secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.section--dark .project-button--secondary:hover { color: var(--white); background: rgba(255,255,255,0.08); border-color: var(--gold); }

/* === CASE STUDIES === */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.case-card {
  background: var(--navy-mid); border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.case-card:hover { transform: translateY(-4px); border-color: rgba(243,159,90,0.3); box-shadow: 0 20px 50px rgba(0,0,0,0.18); }
.case-image {
  overflow: hidden; background: var(--navy-light); padding: 18px 18px 0;
}
.screen-bar--compact {
  height: 34px; grid-template-columns: 56px 1fr 56px; border: 0;
  border-radius: 10px 10px 0 0; background: rgba(255,255,255,0.96);
}
.screen-bar--compact .screen-dots { gap: 5px; }
.screen-bar--compact .screen-dots i { width: 7px; height: 7px; }
.screen-bar--compact .screen-address { padding: 4px 12px; font-size: 0.625rem; }
.case-viewport { aspect-ratio: 16 / 10; overflow: hidden; background: #EEF2F7; border-radius: 0 0 5px 5px; }
.case-viewport img { width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0.96; }
.case-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); align-items: stretch; }
.case-card--feature .case-body { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.case-image--photo { position: relative; min-height: 410px; padding: 0; }
.case-image--photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; opacity: 0.94; }
.photo-caption {
  position: absolute; left: 20px; bottom: 18px; padding: 7px 11px;
  border-radius: 6px; background: rgba(22,15,24,0.78); color: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase;
}
.case-body { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.case-industry {
  display: inline-block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 1px;
  color: var(--gold); margin-bottom: 8px;
}
.case-body h3 { margin-bottom: 12px; }
.case-body p { color: rgba(255,255,255,0.6); margin-bottom: 20px; line-height: 1.65; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags span {
  display: inline-flex; align-items: center; min-height: var(--pill-height);
  padding: var(--pill-padding); border-radius: 999px;
  background: rgba(243,159,90,0.12); color: var(--gold-light);
  font-size: var(--font-pill); line-height: 1; font-weight: 500;
}
.case-actions { margin-top: 24px; }

/* === SYSTEMS GRID === */
.systems-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.system-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; transition: all 0.2s;
}
.system-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(243,159,90,0.12); }
.system-icon { font-size: 1.5rem; display: block; margin-bottom: 12px; }
.system-card h4 { margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }
.system-card p { color: var(--muted); line-height: 1.6; }

/* === PROCESS === */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  max-width: 960px; margin: 0 auto;
}
.process-step { text-align: center; }
.step-num {
  display: inline-block;
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  color: var(--gold); margin-bottom: 12px; line-height: 1;
}
.process-step h3 { margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }
.process-step p { color: var(--muted); }

/* === FORM === */
.form-wrapper {
  max-width: 640px; margin: 0 auto;
}
.section--form .section-header { margin-bottom: 40px; }
.lead-form {
  display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: var(--text-sm); font-weight: 500; color: rgba(255,255,255,0.7);
}
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--navy-mid); color: var(--white);
  font-family: inherit; font-size: var(--text-base);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group select option { background: var(--navy); color: var(--white); }
.form-note {
  text-align: center; font-size: var(--text-meta); color: rgba(255,255,255,0.4);
}
.form-note a { color: rgba(255,255,255,0.78); text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--gold-light); }
.form-honeypot {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.form-status {
  min-height: 1.4em; margin: -8px 0 0; text-align: center;
  font-size: var(--text-sm); color: rgba(255,255,255,0.72);
}
.form-status--error { color: #ffb4a8; }
.lead-form button:disabled { cursor: wait; opacity: 0.7; }
.form-success { text-align: center; padding: 60px 0; }
.form-success .success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 700; margin: 0 auto 20px;
}
.form-success h3 { margin-bottom: 12px; }
.form-success p { color: rgba(255,255,255,0.6); margin-bottom: 28px; }
.hidden { display: none; }

/* === FOOTER === */
.footer {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr; gap: 60px;
}
.footer-brand .logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { color: var(--muted); max-width: 380px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer-col a { display: block; color: var(--muted); margin-bottom: 10px; font-size: var(--text-sm); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-col span { color: rgba(255,255,255,0.72); font-size: var(--text-sm); }
.footer-bottom {
  grid-column: 1 / -1; padding-top: 32px; margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--text-meta); color: var(--muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--muted); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }

/* === PROJECT PAGES === */
.project-page { background: var(--surface); }
.project-article { max-width: 1120px; margin: 0 auto; padding: 150px 24px 96px; }
.project-hero { max-width: 860px; padding-bottom: 56px; }
.project-back { display: inline-block; margin-bottom: 56px; color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
.project-back:hover { color: var(--rose); }
.project-eyebrow { color: var(--rose); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.project-hero h1 { max-width: 12ch; margin: 14px 0 22px; font-size: clamp(3.4rem, 8vw, 7.2rem); line-height: 0.98; }
.project-lead { max-width: 720px; color: var(--muted); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.6; }
.project-hero-actions { margin-top: 30px; }
.project-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 64px; border-block: 1px solid var(--border); }
.project-facts div { padding: 24px 22px; border-right: 1px solid var(--border); }
.project-facts div:last-child { border-right: 0; }
.project-facts dt { margin-bottom: 6px; color: var(--muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.project-facts dd { color: var(--text); font-size: var(--text-sm); font-weight: 600; }
.project-figure { margin-bottom: 88px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--white); box-shadow: 0 26px 70px rgba(22,15,24,0.12); }
.project-figure img { width: 100%; max-height: 760px; object-fit: cover; object-position: top center; }
.project-figure figcaption { padding: 12px 18px; color: var(--muted); font-size: var(--text-xs); }
.project-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-bottom: 88px; }
.project-two-col h2 { max-width: 14ch; margin: 14px 0 20px; }
.project-two-col p:last-child { color: var(--muted); line-height: 1.8; }
.project-built { margin-bottom: 88px; }
.project-built ul { margin-top: 22px; list-style: none; border-top: 1px solid var(--border); }
.project-built li { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); font-size: var(--text-lg); }
.project-built li span { color: var(--rose); font-size: var(--text-sm); font-weight: 800; }
.project-scope { margin-bottom: 88px; padding: 34px; border-radius: 14px; background: var(--white); border: 1px solid var(--border); }
.project-scope p:last-child { max-width: 850px; margin-top: 12px; color: var(--muted); line-height: 1.8; }
.project-next { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 56px; border-radius: 18px; background: var(--navy); color: var(--white); }
.project-next h2 { max-width: 16ch; margin: 10px 0 0; }
.project-next-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.project-next .project-button--secondary { color: var(--white); border-color: rgba(255,255,255,0.24); }
.project-next .project-button--secondary:hover { color: var(--gold); background: rgba(255,255,255,0.06); }
.project-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; padding: 30px 24px; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08); color: var(--muted); font-size: var(--text-sm); }
.project-footer a:hover { color: var(--gold); }
.not-found { display: flex; min-height: 100vh; max-width: 760px; margin: 0 auto; padding: 170px 24px 96px; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found h1 { margin: 12px 0 18px; font-size: clamp(3.2rem, 8vw, 6.5rem); }
.not-found p:not(.project-eyebrow) { margin-bottom: 30px; color: var(--muted); font-size: var(--text-lg); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { width: min(610px, 92vw); margin: 0 auto; }
  .product-card { grid-template-columns: 1fr; gap: 24px; }
  .product-card.reverse { direction: ltr; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card--feature { grid-column: auto; grid-template-columns: 1fr; }
  .case-image--photo { min-height: 360px; }
  .systems-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts div:nth-child(2) { border-right: 0; }
  .project-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .project-next { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { min-height: auto; padding: 130px 0 70px; }
  .hero-inner { gap: 52px; }
  .hero-ctas { flex-direction: column; }
  .hero-ecosystem { width: 112%; margin-left: -6%; aspect-ratio: 1.05; transform: none; }
  .ecosystem-window { inset: 4% 0 13%; }
  .ecosystem-window-bar { grid-template-columns: 48px 1fr 48px; }
  .ecosystem-secure { font-size: 0; }
  .ecosystem-secure::after { content: '●'; font-size: 0.625rem; }
  .ecosystem-app { grid-template-columns: 48px 1fr; }
  .ecosystem-sidebar { padding-inline: 8px; }
  .ecosystem-main { padding: 20px 15px; }
  .ecosystem-sync { display: none; }
  .ecosystem-metrics { gap: 6px; }
  .ecosystem-metric { padding: 9px; }
  .ecosystem-row small { display: none; }
  .ecosystem-card--website { display: none; }
  .ecosystem-card--mobile { right: -1%; top: auto; bottom: 0; transform: rotate(3deg) scale(0.84); transform-origin: bottom right; }
  .hero-trust { margin-top: 36px; }
  .systems-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .case-image--photo { min-height: 260px; }
  .case-card--feature .case-body { padding: 28px; }
  .project-article { padding-top: 120px; padding-bottom: 64px; }
  .project-back { margin-bottom: 40px; }
  .project-hero h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .project-facts { grid-template-columns: 1fr; }
  .project-facts div { border-right: 0; border-bottom: 1px solid var(--border); }
  .project-facts div:last-child { border-bottom: 0; }
  .project-two-col { grid-template-columns: 1fr; gap: 48px; }
  .project-built li { grid-template-columns: 52px 1fr; font-size: var(--text-base); }
  .project-next { padding: 34px 26px; }
}
