/* Intelligent Engine Solutions — shiny preview (navy-teal, Space Grotesk + Plus Jakarta Sans) */

:root {
  --bg: #12294a;
  --bg-2: #163552;
  --navy: #1a3a5c;
  --teal: #2eb8d4;
  --cyan: #70f6ff;
  --cyan-deep: #2ad4f0;
  --gold: #ffe27a;
  --gold-deep: #f0c14a;
  --ice: #b8f3ff;
  --ink: #ffffff;
  --muted: #d3dce8;
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(22, 58, 88, 0.52);
  --glass-border: rgba(255, 255, 255, 0.26);
  --error: #ff8a9a;
  --error-bg: rgba(255, 80, 100, 0.12);
  --focus: #70f6ff;
  --header-h: 4.6rem;
  --font-display: "Space Grotesk", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --glow-cyan: 0 0 34px rgba(112, 246, 255, 0.5);
  --glow-gold: 0 0 32px rgba(255, 226, 122, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 560px at 80% 8%, rgba(42, 180, 230, 0.42), transparent 58%),
    radial-gradient(760px 440px at 8% 42%, rgba(42, 212, 200, 0.22), transparent 52%),
    radial-gradient(860px 520px at 50% 100%, rgba(255, 226, 122, 0.16), transparent 55%),
    linear-gradient(180deg, #12294a 0%, #153556 42%, #0f2f4a 100%);
  pointer-events: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
.wordmark-name,
.footer-name,
.typewriter,
.step-num {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1, h2 {
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.7rem);
  font-weight: 700;
  margin: 0 0 1.05rem;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.28rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--cyan);
  text-underline-offset: 0.16em;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 400;
  background: var(--cyan);
  color: #071015;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
  color: #071015;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.75rem;
  text-shadow: 0 0 20px rgba(112, 246, 255, 0.5);
}

.lede {
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 40rem;
}

/* Cursor glow */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(112, 246, 255, 0.24) 0%, rgba(42, 180, 220, 0.16) 32%, transparent 68%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
}

.cursor-glow.is-on {
  opacity: 1;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  isolation: isolate;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #3ce8ff 0%, #3ec8e0 52%, #ffe27a 130%);
  color: #081018;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), var(--glow-cyan);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #081018;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 36px rgba(112, 246, 255, 0.55), 0 0 18px rgba(255, 226, 122, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: rgba(112, 246, 255, 0.45);
  box-shadow: 0 0 18px rgba(112, 246, 255, 0.08);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
  background: rgba(255, 226, 122, 0.08);
}

.btn-small {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

.nav-cta {
  white-space: nowrap;
}

.btn-shine::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-80%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.btn-shine:hover::after,
.btn-shine:focus-visible::after {
  opacity: 1;
  animation: shine-sweep 0.85s ease;
}

.btn-primary.btn-shine {
  animation: cta-idle-sheen 5.5s ease-in-out infinite;
}

@keyframes shine-sweep {
  from { transform: translateX(-80%) rotate(8deg); }
  to { transform: translateX(80%) rotate(8deg); }
}

@keyframes cta-idle-sheen {
  0%, 70%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), var(--glow-cyan); }
  85% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 32px rgba(112, 246, 255, 0.6); }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 36, 64, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.wordmark:hover {
  color: var(--ink);
}

.logo-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(112, 246, 255, 0.45));
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wordmark-name {
  font-size: 1rem;
  font-weight: 750;
  white-space: nowrap;
}

.wordmark-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav ul {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
}

/* Hero */

.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-canvas,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-canvas {
  z-index: 0;
}

.hero-grid {
  z-index: 0;
  background-image:
    linear-gradient(rgba(112, 246, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 246, 255, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, #000 20%, transparent 75%);
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 40.5rem;
  animation: hero-in 0.9s ease both;
}

.shine-text {
  background: linear-gradient(100deg, #ffffff 8%, #70f6ff 28%, #ffe27a 50%, #b8f3ff 72%, #ffffff 92%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 7s linear infinite;
  filter: drop-shadow(0 0 22px rgba(112, 246, 255, 0.35));
}

@keyframes text-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.typewriter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.6rem;
  margin: 1.35rem 0 0;
  min-height: 2.1rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.typewriter-label {
  color: var(--muted);
  font-weight: 600;
}

.typewriter {
  color: var(--gold);
  font-weight: 750;
  text-shadow: 0 0 20px rgba(255, 226, 122, 0.5);
}

.caret {
  display: inline-block;
  width: 0.12em;
  height: 1.05em;
  margin-left: 0.12em;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: caret-blink 1s steps(1) infinite;
  vertical-align: -0.12em;
}

@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

@media (max-height: 860px) {
  .hero {
    min-height: 0;
    padding: 3.1rem 0 3.2rem;
  }
}

/* Marquee */

.marquee-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 48, 80, 0.72);
  overflow: hidden;
  padding: 0.85rem 0;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.mq-chip {
  flex: none;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(112, 246, 255, 0.28);
  background: rgba(112, 246, 255, 0.08);
  white-space: nowrap;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */

.problem,
.steps,
.consult,
.faq {
  padding: 5rem 0;
}

.services,
.demo,
.contact {
  padding: 5rem 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.prose {
  font-size: 1.08rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 750;
}

.section-intro {
  margin-bottom: 2.4rem;
}

.section-intro p:not(.eyebrow) {
  max-width: 36rem;
}

/* Glass cards */

.glass,
.card,
.form-panel,
.chat-widget {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 20px 50px -28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-grid,
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  border-radius: var(--radius);
  padding: 1.55rem 1.4rem 1.65rem;
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card p {
  margin: 0;
}

.card.tilt:hover,
.card.tilt:focus-within {
  border-color: rgba(112, 246, 255, 0.45);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6), 0 0 28px rgba(112, 246, 255, 0.16);
}

.card-icon {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(112, 246, 255, 0.18), rgba(255, 226, 122, 0.12));
  color: var(--cyan);
  margin-bottom: 1rem;
  box-shadow: 0 0 16px rgba(112, 246, 255, 0.2);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 226, 122, 0.12);
  color: var(--gold);
  font-size: 1.05rem;
  box-shadow: 0 0 14px rgba(255, 226, 122, 0.2);
}

/* Demo / chat */

.demo-layout,
.consult-layout,
.contact-layout,
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.75rem;
  align-items: center;
}

.contact-layout,
.faq-layout {
  grid-template-columns: 0.9fr 1.2fr;
  align-items: start;
}

.demo-note,
.form-note,
.placeholder-hint {
  color: var(--muted);
  font-size: 0.98rem;
}

.chat-widget {
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 32rem;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(112, 246, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(90deg, rgba(18, 50, 90, 0.95), rgba(16, 100, 130, 0.92));
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.chat-title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font-display);
}

.chat-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.demo-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #70f6ff, #ffe27a);
  color: #081018;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.1rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 16rem;
  max-height: 22rem;
  background:
    radial-gradient(400px 120px at 80% 0%, rgba(112, 246, 255, 0.16), transparent 50%),
    rgba(16, 40, 68, 0.45);
}

.bubble {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.bubble p { margin: 0; }

.bubble-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(18, 200, 232, 0.28), rgba(30, 160, 190, 0.35));
  color: var(--ink);
  border: 1px solid rgba(112, 246, 255, 0.25);
  border-bottom-right-radius: 4px;
}

.typing-dots {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  height: 1em;
  padding: 0.15rem 0.1rem;
}

.typing-dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--cyan);
  animation: dot-bounce 1s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
  padding: 0.7rem 1.1rem 0.2rem;
  border-top: 1px solid var(--line);
}

.suggestions-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(112, 246, 255, 0.1);
  border: 1px solid rgba(112, 246, 255, 0.28);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--gold);
  background: rgba(255, 226, 122, 0.12);
}

.chip:disabled {
  opacity: 0.55;
  cursor: default;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem 1.05rem;
}

.chat-form input,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(14, 36, 58, 0.72);
  color: var(--ink);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
}

.chat-form input:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--cyan);
}

/* Consult */

.consult-layout {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.75rem;
}

.consult-intro {
  max-width: 42rem;
}

.calendly-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #12294a;
  min-height: 700px;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(112, 246, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.calendly-loading {
  position: absolute;
  inset: 0 0 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
}

.calendly-wrap.is-ready .calendly-loading {
  display: none;
}

.calendly-inline-widget {
  position: relative;
  z-index: 1;
  min-width: 320px;
  height: 700px;
}

.calendly-fallback {
  margin: 0;
  padding: 0.85rem 1rem 1.1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  background: #12294a;
  border-top: 1px solid var(--glass-border);
}

.placeholder-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 226, 122, 0.16);
  color: var(--gold);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

/* Contact */

.form-panel {
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
}

.field {
  margin-bottom: 1.05rem;
}

.field label,
.field legend {
  display: block;
  font-weight: 750;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.field legend { padding: 0; }

.req {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
  border-radius: 12px;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-bg);
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.form-error {
  color: var(--error);
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--error);
  border-radius: 12px;
  background: var(--error-bg);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-panel {
  position: relative;
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: wait;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

fieldset.field {
  border: 0;
  margin: 0 0 1.05rem;
  padding: 0;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  background: rgba(14, 36, 58, 0.72);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  color: var(--ink);
}

.radio:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(112, 246, 255, 0.12);
  box-shadow: 0 0 14px rgba(112, 246, 255, 0.15);
}

.radio input { accent-color: var(--cyan); }

/* FAQ */

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.2rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--ink);
  padding: 1rem 1.6rem 1rem 0;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--cyan);
  font-weight: 500;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details p {
  margin: 0 1.6rem 1.05rem 0;
}

/* Footer */

.site-footer {
  background: #0f243d;
  color: var(--muted);
  padding: 3rem 0 5.5rem;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-name {
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.footer-placeholders ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-placeholders li { margin-bottom: 0.35rem; }

.ph {
  color: var(--gold);
  font-style: italic;
}

.footer-nav ul {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
}

.footer-nav li { margin-bottom: 0.3rem; }

.legal-ph {
  font-size: 0.9rem;
  color: #c5cce2;
  font-style: italic;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
  font-size: 0.9rem;
  color: #c5cce2;
}

.preview-flag { font-style: italic; }

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Floating demo bubble */

.chat-fab {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(112, 246, 255, 0.4);
  background: linear-gradient(135deg, #3ce8ff 0%, #3ec8e0 70%);
  color: #081018;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.85rem 1.1rem 0.85rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--glow-cyan), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.chat-fab {
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}

.chat-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.chat-fab:hover,
.chat-fab:focus-visible {
  color: #081018;
  box-shadow: 0 0 36px rgba(112, 246, 255, 0.7), var(--glow-gold);
}

.fab-icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
}

.fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(112, 246, 255, 0.5);
  animation: fab-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.18); opacity: 0; }
}

.chat-dock {
  position: fixed;
  right: 1.15rem;
  bottom: 5.2rem;
  z-index: 85;
  width: min(26.5rem, calc(100vw - 1.5rem));
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.55));
}

.dock-widget {
  min-height: 0;
  max-height: min(36rem, calc(100vh - 8rem));
}

.dock-widget .chat-log {
  min-height: 12rem;
  max-height: 18rem;
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dock-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.chat-widget.is-pulse {
  animation: widget-pulse 1.1s ease;
}

@keyframes widget-pulse {
  0%, 100% { box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 0 40px rgba(112, 246, 255, 0.1); }
  40% { box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 0 50px rgba(112, 246, 255, 0.45); }
}

/* Responsive */

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.85rem 1rem 1.1rem;
    background: rgba(14, 36, 64, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open { display: flex; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a,
  .site-nav .nav-cta {
    display: block;
    padding: 0.7rem 0.2rem;
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 0.3rem;
  }

  .header-inner { position: relative; }

  .split,
  .service-grid,
  .step-list,
  .demo-layout,
  .consult-layout,
  .contact-layout,
  .faq-layout,
  .footer-inner,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 3.25rem 0 3.5rem;
  }

  .hero-canvas,
  .hero-grid {
    opacity: 0.55;
    mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 88%);
  }

  .hero-copy { max-width: none; }

  .problem,
  .services,
  .steps,
  .demo,
  .consult,
  .contact,
  .faq {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .chat-widget { min-height: 28rem; }

  .chat-fab .fab-label { display: none; }

  .chat-fab {
    padding: 0.9rem;
    width: 3.4rem;
    height: 3.4rem;
    justify-content: center;
  }

  .chat-dock {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    bottom: 5rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1140px, calc(100% - 1.4rem));
  }

  .hero-actions .btn,
  .form-panel .btn {
    width: 100%;
  }

  .wordmark-name { font-size: 0.92rem; }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-copy { animation: none; }

  .shine-text {
    animation: none;
    background-position: 30% center;
  }

  .caret { animation: none; opacity: 1; }

  .marquee-track { animation: none; }

  .btn-primary.btn-shine { animation: none; }
  .btn-shine::after { display: none; }
  .fab-pulse { display: none; }
  .cursor-glow { display: none; }
  .typing-dots span { animation: none; opacity: 0.8; }

  .chat-fab { box-shadow: var(--glow-cyan); }
}
