/* Shared styles for the marketing pages: index.html, ai-agents.html,
   it-services.html. Older pages still carry their own inline copies. */
:root {
  --navy: #0a0f1e;
  --deep: #0d1630;
  --blue: #0057ff;
  --cyan: #00d4ff;
  --silver: #c8d6e8;
  --muted: #6b7fa3;
  --white: #f0f4ff;
  --card-bg: rgba(255,255,255,0.04);
  --border: rgba(0,212,255,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── GRID OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,87,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,87,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 1.2rem 5vw;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.logo-mark { width: 40px; height: 40px; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--white);
  white-space: nowrap;
}
.logo-main span { color: var(--cyan); }
.logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem clamp(0.9rem, 2.4vw, 2.5rem);
  list-style: none;
}
.nav-links a { white-space: nowrap; }
.nav-links a {
  text-decoration: none;
  color: var(--silver);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--cyan) !important; color: var(--navy) !important; }

.nav-pos, .nav-feature {
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s !important;
}
.nav-pos:hover, .nav-feature:hover { background: var(--cyan); color: var(--navy) !important; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 5vw 6rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,87,255,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 30vw;
  height: 30vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--cyan);
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}
.hero h1 span { color: var(--cyan); }

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--silver);
  max-width: 520px;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s forwards;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--cyan); color: var(--navy); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--silver);
  padding: 0.85rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.hero-stats {
  position: absolute;
  bottom: 4rem;
  right: 5vw;
  display: flex;
  gap: 3rem;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.7s 1s forwards;
}
.stat { text-align: right; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: var(--cyan);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── SECTION SHARED ─── */
section { position: relative; z-index: 1; padding: 6rem 5vw; }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--silver);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 3.5rem;
}

/* ─── SERVICES ─── */
.services { background: var(--deep); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2.4rem 2rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--cyan);
  transition: height 0.4s;
}
.service-card:hover::before { height: 100%; }
.service-card:hover {
  background: rgba(0,212,255,0.04);
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: block;
}
.service-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--silver);
  flex-grow: 1;
}

.card-link {
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1.2rem;
    display: inline-block;
    transition: color 0.2s;
}
.card-link:hover {
    color: var(--white);
}

/* ─── WHY US ─── */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center; }

.why-visual {
  position: relative;
  height: 420px;
}
.why-block {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.6rem;
}
.why-block:nth-child(1) { top: 0; left: 0; width: 60%; }
.why-block:nth-child(2) { top: 30%; right: 0; width: 55%; }
.why-block:nth-child(3) { bottom: 0; left: 10%; width: 50%; }

.why-block-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--blue);
  line-height: 1;
  opacity: 0.5;
}
.why-block h4 {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.why-block p { font-size: 0.82rem; color: var(--muted); }

.why-list { list-style: none; margin-bottom: 2rem; }
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--silver);
}
.why-list li::before {
  content: '→';
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── PROCESS ─── */
.process { background: var(--deep); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.step { padding: 0 1.5rem 0 0; position: relative; }
.step-num {
  width: 48px; height: 48px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--cyan);
  background: var(--deep);
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}
.step h4 {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.step p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: start;
}

.contact-info { }
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.contact-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail h4 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.contact-detail p { font-size: 0.95rem; color: var(--silver); }
/* Tap-to-call and tap-to-email. Styled to read as text, not as a link —
   the icon beside it already says what it is. The padding lifts the tap
   target over the 24px WCAG minimum (the bare text line is only 17px);
   the matching negative margin keeps the layout exactly where it was. */
.contact-detail p a {
  display: inline-block;
  padding: 0.4rem 0;
  margin: -0.4rem 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-detail p a:hover, .contact-detail p a:focus-visible { color: var(--cyan); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

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

input, textarea, select {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); }
select option { background: var(--deep); }
textarea { min-height: 120px; }

/* Honeypot — off-screen for humans and screen readers, visible to bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
/* Collapsed while empty, but never display:none — the aria-live region has
   to stay rendered for screen readers to announce the result. */
.form-status:empty { margin: -0.5rem 0; }
.form-status.is-error { color: #ff8a8a; }
.form-status.is-ok { color: var(--cyan); }
.form-status a { color: inherit; }
button[disabled] { opacity: 0.6; cursor: progress; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer p { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem 1.8rem; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }

/* ─── PAIN STRIP ─── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.pain {
  border-top: 2px solid var(--blue);
  padding-top: 1.4rem;
}
.pain h3 {
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.pain p { font-size: 0.9rem; line-height: 1.7; color: var(--silver); }

/* ─── DEMOS ─── */
/* Wider minimum so six cards sit 3 × 2 on desktop instead of 4 + 2. */
#demos .services-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.demo-card .badge {
  align-self: flex-start;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  margin-bottom: 1rem;
}

/* ─── IT SUPPORT BAND ─── */
.it-band {
  background: var(--deep);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4vw;
  align-items: center;
}
.it-band .section-sub { margin-bottom: 2rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; }
.chip-list li {
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  color: var(--silver);
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero { min-height: 70vh; }

/* ─── FAQ ─── */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--cyan); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 0.8rem; font-size: 0.92rem; line-height: 1.75; color: var(--silver); }

.cta-band { text-align: center; }
.cta-band .section-sub { margin-left: auto; margin-right: auto; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
/* Tablet band: tighten the nav before the links collide with the logo. */
@media (max-width: 1024px) {
  .nav-links a { font-size: 0.78rem; }
  .nav-pos, .nav-feature, .nav-cta { padding: 0.45rem 0.85rem; }
}
@media (max-width: 768px) {
  /* No room for the full nav — keep the two conversion links, drop the rest. */
  .nav-links li { display: none; }
  .nav-links li.nav-keep { display: block; }
  /* .hero is a flex row — it has to become a column or the (now static)
     stats sit beside the headline and overlap it. */
  .hero { flex-direction: column; align-items: flex-start; justify-content: center; }
  .hero-stats { position: static; margin-top: 3rem; justify-content: flex-start;
    flex-wrap: wrap; gap: 1.5rem 2rem; }
  .hero-stats .stat { text-align: left; }
  .why { grid-template-columns: 1fr; }
  .it-band { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
  .step { padding: 0 0 2rem 0; }
}
