@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --teal: #00CEA6;
  --teal-muted: rgba(0, 206, 166, 0.65);
  --neon: #42f5d0;
  --teal-light: rgba(0, 206, 166, 0.1);
  --teal-hover: #00b592;
  --dark: #0A0F1C;
  --live-bg: #050910;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  --orange: #F59E0B;
  --red: #EF4444;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --sh-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --sh-md: 0 10px 15px -3px rgba(0,0,0,0.05);
  --sh-lg: 0 20px 25px -5px rgba(0,0,0,0.05);

  /* Layout: one width + gutter everywhere (nav, sections, footer) */
  --layout-max: min(1410px, 100%);
  --layout-pad-x: clamp(18px, 4.5vw, 40px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans); color: var(--gray-800);
  background: var(--white); line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.heading-font { font-family: var(--font-heading); }
.mono { font-family: var(--font-mono); }
.accent { color: var(--teal); }

/* Stroke icons inherit brand teal everywhere */
.sk-icon {
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sk-icon svg {
  display: block;
}
.sk-icon-svg,
.sk-icon svg {
  stroke: currentColor;
}

.container {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-inline: var(--layout-pad-x);
}
.container-sm {
  width: 100%;
  max-width: min(832px, 100%);
  margin-inline: auto;
  padding-inline: var(--layout-pad-x);
}

/* ─── TYPOGRAPHY ─── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--gray-500); letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 24px; height: 2px; background: var(--teal);
}
.section-title {
  font-family: var(--font-heading); font-size: 36px; font-weight: 700;
  line-height: 1.15; color: var(--gray-900); letter-spacing: -1px;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 16px; color: var(--gray-500); line-height: 1.7; max-width: 600px;
}

@media (max-width: 768px) {
  .section-title { font-size: 28px; }
  .section-desc { font-size: 15px; }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  padding: 12px 24px; border-radius: 8px; border: none;
  cursor: pointer; transition: all 0.2s ease;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,206,166,0.2); }
.btn-arrow::after { content: '\2192'; margin-left: 4px; }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-200); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-white { background: var(--white); color: var(--gray-900); }
.btn-white:hover { background: var(--gray-50); transform: translateY(-1px); }
.btn-white-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.2); color: var(--white); }
.btn-white-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05); transition: all 0.3s ease;
  height: 72px; display: flex; align-items: center;
}
.nav.scrolled { height: 64px; box-shadow: var(--sh-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--layout-max); margin-inline: auto;
  padding-inline: var(--layout-pad-x);
}
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* Language Dropdown */
.lang-dropdown { position: relative; display: inline-block; }
.lang-toggle {
  background: transparent; border: none; font-family: var(--font-sans);
  font-size: 14px; font-weight: 600; color: var(--gray-600);
  cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 8px;
}
.lang-toggle:hover { color: var(--teal); }
.lang-menu {
  position: absolute; top: 100%; right: 0; margin-top: 4px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-sm); box-shadow: var(--sh-md);
  padding: 8px; display: none; flex-direction: column; min-width: 140px;
  z-index: 200;
}
.lang-dropdown:hover .lang-menu { display: flex; }
.lang-opt {
  background: transparent; border: none; padding: 10px 16px;
  text-align: left; font-size: 14px; font-family: var(--font-sans);
  cursor: pointer; border-radius: 4px; color: var(--gray-600);
  transition: all 0.2s;
}
.lang-opt:hover { background: var(--gray-50); color: var(--teal); }
.lang-opt.active { font-weight: 600; color: var(--teal); background: var(--teal-light); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 24px; height: 20px; position: relative; flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--gray-800);
  transition: 0.3s;
}

.mobile-nav {
  position: fixed; inset: 0; top: 72px; background: var(--white);
  z-index: 99; display: flex; flex-direction: column;
  padding: 28px var(--layout-pad-x);
  gap: 24px; transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { font-family: var(--font-heading); font-size: 20px; font-weight: 600; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .hamburger { display: flex; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: clamp(120px, 18vh, 148px) 0 clamp(72px, 10vh, 96px);
  overflow: hidden;
  background: var(--gray-50);
}
.hero-copy { text-align: left; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 68% 35%, rgba(0, 206, 166, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 15% 70%, rgba(14, 165, 233, 0.08) 0%, transparent 48%),
    linear-gradient(110deg, #f8fafc 0%, #f4fbfb 42%, #ecfdf5 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(248,250,252,0.97) 0%, rgba(248,250,252,0.88) 40%, rgba(248,250,252,0.55) 65%, rgba(248,250,252,0.1) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.22fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,206,166,0.1); border: 1px solid rgba(0,206,166,0.3);
  padding: 6px 14px; border-radius: 30px; margin-bottom: 24px;
  font-size: 13px; font-weight: 600; color: #00a484;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 8px var(--teal); animation: pulse 2s infinite;
}
.hero-title {
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.35em;
}
.hero-title-accent {
  color: var(--teal);
}
.hero-desc {
  margin: 10px 0 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--gray-600);
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin: 18px 0 28px;
  justify-content: flex-start;
}
.hero .section-title.hero-title { margin-bottom: 0.35em; }
.hero-stats {
  display: flex; gap: 40px; border-top: 1px solid var(--gray-200); padding-top: 32px;
}
.hero-stat .num { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--gray-900); }
.hero-stat .label { font-size: 12px; color: var(--gray-500); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px;}
.hero-visual {
  position: relative;
  width: 100%;
  min-height: clamp(340px, 42vw, 520px);
  height: clamp(380px, 52vw, 640px);
  max-height: 680px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}
.hero-3d-mount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-3d-mount canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}
.hero-visual #sensor-tooltip,
.hero-visual .sensor-tt {
  position: absolute;
  left: 0;
  top: 0;
}
.sensor-tt {
  position: absolute;
  background: var(--white);
  border-left: 3px solid var(--teal);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: var(--sh-md);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% + 8px));
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  font-size: 12px;
  white-space: nowrap;
}
.sensor-tt.show {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 8px));
}
.sensor-tt .tt-name { font-weight: 600; margin-bottom: 4px; }
.sensor-tt .tt-row { display: flex; align-items: center; gap: 8px; }
.sensor-tt .tt-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.sensor-tt .tt-badge.ok { color: var(--teal); border: 1px solid var(--teal); }
.sensor-tt .tt-badge.warn { color: var(--orange); border: 1px solid var(--orange); }
.canvas-fallback-msg {
  display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 14px; font-family: var(--font-mono);
}

@media (max-width: 968px) {
  .hero { padding: 112px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(34px, 8vw, 40px); }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-visual {
    min-height: 300px;
    height: min(380px, 58vw);
    max-height: 420px;
  }
}

/* ─── PLATFORM SHOWCASE (IMAGES) ─── */
.platform-section { padding: 80px 0; background: var(--dark); color: var(--white); }
.platform-showcase {
  display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 48px;
}
.platform-img-wrapper {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); background: #0f172a;
}
.platform-img-wrapper img { width: 100%; height: auto; object-fit: cover; }
.showcase-grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; }
@media (max-width: 900px) {
  .showcase-grid-2 { grid-template-columns: 1fr; }
}

/* ─── LIVE SYSTEM VIEW (wireframe + metrics) ─── */
.gears-section,
.live-system-section {
  position: relative;
  padding: clamp(44px, 6vw, 72px) 0;
  background: radial-gradient(ellipse 140% 80% at 50% -20%, rgba(0, 206, 166, 0.09) 0%, transparent 50%),
    var(--live-bg);
  overflow-x: hidden;
}

.live-system-wrap { position: relative; z-index: 2; }

.live-system-head {
  width: min(820px, calc(100% - (var(--layout-pad-x) * 2)));
  text-align: center;
  margin: 0 auto;
  padding-top: 0;
  position: absolute;
  top: clamp(24px, 4vw, 44px);
  left: 0;
  right: 0;
  z-index: 12;
}
.section-label--live {
  justify-content: center;
  margin-inline: auto;
  color: var(--neon);
  letter-spacing: 0.28em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
}
.section-label--live::before {
  background: var(--neon);
  box-shadow: 0 0 12px rgba(66, 245, 208, 0.45);
}
.live-system-title {
  color: var(--white);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 0;
  line-height: 1.22;
  padding-bottom: 4px;
}

.live-system-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(300px, 1fr) minmax(220px, 320px);
  min-height: clamp(640px, 54vw, 760px);
  align-items: center;
  position: relative;
  z-index: 2;
  gap: clamp(24px, 4vw, 56px);
}

.live-system-col--left,
.live-system-col--right {
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 10;
}

.live-system-col--left {
  grid-column: 1;
  justify-self: start;
  align-self: start;
  margin-top: clamp(220px, 22vw, 290px);
}

.live-system-col--right {
  grid-column: 3;
  justify-self: end;
  align-self: start;
  margin-top: clamp(110px, 11vw, 150px);
}

.live-system-col--center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.live-gears-canvas {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  min-height: 600px;
  margin: 0 auto;
  position: relative;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 206, 166, 0.08) 0%, transparent 65%);
}
.live-gears-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.live-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: 0;
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  animation: float-drift 7s ease-in-out infinite;
}

.live-metric-item {
  padding: 24px;
}

.live-metric-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 0 16px;
}
.live-system-col--left .live-metric-card:nth-child(2),
.live-system-col--right .live-metric-card:nth-child(2) {
  animation-delay: -3.5s;
}
.live-metric-card:hover {
  border-color: rgba(66, 245, 208, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}
.live-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
  color: var(--teal);
  background: rgba(0, 206, 166, 0.11);
  border: 1px solid rgba(0, 206, 166, 0.32);
  box-shadow: 0 0 0 1px rgba(0, 206, 166, 0.04) inset;
}
.live-metric-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.live-metric-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 38px);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.live-metric-value--text {
  color: var(--white);
}
.live-metric-plus {
  font-size: 0.65em;
  font-weight: 700;
  color: var(--teal-muted);
}
.live-metric-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  line-height: 1.35;
}
.live-metric-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(241, 245, 249, 0.82);
}

.live-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}
.live-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--neon));
  border-radius: 2px;
}

@keyframes float-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 1024px) {
  .live-system-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head head"
      "center center"
      "left right";
    min-height: auto;
    gap: 20px;
  }
  .live-system-head {
    grid-area: head;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    margin: 0 auto 24px;
  }
  .live-system-col--center {
    grid-area: center;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    transform: none;
    z-index: 0;
    margin-top: 0;
    margin-bottom: 8px;
  }
  .live-system-col--left,
  .live-system-col--right {
    align-self: start;
    margin-top: 0;
  }
  .live-system-col--left { grid-area: left; justify-self: end; }
  .live-system-col--right { grid-area: right; justify-self: start; }
  .live-gears-canvas { max-height: 420px; min-height: 320px; }
}

@media (max-width: 720px) {
  .live-system-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-areas: unset;
    gap: 16px;
  }
  /* Reference order: headline, left column, graphic, right column */
  .live-system-head { margin-bottom: 20px; }
  .live-system-col--center { margin-top: 0; margin-bottom: 0; order: 3; }
  .live-system-col--left { order: 2; }
  .live-system-col--right { order: 4; }
  .live-metric-card { animation: none; }
  .live-gears-canvas {
    margin-top: 0;
    min-height: 280px;
    height: clamp(260px, 62vw, 360px);
  }
}

.calc-section.section {
  padding: clamp(72px, 10vw, 112px) 0;
  background: #f8fafc;
  border-block: 1px solid rgba(15, 23, 42, 0.04);
}
.calc-grid {
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.calc-copy .calc-cost-label {
  color: var(--gray-500);
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 12px;
}
.calc-intro {
  max-width: 520px;
  margin-top: 10px !important;
  margin-bottom: 6px !important;
}
.calc-pain-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.calc-pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.calc-pain-list li:last-child { border-bottom: none; padding-bottom: 0; }
.calc-pain-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 206, 166, 0.1);
  border: 1px solid rgba(0, 206, 166, 0.26);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.calc-pain-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.calc-pain-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  display: block;
  margin-bottom: 6px;
}
.calc-pain-desc {
  font-size: 14px;
  line-height: 1.62;
  color: var(--gray-500);
  margin: 0;
}

.calc-panel-wrap { margin-top: 0; align-self: start; width: 100%; }
.calc-box--elevated {
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 24px 48px rgba(15, 23, 42, 0.08);
  padding-top: clamp(28px, 4vw, 36px);
  padding-inline: clamp(24px, 4vw, 40px);
  padding-bottom: 32px;
}
.calc-box-head { margin-bottom: 28px; }
.calc-box-title {
  font-size: clamp(22px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.calc-box-lead {
  max-width: none;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.62;
}

.calc-result-divider {
  border-top: 1px solid rgba(0, 206, 166, 0.18);
  padding-top: 16px;
  margin-top: 4px;
}
.calc-result .accent-label {
  font-weight: 600 !important;
  color: var(--gray-700) !important;
}

@media (max-width: 768px) {
  .calc-pain-icon { width: 40px; height: 40px; }
}

/* ─── SAVINGS CALCULATOR ─── */
.calc-box {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); padding: 40px; box-shadow: var(--sh-md);
  width: 100%; text-align: left;
}
.calc-row { margin-bottom: 20px; }
.calc-row label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.calc-result {
  background: linear-gradient(145deg, rgba(236, 253, 249, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  border: 1px solid rgba(0, 206, 166, 0.14);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin-top: 28px;
  border-left-width: 4px;
  border-left-color: var(--teal);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.calc-result > div { display: flex; justify-content: space-between; align-items: center; }
.calc-result .label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.calc-result .val { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--gray-900); }
.calc-result .val.accent { color: var(--teal); font-size: 30px; }
.calc-cta { margin-top: 24px; display: flex; gap: 12px; align-items: center; }
.calc-cta small { font-size: 12px; color: var(--gray-400); }

/* ─── GENERAL SECTIONS ─── */
.section { padding: clamp(72px, 12vw, 104px) 0; }
.section-alt { padding: clamp(72px, 12vw, 104px) 0; background: var(--gray-50); }
.section-dark { padding: clamp(72px, 12vw, 104px) 0; background: var(--dark); color: var(--white); }
.navy-mid { background: rgba(30, 41, 59, 0.5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 44px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section, .section-alt { padding: clamp(48px, 10vw, 72px) 0; }
}

.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-md); padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--teal-light); }
.card-icon { font-size: 32px; margin-bottom: 16px; }

/* ─── INTEGRATION GRID ─── */
.int-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-md); padding: 20px; text-align: center;
  transition: all 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.int-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.int-card .icon { font-size: 28px; margin-bottom: 12px; }
.int-card .name { font-weight: 600; font-size: 14px; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300);
  border-radius: var(--r-sm); font-family: var(--font-sans); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light); }
select.form-input { appearance: none; background: #fff url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 16px top 50%; background-size: 10px auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.8); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay:not(.open) {
  visibility: hidden;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.modal {
  background: var(--white); border-radius: var(--r-xl); padding: 40px;
  width: 100%; max-width: 560px; position: relative;
  transform: translateY(20px) scale(0.95); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 32px; height: 32px;
  background: var(--gray-100); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-600); transition: background 0.2s;
}
.modal-close:hover { background: var(--gray-200); }

/* ─── QUIZ MODAL ─── */
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fade-in 0.3s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
.quiz-question {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  margin-bottom: 24px; color: var(--gray-900);
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md); cursor: pointer;
  transition: all .2s; font-size: 15px; font-weight: 500;
}
.quiz-opt:hover { border-color: var(--teal); background: var(--teal-light); }
.quiz-opt.selected { border-color: var(--teal); background: var(--teal-light); }
.quiz-opt .radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0, 206, 166, 0.45);
  background: rgba(0, 206, 166, 0.06);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.quiz-opt:hover .radio {
  border-color: var(--teal);
  background: rgba(0, 206, 166, 0.1);
}
.quiz-opt.selected .radio {
  border-color: var(--teal);
  background: rgba(0, 206, 166, 0.15);
  box-shadow: 0 0 0 1px rgba(0, 206, 166, 0.2);
}
.quiz-opt.selected .radio::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--teal) 0%, #00b592 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.quiz-progress { display: flex; gap: 8px; margin-bottom: 32px; }
.quiz-progress .dot {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--gray-200); transition: background .3s;
}
.quiz-progress .dot.done { background: var(--teal); }
.quiz-progress .dot.current { background: var(--teal); opacity: 0.5; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 32px; }
.quiz-result { text-align: center; padding: 32px 0; }
.quiz-result .checkmark {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal); display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 32px; font-weight: bold;
}

/* ─── FAQ ─── */
.faq-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 48px;
  max-width: 980px;
}
.faq-category-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.faq-category-nav a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}
.faq-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}
.faq-category {
  scroll-margin-top: 96px;
}
.faq-category-title {
  font-family: var(--font-heading);
  color: var(--teal);
  font-size: 24px;
  margin-bottom: 20px;
}
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--r-md);
  margin-bottom: 12px; background: var(--white); overflow: hidden;
}
.faq-q {
  padding: 20px 24px; font-family: var(--font-heading); font-weight: 600; font-size: 16px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--gray-50); }
.faq-a {
  padding: 0 24px; font-size: 15px; color: var(--gray-600);
  max-height: 0; opacity: 0; transition: all 0.3s ease;
}
.faq-item.open .faq-a { padding: 0 24px 24px; max-height: 900px; opacity: 1; }
.faq-item .icon { font-size: 20px; color: var(--teal); transition: transform 0.3s; }
.faq-item.open .icon { transform: rotate(45deg); }

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--teal); padding: 80px 0; text-align: center; color: var(--white);
}
.cta-banner h2 { font-family: var(--font-heading); font-size: 40px; margin-bottom: 16px; }
.cta-banner p { font-size: 18px; opacity: 0.9; margin-bottom: 40px; }
.cta-banner .actions { display: flex; gap: 16px; justify-content: center; }

/* ─── FOOTER ─── */
.footer { background: var(--dark); color: var(--gray-400); padding: 80px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 64px; }
.footer-brand img { height: 32px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer h5 { font-family: var(--font-heading); color: var(--white); font-size: 16px; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a:hover { color: var(--teal); }
.footer-disabled-link,
.footer-disabled-link:hover {
  opacity: 0.5;
  cursor: default;
  color: inherit;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 1024px) {
  .faq-category-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-banner .actions { flex-direction: column; }
}

@media (max-width: 640px) {
  .faq-category-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  .faq-category-nav a { flex: 0 0 auto; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .showcase-grid-2 { grid-template-columns: 1fr; }
}

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,206,166,0.4); } 70% { box-shadow: 0 0 0 10px rgba(0,206,166,0); } 100% { box-shadow: 0 0 0 0 rgba(0,206,166,0); } }
