:root {
  --etec-bg: #05070d;
  --etec-surface: #10131c;
  --etec-surface-soft: #151926;
  --etec-text: #f5f7fb;
  --etec-muted: #a8b0c2;
  --etec-border: rgba(216, 222, 235, 0.18);
  --etec-primary: #7c5cff;
  --etec-primary-strong: #5b3df5;
  --etec-ai: #ff4fd8;
  --etec-violet: #8f6cff;
  --etec-success: #16a34a;
  --etec-warning: #d97706;
  --etec-danger: #dc2626;
  --etec-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --etec-shadow-md: 0 12px 32px rgba(15, 23, 42, 0.12);
  --etec-shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.18);
  --etec-radius: 8px;
  --etec-radius-lg: 14px;
  --etec-dark: #07111f;
  --etec-dark-2: #0f172a;
  --etec-grid: rgba(148, 163, 184, 0.12);
}

body {
  background: var(--etec-bg);
  color: var(--etec-text);
  font-family: "IBM Plex Sans", "Poppins", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body.mobile-nav-open {
  overflow: hidden;
}

body::selection {
  background: rgba(255, 79, 216, 0.28);
}

a {
  color: var(--etec-primary);
}

#header {
  top: 10px;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

#header .container {
  max-width: none;
  width: 100%;
  padding-left: 18px;
  padding-right: 26px;
  justify-content: flex-start !important;
  gap: 14px;
}

#header.header-scrolled,
#header.header-inner-pages {
  top: 0;
  background: rgba(10, 16, 32, 0.88);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

#header .logo {
  font-size: 28px;
  letter-spacing: 0;
  font-weight: 700;
}

#header .logo img {
  max-height: 36px;
}

#header h1.logo {
  margin-right: auto;
}

#header .navbar {
  margin-left: auto;
}

.navbar a,
.navbar a:focus {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.navbar .getstarted,
.navbar .getstarted:focus {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.mobile-nav-toggle {
  color: #ffffff;
  position: relative;
  pointer-events: auto;
  z-index: 10020;
}

.navbar .dropdown ul {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--etec-radius);
  box-shadow: var(--etec-shadow-md);
}

#hero {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 82% 28%, rgba(255, 79, 216, 0.2), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(124, 92, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #05070d 0%, #10131c 52%, #16072b 100%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  color: #ffffff;
  overflow: hidden;
}

#hero.webgl-hero {
  height: auto;
  min-height: 100svh;
  background: #05070d;
}

.hero-webgl-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 79, 216, 0.22), transparent 28%),
    radial-gradient(circle at 18% 14%, rgba(124, 92, 255, 0.28), transparent 34%),
    #05070d;
}

#hero.webgl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.88) 0%, rgba(5, 7, 13, 0.58) 42%, rgba(5, 7, 13, 0.12) 100%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  pointer-events: none;
}

#hero.webgl-hero .container-fluid {
  position: relative;
  z-index: 2;
  padding-left: clamp(28px, 7vw, 132px);
  padding-right: clamp(28px, 7vw, 132px);
}

#hero.webgl-hero .row {
  justify-content: center !important;
}

.hero-copy {
  min-height: calc(100svh - 118px);
  max-width: 860px;
  padding-top: 108px;
  padding-bottom: 58px;
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

.home-page #hero.webgl-hero .row {
  justify-content: flex-start !important;
}

.home-page .hero-copy {
  max-width: 760px;
  align-items: flex-start;
  margin: 0;
  padding-top: 74px;
  text-align: left;
}

.home-page .hero-eyebrow {
  position: absolute;
  top: 38vh;
  left: 68%;
  transform: translateX(-50%);
}

.home-page .hero-eyebrow:hover {
  transform: translateX(-50%) translateY(-1px);
}

#hero h1 {
  max-width: 840px;
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 800;
}

#hero h2 {
  max-width: 760px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
}

.streaming-line {
  min-height: 28px;
  margin: 0 0 22px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.streaming-line span {
  color: #5eead4;
}

.streaming-line span::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 5px;
  background: #5eead4;
  vertical-align: -2px;
  animation: cursorBlink 850ms steps(2, start) infinite;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 10px 15px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  color: #c7d2fe;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-eyebrow:hover {
  color: #ffffff;
  border-color: rgba(94, 234, 212, 0.72);
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-get-started,
#hero .btn-get-started,
.btn-etec-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.btn-get-started,
#hero .btn-get-started {
  background: #ffffff;
  color: #0f172a;
  box-shadow: var(--etec-shadow-md);
}

.btn-get-started:hover,
#hero .btn-get-started:hover {
  background: #dbeafe;
  color: #0f172a;
}

.btn-etec-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-etec-secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  width: min(100%, 720px);
}

.hero-proof-item {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--etec-radius);
  background: rgba(15, 23, 42, 0.42);
}

.hero-proof-item strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
}

.hero-proof-item span {
  display: block;
  margin-top: 4px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
}

.etec-hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: var(--etec-shadow-lg);
}

.ai-scene-wrap {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.1), transparent 48%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(8, 13, 27, 0.94));
}

.ai-scene-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 48%, black, transparent 72%);
}

.ai-scene-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(46vw, 280px);
  height: min(46vw, 280px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.8), transparent 7%),
    radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.42), rgba(37, 99, 235, 0.18) 38%, transparent 66%);
  filter: blur(1px);
  opacity: 0.78;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: neuralOrb 7s ease-in-out infinite;
}

@keyframes neuralOrb {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.68;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 0.9;
  }
}

.ai-scene-wrap canvas,
.etec-hero-panel img {
  position: relative;
  width: 100%;
  height: 480px;
  display: block;
  border-radius: 16px;
}

.agent-status-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--etec-radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.agent-status-card header,
.agent-run-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agent-status-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.16);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 700;
}

.agent-run-row {
  margin-top: 12px;
  color: rgba(226, 232, 240, 0.86);
  font-size: 13px;
}

.agent-progress {
  overflow: hidden;
  width: 112px;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.agent-progress span {
  display: block;
  width: 76%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--etec-primary), var(--etec-ai));
}

.command-preview {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--etec-radius-lg);
  background: rgba(2, 6, 23, 0.44);
  color: rgba(226, 232, 240, 0.82);
}

.command-header,
.command-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-header {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.command-header strong {
  color: #5eead4;
  font-size: 12px;
}

.command-line {
  justify-content: flex-start;
  padding: 8px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 12px;
}

.command-line i {
  color: #60a5fa;
}

.section-title h2 {
  color: #0f172a;
  letter-spacing: 0;
}

.section-title p {
  color: var(--etec-muted);
  line-height: 1.7;
}

.ai-section {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  background: var(--etec-bg);
}

.ai-section.ai-dark {
  background:
    radial-gradient(circle at 18% 24%, rgba(37, 99, 235, 0.18), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(20, 184, 166, 0.16), transparent 30%),
    linear-gradient(135deg, var(--etec-dark) 0%, var(--etec-dark-2) 100%);
  color: #ffffff;
}

.ai-section.ai-soft {
  background:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    #f8fafc;
  background-size: 56px 56px;
}

.ai-section,
.ai-section.ai-soft,
.contact.section-bg,
.theme-band {
  background:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    #07111f;
  background-size: 56px 56px;
}

.section-title h2,
.ai-card h3,
.ai-card h4,
.contact .info-box h3 {
  color: #f8fafc;
}

.section-title p,
.ai-card p,
.contact .info-box p {
  color: rgba(226, 232, 240, 0.72);
}

.ai-section .section-title h2,
.ai-section .section-title p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.ai-section.ai-dark .section-title h2,
.ai-section.ai-dark h3,
.ai-section.ai-dark h4 {
  color: #ffffff;
}

.ai-section.ai-dark .section-title p,
.ai-section.ai-dark p {
  color: rgba(226, 232, 240, 0.76);
}

.ai-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ai-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--etec-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--etec-shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ai-card,
.contact .info-box,
.card,
.partner-pill {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

.partner-pill {
  color: rgba(226, 232, 240, 0.84);
}

.ai-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.14), transparent 38%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.ai-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--etec-shadow-md);
}

.ai-card:hover::before {
  opacity: 1;
}

.ai-card > * {
  position: relative;
}

.ai-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--etec-primary);
  font-size: 22px;
}

.ai-card h3,
.ai-card h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.ai-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.7;
}

.ai-card a {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
  color: #8f7cff;
}

.ai-card a:hover {
  color: #5eead4;
}

.ai-dark .ai-card {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.72);
}

.ai-dark .ai-card h3,
.ai-dark .ai-card h4 {
  color: #ffffff;
}

.ai-dark .ai-card p {
  color: rgba(226, 232, 240, 0.72);
}

.solution-page #hero h1 {
  max-width: 900px;
}

.solution-page .solution-kicker {
  color: #5eead4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-page .solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 24px;
  align-items: start;
}

.solution-page .solution-panel {
  padding: 28px;
  border: 1px solid rgba(216, 222, 235, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.solution-page .solution-panel h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
}

.solution-page .solution-panel p,
.solution-page .solution-panel li {
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.75;
}

.solution-page .solution-panel ul {
  margin: 0;
  padding-left: 20px;
}

.solution-page .solution-metrics {
  display: grid;
  gap: 12px;
}

.solution-page .solution-metric {
  padding: 18px;
  border: 1px solid rgba(216, 222, 235, 0.16);
  border-radius: 14px;
  background: rgba(5, 7, 13, 0.72);
}

.solution-page .solution-metric strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.solution-page .solution-metric span {
  display: block;
  margin-top: 8px;
  color: rgba(226, 232, 240, 0.7);
  font-size: 13px;
}

.ai-product-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--etec-shadow-lg);
}

.ai-product-panel h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 850;
}

.ai-product-panel p {
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.75;
}

.workflow-stack {
  display: grid;
  gap: 12px;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.workflow-animation {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--etec-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--etec-shadow-md);
}

.flow-card {
  position: relative;
  z-index: 1;
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--etec-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--etec-shadow-sm);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  flex: 1 1 0;
}

.flow-card.active {
  transform: translateY(-8px);
  border-color: rgba(20, 184, 166, 0.58);
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(20, 184, 166, 0.18);
}

.flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--etec-primary);
  font-size: 22px;
}

.flow-card.active .flow-icon {
  background: rgba(20, 184, 166, 0.16);
  color: #0f766e;
}

.flow-card strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
}

.flow-card p {
  margin: 8px 0 0;
  color: var(--etec-muted);
  font-size: 13px;
  line-height: 1.6;
}

.flow-line {
  position: relative;
  align-self: center;
  height: 2px;
  margin: 0 -2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(20, 184, 166, 0.56), rgba(37, 99, 235, 0.16));
  overflow: hidden;
}

.flow-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, #5eead4, transparent);
  animation: flowPulse 1.8s linear infinite;
}

@keyframes flowPulse {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(260%);
  }
}

.workflow-animation,
.flow-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

.flow-card strong {
  color: #ffffff;
}

.flow-card p {
  color: rgba(226, 232, 240, 0.72);
}

.legacy-template-section,
#removed-stat-band,
#legacy-services,
#legacy-features,
#legacy-testimonials,
#legacy-portfolio,
#removed-questions {
  display: none;
}

.workflow-step i {
  color: #5eead4;
  font-size: 20px;
}

.workflow-step strong {
  color: #ffffff;
}

.workflow-step span {
  color: rgba(226, 232, 240, 0.68);
  font-size: 13px;
}

.theme-band {
  padding: 26px 0;
  background: #ffffff;
  border-top: 1px solid var(--etec-border);
  border-bottom: 1px solid var(--etec-border);
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.partner-pill {
  padding: 14px 12px;
  border: 1px solid var(--etec-border);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.cta-panel {
  padding: 44px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 20%, rgba(20, 184, 166, 0.22), transparent 32%),
    linear-gradient(135deg, #0f172a, #111827);
  color: #ffffff;
  box-shadow: var(--etec-shadow-lg);
}

.cta-panel h2 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 850;
}

.cta-panel p {
  max-width: 720px;
  color: rgba(226, 232, 240, 0.76);
}

.cta-panel .hero-actions {
  margin-top: 22px;
}

.cta-panel .btn-get-started,
#footer .footer-newsletter .btn-get-started {
  border: 1px solid rgba(94, 234, 212, 0.55);
  background: linear-gradient(135deg, #ffffff 0%, #dffcf7 100%);
  color: #07111f !important;
  box-shadow:
    0 18px 48px rgba(94, 234, 212, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cta-panel .btn-get-started:hover,
#footer .footer-newsletter .btn-get-started:hover {
  border-color: rgba(94, 234, 212, 0.9);
  background: #5eead4;
  color: #03120f !important;
  transform: translateY(-2px);
}

#footer .footer-newsletter .hero-actions {
  margin-top: 18px;
}

.services .icon-box,
.contact .info-box,
.card {
  border: 1px solid var(--etec-border);
  border-radius: var(--etec-radius-lg);
  box-shadow: var(--etec-shadow-sm);
}

.services.section-bg,
.contact.section-bg {
  background: #f8fafc;
}

.services .icon-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--etec-shadow-md);
}

.services .icon-box h4 a {
  color: #111827;
}

.contact .php-email-form input,
.contact .php-email-form textarea,
.form-control,
.input-group-text {
  border-color: var(--etec-border);
  border-radius: var(--etec-radius);
}

.contact .php-email-form button[type=submit],
.btn-primary {
  border: 0;
  border-radius: 999px;
  background: var(--etec-primary);
  box-shadow: var(--etec-shadow-sm);
}

.contact .php-email-form button[type=submit]:hover,
.btn-primary:hover {
  background: var(--etec-primary-strong);
}

.register {
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 32%),
    radial-gradient(circle at 82% 28%, rgba(20, 184, 166, 0.18), transparent 30%),
    var(--etec-bg);
}

.register .card {
  border-radius: 18px;
  box-shadow: var(--etec-shadow-md);
}

.register .logo span,
.register .card-title {
  color: #0f172a;
}

.ai-auth-note {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: var(--etec-radius);
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.5;
}

#footer {
  background:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    #07111f;
  background-size: 54px 54px;
}

#footer .footer-top {
  background: transparent;
}

#footer .footer-top,
#footer .footer-top h3,
#footer .footer-top h4 {
  color: #ffffff;
}

#footer .footer-top p,
#footer .footer-top li,
#footer .footer-top a {
  color: rgba(226, 232, 240, 0.72);
}

#footer .copyright-wrap {
  color: rgba(226, 232, 240, 0.72);
}

/* Final theme guardrails: keep visible sections on the single dark brand theme. */
.theme-band,
.contact.section-bg,
.ai-section,
.ai-section.ai-soft {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #05070d !important;
  background-size: 56px 56px !important;
}

.theme-band .section-title h2,
.theme-band .section-title p,
.contact .section-title h2,
.contact .section-title p {
  color: #f5f7fb;
}

.partner-pill,
.contact .info-box,
.contact .php-email-form {
  border: 1px solid rgba(216, 222, 235, 0.18) !important;
  background: rgba(16, 19, 28, 0.86) !important;
  color: #f5f7fb !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.contact .php-email-form input,
.contact .php-email-form textarea,
.contact .php-email-form .form-control {
  border-color: rgba(216, 222, 235, 0.16) !important;
  background: rgba(5, 7, 13, 0.86) !important;
  color: #f5f7fb !important;
}

.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  color: rgba(226, 232, 240, 0.58);
}

.flow-card.active {
  border-color: rgba(255, 79, 216, 0.68);
  background: rgba(24, 18, 42, 0.96);
  box-shadow: 0 24px 80px rgba(255, 79, 216, 0.22);
}

.flow-card.active strong,
.flow-card.active p {
  color: #ffffff;
}

@media (max-width: 991px) {
  #header {
    top: 0;
    padding: 12px 0;
  }

  body.mobile-nav-open #header {
    z-index: 10050;
  }

  #header .container {
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
  }

  #header .logo img {
    max-height: 30px;
  }

  #header .logo {
    font-size: 24px;
  }

  #header h1.logo {
    margin-right: auto;
  }

  #header .navbar {
    margin-left: auto;
    position: relative;
    z-index: 10020;
  }

  .mobile-nav-toggle {
    display: block;
    color: #ffffff;
    font-size: 30px;
    position: relative;
    pointer-events: auto;
    z-index: 10000;
  }

  .navbar-mobile {
    position: fixed;
    inset: 0;
    display: block !important;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: rgba(5, 7, 13, 0.94);
    backdrop-filter: blur(22px);
    pointer-events: auto;
    z-index: 10010;
  }

  .navbar-mobile .mobile-nav-toggle {
    position: fixed;
    top: 22px;
    right: 18px;
    display: block;
    z-index: 10030;
  }

  .navbar-mobile > ul {
    display: block !important;
    position: fixed;
    top: 72px;
    right: 14px;
    bottom: 16px;
    left: 14px;
    z-index: 10020;
    padding: 16px;
    overflow-y: auto;
    border: 1px solid rgba(216, 222, 235, 0.18);
    border-radius: 18px;
    background: rgba(16, 19, 28, 0.98);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  }

  .navbar-mobile > ul > li {
    padding: 0;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    justify-content: flex-start;
    padding: 14px 12px;
    color: rgba(245, 247, 251, 0.86);
    font-size: 15px;
  }

  .navbar-mobile .dropdown > a {
    justify-content: space-between;
  }

  .navbar-mobile .dropdown > a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    pointer-events: none;
  }

  .navbar-mobile a:hover,
  .navbar-mobile .active,
  .navbar-mobile li:hover > a {
    color: #ffffff;
  }

  .navbar-mobile a:hover::before,
  .navbar-mobile li:hover > a::before,
  .navbar-mobile .active::before {
    visibility: hidden;
  }

  .navbar-mobile .getstarted,
  .navbar-mobile .getstarted:focus {
    display: inline-flex;
    justify-content: center;
    margin: 12px 0 0;
    padding: 12px 18px;
    color: #ffffff;
  }

  .navbar-mobile .dropdown ul {
    position: static;
    display: none !important;
    margin: 6px 0 8px 10px;
    padding: 8px;
    border: 1px solid rgba(216, 222, 235, 0.14);
    border-radius: 12px;
    background: rgba(5, 7, 13, 0.72);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .navbar-mobile .dropdown > .dropdown-active {
    display: block !important;
  }

  .navbar-mobile .dropdown ul a {
    color: rgba(226, 232, 240, 0.78);
  }

  #hero {
    min-height: auto;
    padding: 0;
    text-align: left;
  }

  #hero.webgl-hero .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-copy {
    min-height: auto;
    max-width: 100%;
    padding-top: 112px;
    padding-bottom: 54px;
    transform: none;
  }

  .home-page .hero-copy {
    align-items: flex-start;
    padding-top: 112px;
    text-align: left;
  }

  .home-page .hero-eyebrow {
    position: static;
    transform: none;
  }

  .home-page .hero-eyebrow:hover {
    transform: translateY(-1px);
  }

  .solution-page .solution-layout {
    grid-template-columns: 1fr;
  }

  #hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 13vw, 58px);
  }

  #hero h2 {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.6;
  }

  #hero .hero-img {
    margin-bottom: 28px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .ai-card-grid,
  .ai-product-panel,
  .partner-row {
    grid-template-columns: 1fr;
  }

  .workflow-animation {
    flex-direction: column;
  }

  .flow-line {
    width: 2px;
    height: 34px;
    margin: -1px auto;
  }

  .flow-line::after {
    width: 100%;
    height: 45%;
    animation-name: flowPulseVertical;
  }

  @keyframes flowPulseVertical {
    from {
      transform: translateY(-120%);
    }

    to {
      transform: translateY(260%);
    }
  }

  .ai-scene-wrap,
  .ai-scene-wrap canvas,
  .etec-hero-panel img {
    height: 380px;
  }
}

@media (max-width: 575px) {
  #hero h1 {
    font-size: 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  #hero .btn-get-started,
  .btn-etec-secondary {
    width: 100%;
  }
}
