/* ════════════════════════════════════════════
   CorroSense.ai — Main Stylesheet
   Version: 1.0.0
   ════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Barlow', sans-serif;
  background: #050E1F;
  color: #F5F9FF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* ── DESIGN TOKENS ── */
:root {
  --ink:        #050E1F;
  --ink2:       #0A1930;
  --ink3:       #0D2040;
  --blue:       #1763E8;
  --blue2:      #2E7FFF;
  --blue3:      #5BA3FF;
  --cyan:       #00C6FF;
  --mint:       #00E5A0;
  --mint2:      #2EF7B8;
  --rust:       #E84C1A;
  --rust2:      #FF7A50;
  --steel:      #8BA4C8;
  --white:      #F5F9FF;
  --border:     rgba(255,255,255,0.08);
  --border2:    rgba(255,255,255,0.13);
  --glass:      rgba(10,25,48,0.76);

  --R: 'Rajdhani', sans-serif;
  --B: 'Barlow', sans-serif;
  --M: 'DM Mono', monospace;

  --nav-h: 68px;
  --section-px: clamp(20px, 6vw, 88px);
  --section-py: clamp(56px, 8vw, 96px);
  --radius: 4px;

  --transition: 0.22s ease;
}

/* ── TYPOGRAPHY UTILITIES ── */
.eyebrow {
  font-family: var(--M);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue2);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--blue2);
  flex-shrink: 0;
}
.section-h2 {
  font-family: var(--R);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.06;
  margin-bottom: 14px;
}
.section-lead {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 300;
  color: rgba(245,249,255,0.55);
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 52px;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(5,14,31,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  padding: 0 var(--section-px);
  gap: 32px;
}
.nav.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,0.4); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 38px; height: 38px;
  border-radius: 7px;
  background: rgba(23,99,232,0.16);
  border: 1px solid rgba(23,99,232,0.38);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-fallback {
  font-family: var(--R);
  font-size: 17px; font-weight: 700;
  color: var(--blue2); line-height: 1;
  display: none;
}
/* nav-wordmark */
.nav-wordmark {
  font-family: var(--R);
  font-size: 21px; font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em; line-height: 1;
}
.nav-wordmark span { color: var(--blue2); }
.nav-wordmark sup {
  font-size: 10px; color: var(--steel);
  font-family: var(--M); font-weight: 400;
  vertical-align: super; margin-left: 1px;
}

.nav-links {
  display: flex; gap: 0; flex: 1; justify-content: center;
}
.nav-link {
  font-family: var(--B);
  font-size: 14px; font-weight: 500;
  color: rgba(245,249,255,0.6);
  padding: 0 16px; height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); border-color: rgba(46,127,255,0.4); }
.nav-link.active { color: var(--white); border-color: var(--blue2); }

.nav-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.btn-ghost-nav {
  font-family: var(--B); font-size: 13px; font-weight: 500;
  color: rgba(245,249,255,0.65);
  background: transparent;
  border: 1px solid var(--border2);
  padding: 7px 16px; border-radius: var(--radius);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap; display: inline-block;
}
.btn-ghost-nav:hover {
  color: var(--white); border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}
.btn-demo-nav {
  font-family: var(--B); font-size: 13px; font-weight: 600;
  color: #fff; background: var(--blue);
  padding: 8px 20px; border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-demo-nav:hover { background: var(--blue2); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 8px; margin-left: auto; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(5,14,31,0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  z-index: 999;
  padding: 16px var(--section-px) 24px;
  flex-direction: column; gap: 4px;
}
.nav-drawer.open { display: flex; }
.drawer-link {
  font-family: var(--B); font-size: 15px; font-weight: 500;
  color: rgba(245,249,255,0.65);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
  display: block;
}
.drawer-link:hover { color: var(--white); }
.drawer-link:last-of-type { border-bottom: none; }
.drawer-actions {
  display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: clamp(480px, 90vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,14,31,0.96) 0%,
    rgba(5,14,31,0.80) 55%,
    rgba(5,14,31,0.30) 100%
  );
  z-index: 1;
}
/* On smaller screens overlay is much more opaque so text is always readable */
@media (max-width: 820px) {
  .hero-overlay {
    background: rgba(5,14,31,0.88);
  }
}
.hero-inner {
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  padding: clamp(48px,8vw,88px) var(--section-px) clamp(32px,5vw,56px);
  gap: clamp(32px,4vw,52px);
}
.hero-content {
  max-width: min(640px, 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(0,229,160,0.07);
  border: 1px solid rgba(0,229,160,0.22);
  border-radius: 3px; padding: 6px 14px; margin-bottom: 26px;
  flex-wrap: wrap;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.28} }
.badge-txt {
  font-family: var(--M); font-size: 11px;
  color: var(--mint); letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-h1 {
  font-family: var(--R);
  font-size: clamp(40px, 7.5vw, 72px);
  font-weight: 700; line-height: 0.94;
  letter-spacing: -0.025em; color: var(--white);
  margin-bottom: 22px;
}
.hero-h1 .accent { color: var(--blue2); }
.hero-h1 .muted {
  font-weight: 400; color: rgba(245,249,255,0.42);
  font-size: clamp(32px, 6vw, 58px);
}
.hero-sub {
  font-size: clamp(14px, 1.6vw, 16px); font-weight: 300;
  color: rgba(245,249,255,0.60); line-height: 1.78;
  margin-bottom: 36px; max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  font-family: var(--B); font-size: 15px; font-weight: 600;
  color: #fff; background: var(--blue);
  padding: 13px 28px; border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: background var(--transition), transform 0.15s;
  display: inline-block; text-align: center;
}
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); }
.btn-outline {
  font-family: var(--B); font-size: 15px; font-weight: 400;
  color: rgba(245,249,255,0.72);
  border: 1px solid rgba(245,249,255,0.2);
  padding: 13px 26px; border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
  display: inline-block; text-align: center;
}
.btn-outline:hover { border-color: rgba(245,249,255,0.5); color: var(--white); }

/* Hero stat pills — horizontal strip below content */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 860px;
}
.stat-pill {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 13px 16px;
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.stat-icon {
  width: 30px; height: 30px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.si-mint { background: rgba(0,229,160,0.1);  border: 1px solid rgba(0,229,160,0.25); }
.si-blue { background: rgba(46,127,255,0.12); border: 1px solid rgba(46,127,255,0.28); }
.si-rust { background: rgba(232,76,26,0.12);  border: 1px solid rgba(232,76,26,0.25); }
.si-cyan { background: rgba(0,198,255,0.1);   border: 1px solid rgba(0,198,255,0.25); }
.stat-val {
  font-family: var(--R); font-size: 22px; font-weight: 700;
  line-height: 1; margin-bottom: 3px;
}
.sv-mint { color: var(--mint); }
.sv-blue { color: var(--blue2); }
.sv-rust { color: var(--rust2); }
.sv-cyan { color: var(--cyan); }
.stat-val .unit { font-size: 13px; font-weight: 400; }
.stat-lbl {
  font-family: var(--M); font-size: 10px;
  color: rgba(245,249,255,0.35); letter-spacing: 0.08em;
}

/* ════════════════════════════════════════
   TICKER
════════════════════════════════════════ */
.ticker {
  background: var(--ink2);
  border-bottom: 1px solid var(--border);
  height: clamp(36px, 5vw, 42px);
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Pause on hover */
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
  animation: ticker-scroll 32s linear infinite;
  white-space: nowrap;
  will-change: transform;
  flex-shrink: 0;
  min-width: max-content;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tick-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1vw, 9px);
  flex-shrink: 0;
}
.tick-label {
  font-family: var(--M);
  font-size: clamp(9px, 1.1vw, 10px);
  color: rgba(245,249,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tick-val {
  font-family: var(--M);
  font-size: clamp(9px, 1.1vw, 10px);
  color: var(--mint);
}
.tick-sep {
  color: rgba(255,255,255,0.1);
  font-size: clamp(11px, 1.5vw, 14px);
  flex-shrink: 0;
  line-height: 1;
}

/* ════════════════════════════════════════
   SECTIONS
════════════════════════════════════════ */
.section { padding: var(--section-py) var(--section-px); }
.section-dark  { background: var(--ink); }
.section-mid   { background: var(--ink2); }

/* ════════════════════════════════════════
   SOLUTIONS
════════════════════════════════════════ */
.sol-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 2px; overflow: hidden;
}
.sol-card {
  background: var(--ink); position: relative; overflow: hidden;
  padding: clamp(20px, 2.5vw, 34px) clamp(18px, 2.2vw, 28px);
  transition: background var(--transition);
}
.sol-card:hover { background: rgba(23,99,232,0.07); }
.sol-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.sol-card:hover::after { transform: scaleX(1); }
.sc-b1::after { background: var(--blue2); }
.sc-b2::after { background: var(--mint); }
.sc-b3::after { background: var(--rust2); }
.sc-b4::after { background: var(--cyan); }
.sc-b5::after { background: var(--blue3); }
.sc-b6::after { background: var(--mint2); }
.sol-num {
  font-family: var(--M); font-size: 10px;
  color: rgba(245,249,255,0.2); letter-spacing: 0.1em; margin-bottom: 16px;
}
.sol-title {
  font-family: var(--R);
  font-size: clamp(14px, 1.5vw, 18px); font-weight: 600;
  color: var(--white); margin-bottom: 10px; letter-spacing: 0.01em;
}
.sol-body {
  font-size: clamp(12px, 1vw, 13px); font-weight: 300;
  color: rgba(245,249,255,0.48); line-height: 1.72;
}
.sol-badge {
  display: inline-block; margin-top: 16px;
  font-family: var(--M); font-size: 10px;
  padding: 4px 10px; border-radius: 3px;
}
.sb-blue { color: var(--blue2); background: rgba(46,127,255,0.1);  border: 1px solid rgba(46,127,255,0.22); }
.sb-mint { color: var(--mint);  background: rgba(0,229,160,0.08);  border: 1px solid rgba(0,229,160,0.18); }
.sb-rust { color: var(--rust2); background: rgba(232,76,26,0.1);   border: 1px solid rgba(232,76,26,0.22); }
.sb-cyan { color: var(--cyan);  background: rgba(0,198,255,0.08);  border: 1px solid rgba(0,198,255,0.2); }

/* ════════════════════════════════════════
   TECHNOLOGY
════════════════════════════════════════ */
.tech-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.tech-canvas-wrap {
  position: relative;
  height: clamp(300px, 38vw, 440px);
  display: flex; align-items: center; justify-content: center;
}
#techCanvas { width: 100%; height: 100%; display: block; }
.tech-list { display: flex; flex-direction: column; gap: 24px; }
.tech-item { display: flex; gap: 16px; align-items: flex-start; }
.tech-bullet {
  width: 36px; height: 36px; border-radius: 5px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.tb-blue { background: rgba(23,99,232,0.14); border: 1px solid rgba(23,99,232,0.3); }
.tb-mint { background: rgba(0,229,160,0.1);  border: 1px solid rgba(0,229,160,0.22); }
.tb-cyan { background: rgba(0,198,255,0.1);  border: 1px solid rgba(0,198,255,0.22); }
.tb-rust { background: rgba(232,76,26,0.1);  border: 1px solid rgba(232,76,26,0.25); }
.tech-item-title {
  font-family: var(--R);
  font-size: clamp(14px, 1.4vw, 17px); font-weight: 600;
  color: var(--white); margin-bottom: 5px;
}
.tech-item-body {
  font-size: clamp(12px, 1vw, 13px); font-weight: 300;
  color: rgba(245,249,255,0.48); line-height: 1.68;
}

/* ════════════════════════════════════════
   NEWS
════════════════════════════════════════ */
.news-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; gap: 16px; flex-wrap: wrap;
}
.btn-all-news {
  font-family: var(--B); font-size: 13px; font-weight: 500;
  color: var(--blue2); background: transparent;
  border: 1px solid rgba(46,127,255,0.3);
  padding: 8px 18px; border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
.btn-all-news:hover { background: rgba(46,127,255,0.08); border-color: rgba(46,127,255,0.5); }
.news-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}
.news-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 3px;
  overflow: hidden; cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform 0.2s;
}
.news-card:hover {
  border-color: rgba(46,127,255,0.38);
  background: rgba(23,99,232,0.05);
  transform: translateY(-2px);
}
.news-thumb {
  background: var(--ink3); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.news-thumb svg { opacity: 0.35; }
.news-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--M); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
}
.nt-blue { color: var(--blue2); background: rgba(23,99,232,0.3);  border: 1px solid rgba(46,127,255,0.3); }
.nt-mint { color: var(--mint);  background: rgba(0,229,160,0.14); border: 1px solid rgba(0,229,160,0.25); }
.nt-rust { color: var(--rust2); background: rgba(232,76,26,0.14); border: 1px solid rgba(232,76,26,0.28); }
.news-body { padding: clamp(14px, 1.8vw, 20px); }
.news-date {
  font-family: var(--M); font-size: 10px;
  color: rgba(245,249,255,0.28); letter-spacing: 0.06em; margin-bottom: 8px;
}
.news-title {
  font-family: var(--R);
  font-size: clamp(13px, 1.3vw, 16px); font-weight: 600;
  color: var(--white); line-height: 1.32; margin-bottom: 8px;
}
.news-excerpt {
  font-size: 12px; font-weight: 300;
  color: rgba(245,249,255,0.45); line-height: 1.68;
}

/* ════════════════════════════════════════
   COMPANY
════════════════════════════════════════ */
.company-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px); align-items: center;
}
.company-visual {
  position: relative;
  height: clamp(280px, 35vw, 420px);
  background: rgba(10,25,48,0.5);
  border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
#companyCanvas { width: 100%; height: 100%; display: block; }
.trust-logos {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px;
}
.trust-logo {
  padding: 7px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  font-family: var(--R); font-size: clamp(11px, 1.1vw, 14px); font-weight: 600;
  color: rgba(245,249,255,0.42); letter-spacing: 0.04em;
  transition: border-color var(--transition), color var(--transition);
}
.trust-logo:hover { border-color: rgba(255,255,255,0.18); color: rgba(245,249,255,0.72); }
.kpi-row {
  display: flex; gap: clamp(18px, 3vw, 40px);
  margin-top: 34px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}
.kpi-num {
  font-family: var(--R);
  font-size: clamp(22px, 2.8vw, 32px); font-weight: 700;
  color: var(--blue2); line-height: 1; margin-bottom: 6px;
}
.kpi-lbl {
  font-size: 12px; font-weight: 300;
  color: rgba(245,249,255,0.38); line-height: 1.5; max-width: 120px;
}

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
}
.contact-tagline {
  font-family: var(--R);
  font-size: clamp(20px, 2.5vw, 28px); font-weight: 600;
  color: var(--white); line-height: 1.2; margin-bottom: 18px;
}
.contact-body {
  font-size: clamp(13px, 1.2vw, 15px); font-weight: 300;
  color: rgba(245,249,255,0.5); line-height: 1.78; margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.cd-row { display: flex; align-items: flex-start; gap: 14px; }
.cd-icon {
  width: 36px; height: 36px; border-radius: 5px; flex-shrink: 0;
  background: rgba(23,99,232,0.1); border: 1px solid rgba(23,99,232,0.24);
  display: flex; align-items: center; justify-content: center;
}
.cd-label {
  font-family: var(--M); font-size: 10px;
  color: rgba(245,249,255,0.3); letter-spacing: 0.08em; margin-bottom: 3px;
}
.cd-val {
  font-size: clamp(12px, 1.1vw, 14px); color: rgba(245,249,255,0.65); line-height: 1.55;
}

/* Form */
.contact-form-wrap { }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.form-label {
  font-family: var(--M); font-size: 10px;
  color: rgba(245,249,255,0.38); letter-spacing: 0.1em; text-transform: uppercase;
}
.req { color: var(--rust2); }
.form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px; padding: 11px 14px;
  font-family: var(--B); font-size: 14px;
  color: var(--white); outline: none; width: 100%;
  transition: border-color var(--transition);
  -webkit-appearance: none; appearance: none;
}
.form-control::placeholder { color: rgba(245,249,255,0.2); }
.form-control:focus { border-color: rgba(46,127,255,0.55); }
.form-control.error { border-color: rgba(232,76,26,0.6); }
.form-control.valid { border-color: rgba(0,229,160,0.45); }
.form-textarea { height: 112px; resize: vertical; }
.field-error {
  font-family: var(--M); font-size: 10px;
  color: var(--rust2); letter-spacing: 0.04em; min-height: 14px;
}
.form-submit-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.btn-submit {
  font-family: var(--B); font-size: 14px; font-weight: 600;
  background: var(--blue); color: #fff;
  padding: 13px 28px; border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: background var(--transition), transform 0.15s;
  display: flex; align-items: center; gap: 10px;
  position: relative; overflow: hidden;
}
.btn-submit:hover { background: var(--blue2); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-submit-spinner {
  display: none; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-submit-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status {
  font-family: var(--M); font-size: 12px;
  letter-spacing: 0.04em; line-height: 1.5;
}
.form-status.success { color: var(--mint); }
.form-status.error   { color: var(--rust2); }

/* Honeypot */
.honeypot {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
  background: #020912;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: clamp(40px, 5vw, 64px) var(--section-px) clamp(20px, 3vw, 28px);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px);
}
.footer-brand-name {
  font-family: var(--R);
  font-size: clamp(18px, 2vw, 22px); font-weight: 700;
  color: var(--white); margin-bottom: 12px;
}
.footer-brand-name span { color: var(--blue2); }
.footer-brand-name sup { font-size: 10px; color: var(--steel); font-family: var(--M); font-weight: 400; }
.footer-desc {
  font-size: 12px; font-weight: 300;
  color: rgba(245,249,255,0.3); line-height: 1.78;
  max-width: 244px; margin-bottom: 14px;
}
.footer-sub { font-family: var(--M); font-size: 10px; color: rgba(245,249,255,0.18); letter-spacing: 0.06em; }
.footer-col-title {
  font-family: var(--M); font-size: 10px;
  color: rgba(245,249,255,0.28); text-transform: uppercase;
  letter-spacing: 0.15em; margin-bottom: 16px;
}
.footer-link {
  display: block; font-size: 13px; font-weight: 300;
  color: rgba(245,249,255,0.42); margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-family: var(--M); font-size: 11px; color: rgba(245,249,255,0.2); }
.footer-addr { font-family: var(--M); font-size: 11px; color: rgba(245,249,255,0.18); }

/* ════════════════════════════════════════
   MODAL
════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(2,9,18,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--ink2);
  border: 1px solid var(--border2);
  border-radius: 8px; padding: 36px;
  max-width: 480px; width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 4px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: rgba(245,249,255,0.6); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.modal-eyebrow {
  font-family: var(--M); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue2); margin-bottom: 10px;
}
.modal-title {
  font-family: var(--R); font-size: 26px; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
}
.modal-sub { font-size: 14px; font-weight: 300; color: rgba(245,249,255,0.52); line-height: 1.7; margin-bottom: 24px; }
.modal-body { display: flex; flex-direction: column; gap: 12px; }

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════ */

/* ── ≤1100px — Large tablet / small desktop ── */
@media (max-width: 1100px) {
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .news-card:nth-child(3) { display: none; }
  /* Hero stats: 2×2 grid on tablet */
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ── ≤820px — Tablets ── */
@media (max-width: 820px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav { gap: 12px; }

  /* Hero stats: single row of 2 on tablet */
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 100%; }

  .tech-row { grid-template-columns: 1fr; }
  .tech-canvas-wrap { height: 260px; order: -1; }

  .company-row { grid-template-columns: 1fr; }
  .company-visual { height: 220px; order: -1; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .news-grid { grid-template-columns: 1fr; }
  .news-grid .news-card:nth-child(3) { display: block; }
}

/* ── ≤560px — Mobile ── */
@media (max-width: 560px) {
  .sol-grid { grid-template-columns: 1fr; }
  /* Hero stats: 2-column compact on mobile */
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-pill { padding: 10px 12px; gap: 10px; }
  .stat-val { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .trust-logos { gap: 8px; }
  .trust-logo { padding: 6px 12px; font-size: 12px; }
  .form-submit-row { flex-direction: column; align-items: flex-start; }
  .btn-submit { width: 100%; justify-content: center; }
}

/* ── ≤380px — Small mobile ── */
@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat-pill { padding: 8px 10px; }
  .stat-val { font-size: 16px; }
  .stat-lbl { font-size: 9px; }
}

/* ── Accessibility: reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  .badge-dot { animation: none; }
  .ticker-track { animation: none; }
  .btn-primary:hover, .btn-submit:hover { transform: none; }
}

/* ════════════════════════════════════════
   SOLUTION CARD IMAGE SUPPORT
════════════════════════════════════════ */
.sol-card-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  background: rgba(10,25,48,0.6);
  margin: -clamp(20px,2.5vw,34px) -clamp(18px,2.2vw,28px) 20px;
  width: calc(100% + clamp(36px,5vw,56px));
}
.sol-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.3s, transform 0.4s;
  display: block;
}
.sol-card:hover .sol-card-img img {
  opacity: 0.9;
  transform: scale(1.04);
}
.sol-card-img .sol-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,14,31,0.1) 0%, rgba(5,14,31,0.55) 100%);
}
/* SVG illustration fallback when no image */
.sol-card-svg {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,25,48,0.5);
  margin: -clamp(20px,2.5vw,34px) -clamp(18px,2.2vw,28px) 20px;
  width: calc(100% + clamp(36px,5vw,56px));
  overflow: hidden;
  position: relative;
}
.sol-card-svg svg { opacity: 0.55; }

/* ════════════════════════════════════════
   NEWS CARD IMAGE SUPPORT
════════════════════════════════════════ */
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.4s;
}
.news-card:hover .news-thumb img {
  opacity: 0.9;
  transform: scale(1.04);
}
.news-thumb .news-thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-thumb .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,14,31,0.65) 100%);
  z-index: 1;
}
.news-thumb .news-tag { z-index: 2; }

/* ════════════════════════════════════════
   COMPANY — PILLAR CARDS (replaces KPI row)
════════════════════════════════════════ */
.company-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.company-pillar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 18px 16px;
  transition: background 0.22s, border-color 0.22s;
}
.company-pillar:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
}
.cp-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.cp-icon-blue { background: rgba(23,99,232,0.14); border: 1px solid rgba(46,127,255,0.28); }
.cp-icon-mint { background: rgba(0,229,160,0.1);  border: 1px solid rgba(0,229,160,0.22); }
.cp-icon-rust { background: rgba(232,76,26,0.12); border: 1px solid rgba(255,122,80,0.25); }
.cp-title {
  font-family: var(--R);
  font-size: 15px; font-weight: 700;
  color: var(--white); margin-bottom: 6px;
}
.cp-body {
  font-size: 12px; font-weight: 300;
  color: rgba(245,249,255,0.45); line-height: 1.65;
}

/* ════════════════════════════════════════
   COMPANY VISUAL — keep kpi-row for any
   legacy usage but hide it
════════════════════════════════════════ */
.kpi-row { display: none; }

/* ════════════════════════════════════════
   RESPONSIVE ADDITIONS
════════════════════════════════════════ */
@media (max-width: 820px) {
  .company-pillars { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .company-pillars { grid-template-columns: 1fr; }
  .sol-card-img, .sol-card-svg { height: 120px; }
}
