/* ============================================================
   STATIO — Design System Industrial Dark
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: #080C14;
  color: #CBD5E1;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- CSS Variables ---------- */
:root {
  --bg-deep:      #080C14;
  --bg-dark:      #0C1220;
  --bg-card:      #111827;
  --bg-card-hover:#131D2E;
  --border:       rgba(16,185,129,.18);
  --border-dim:   rgba(255,255,255,.06);

  --green:        #10B981;
  --green-light:  #34D399;
  --green-glow:   rgba(16,185,129,.25);
  --green-dim:    rgba(16,185,129,.10);

  --blue-accent:  #38BDF8;

  --text-primary: #F1F5F9;
  --text-sec:     #94A3B8;
  --text-dim:     #64748B;

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;

  --shadow-card:  0 4px 24px rgba(0,0,0,.45);
  --shadow-glow:  0 0 32px rgba(16,185,129,.18);

  --transition:   .25s cubic-bezier(.4,0,.2,1);

  --container:    1180px;
  --section-pad:  100px 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.18rem; }
h4 { font-size: .95rem; }

p { color: var(--text-sec); }

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-light); }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--green-glow); }
  50%       { opacity: .6; box-shadow: 0 0 0 4px transparent; }
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header p {
  margin-top: 14px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 10px;
  padding: 13px 26px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #022c22;
}
.btn-primary:hover {
  background: var(--green-light);
  color: #022c22;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--green-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255,255,255,.18);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(8,12,20,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(1.8) drop-shadow(0 0 8px rgba(16,185,129,0.35));
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-sec);
  padding: 7px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,.06);
}

.nav-cta { flex-shrink: 0; }
.nav-cta .btn { font-size: .85rem; padding: 9px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  padding: 120px 0 80px;
}

/* Grid pattern background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16,185,129,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Radial glow */
#hero::after {
  content: '';
  position: absolute;
  left: 50%; top: 30%;
  transform: translate(-50%, -50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(16,185,129,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  margin-bottom: 22px;
}

.hero-title .accent {
  color: var(--green);
  display: block;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-sec);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  padding: 18px 14px;
  background: var(--bg-card);
  text-align: center;
}
.stat-item:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.stat-item:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.stat-value {
  display: block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: .72rem;
  color: var(--text-dim);
  line-height: 1.3;
}

/* ---------- Hero Visual ---------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.arch-diagram {
  width: 100%;
  max-width: 620px;
  position: relative;
}

.arch-diagram svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ============================================================
   SYSTEM OVERVIEW
   ============================================================ */
#sistema {
  padding: var(--section-pad);
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

#sistema::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 32px 32px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.system-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .4s ease;
}
.system-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.system-card:hover::before { transform: scaleX(1); }

.system-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.system-layer {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.system-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.system-card p {
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.system-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-badge {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--text-dim);
}

/* ============================================================
   DISPLAYS
   ============================================================ */
#displays {
  padding: var(--section-pad);
  background: var(--bg-deep);
}

.displays-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.display-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.display-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.display-mockup {
  width: 100%;
  aspect-ratio: 4/3;
  background: #0a1628;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.display-mockup .epaper-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px;
}
.epaper-line {
  height: 8px;
  border-radius: 3px;
  background: rgba(16,185,129,.25);
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}
.epaper-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,.6), transparent);
  transform: translateX(-100%);
  animation: scan-line 2.5s ease-in-out infinite;
}
.display-card:nth-child(1) .epaper-line:nth-child(1)::after { animation-delay: 0s; }
.display-card:nth-child(2) .epaper-line:nth-child(1)::after { animation-delay: .4s; }
.display-card:nth-child(3) .epaper-line:nth-child(1)::after { animation-delay: .8s; }
.display-card:nth-child(4) .epaper-line:nth-child(1)::after { animation-delay: 1.2s; }

@keyframes scan-line {
  0%   { transform: translateX(-100%); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.epaper-line.thick { height: 14px; background: rgba(16,185,129,.4); }
.epaper-line.thin  { height: 4px;  background: rgba(16,185,129,.15); }
.epaper-line.price {
  height: 22px;
  background: rgba(16,185,129,.5);
  font-size: .7rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.display-name {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.display-type {
  font-size: .78rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 14px;
}

.display-specs {
  list-style: none;
  text-align: left;
}
.display-specs li {
  font-size: .8rem;
  color: var(--text-sec);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.display-specs li:last-child { border-bottom: none; }
.spec-key { color: var(--text-dim); }
.spec-val { color: var(--text-primary); font-weight: 500; }

/* ============================================================
   FEATURES
   ============================================================ */
#funcionalidades {
  padding: var(--section-pad);
  background: var(--bg-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feat-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.feat-icon {
  width: 46px; height: 46px;
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.feat-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.feat-card p {
  font-size: .88rem;
  line-height: 1.6;
}

/* ============================================================
   ARCHITECTURE
   ============================================================ */
#arquitetura {
  padding: var(--section-pad);
  background: var(--bg-deep);
}

.arch-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 72px;
  align-items: start;
}

.arch-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.arch-layer {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}

.arch-layer:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: -32px;
  width: 2px;
  background: linear-gradient(180deg, var(--green), transparent);
}

.layer-dot {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--green-dim);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
  transition: box-shadow var(--transition);
}
.arch-layer:hover .layer-dot {
  box-shadow: 0 0 0 6px var(--green-dim), var(--shadow-glow);
}

.layer-content {
  padding: 6px 0 32px;
}
.layer-content h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.layer-content p {
  font-size: .88rem;
}

.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 100px;
}

.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color var(--transition);
}
.stack-item:hover { border-color: var(--border); }

.stack-icon {
  width: 38px; height: 38px;
  background: var(--green-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.stack-info h4 {
  font-size: .9rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.stack-info p {
  font-size: .78rem;
  color: var(--text-dim);
}

/* ============================================================
   INTEGRATIONS
   ============================================================ */
#integracoes {
  padding: var(--section-pad);
  background: var(--bg-dark);
}

.integrations-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.integration-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.integration-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition);
}
.integration-item:hover {
  border-color: var(--border);
  transform: translateX(4px);
}
.integ-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.integ-content h3 {
  font-size: .98rem;
  margin-bottom: 4px;
}
.integ-content p { font-size: .86rem; }

.api-preview {
  background: #060a10;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
}
.api-topbar {
  background: #0c1220;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-dim);
  font-size: .78rem;
  color: var(--text-dim);
}
.api-dot { width: 10px; height: 10px; border-radius: 50%; }
.api-dot.red    { background: #FF5F57; }
.api-dot.yellow { background: #FFBD2E; }
.api-dot.green  { background: #28CA41; }

.api-code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: .8rem;
  line-height: 1.8;
  padding: 22px;
  overflow-x: auto;
  color: var(--text-sec);
}
.api-code .kw  { color: #C678DD; }
.api-code .str { color: #98C379; }
.api-code .num { color: #D19A66; }
.api-code .cmt { color: var(--text-dim); }
.api-code .key { color: #61AFEF; }

/* ============================================================
   FAQ
   ============================================================ */
#faq {
  padding: var(--section-pad);
  background: var(--bg-deep);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: .98rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--green); }
.faq-item.open .faq-question { color: var(--green); }

.faq-chevron {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.faq-chevron svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 24px 20px;
  font-size: .9rem;
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contato {
  padding: var(--section-pad);
  background: var(--bg-dark);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
.contact-info > p {
  font-size: 1rem;
  margin-bottom: 36px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.channel-item:hover { border-color: var(--border); }
.channel-item-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.channel-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.channel-label {
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.channel-value {
  font-size: .92rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Form --- */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1.5px solid var(--border-dim);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit .btn { width: 100%; justify-content: center; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}
.form-success h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.form-success p { font-size: .92rem; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #04070D;
  border-top: 1px solid var(--border-dim);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: .86rem;
  line-height: 1.6;
  max-width: 280px;
  color: var(--text-dim);
}

.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  font-size: .88rem;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-dim);
  font-size: .8rem;
  color: var(--text-dim);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--green);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .arch-layout { grid-template-columns: 1fr; gap: 48px; }
  .arch-stack { position: static; }
  .displays-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --section-pad: 72px 0; }
  .system-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px 0; }

  .nav-links,
  .nav-cta {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(8,12,20,.97);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border-dim);
  }
  .nav-links { list-style: none; }
  .nav-links.open,
  .nav-cta.open  { display: flex; }
  .nav-cta { top: auto; /* stacked below nav-links — handled by JS */ }

  .nav-toggle { display: flex; }
  .nav-inner { flex-wrap: wrap; }

  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .displays-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .displays-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
