/* ==========================================================================
   Ark Horizon — Business Automation landing page
   Scoped design layer. Loads AFTER styles.css and only applies to
   <body class="company-dark auto">, so the gold Qissa/Tools theme is untouched.
   Palette: deep blue-navy + electric blue + lime green (matches the AH flyers).
   ========================================================================== */

body.auto {
  --a-blue: #3b82f6;
  --a-blue2: #60a5fa;
  --a-green: #8bc53f;
  --a-green2: #a3e635;
  --a-ink: #eef3fb;
  --a-muted: #9db0d0;
  --a-line: rgba(120, 160, 255, 0.15);
  --a-card: rgba(255, 255, 255, 0.045);
  --a-card-hover: rgba(255, 255, 255, 0.07);
  --a-glow-blue: rgba(59, 130, 246, 0.35);
  --a-glow-green: rgba(139, 197, 63, 0.3);
  color: var(--a-ink);
  background:
    radial-gradient(1100px 560px at 82% -8%, #10305e 0%, transparent 60%),
    radial-gradient(820px 460px at 0% 8%, #0b2247 0%, transparent 55%),
    #070d1c;
  background-attachment: fixed;
}

body.auto .brand-sub { color: var(--a-muted); }

/* nav: blue/green active state instead of gold */
body.auto .nav-links a {
  color: var(--a-ink);
  border: 1px solid var(--a-line);
  background: rgba(255, 255, 255, 0.03);
}
body.auto .nav-links a.active,
body.auto .nav-links a:hover {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.5);
}

body.auto a { color: inherit; }

/* ---- shared section rhythm ---------------------------------------------- */
.auto-section { padding: 74px 0; position: relative; z-index: 1; }
.auto-section.tight { padding: 52px 0; }

.auto-kicker {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--a-green2);
}
.auto-h2 {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 12px auto 14px;
  color: #fff;
  max-width: 900px;
}
.auto-sub {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--a-muted);
  font-size: 1.05rem;
}
.grad-blue { color: var(--a-blue2); }
.grad-green {
  background: linear-gradient(100deg, var(--a-green), var(--a-green2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- buttons ------------------------------------------------------------- */
body.auto .btn-green {
  background: linear-gradient(180deg, var(--a-green2), var(--a-green));
  color: #17300a;
  box-shadow: 0 12px 34px var(--a-glow-green);
}
body.auto .btn-blue {
  background: linear-gradient(180deg, var(--a-blue2), var(--a-blue));
  color: #06122b;
  box-shadow: 0 12px 34px var(--a-glow-blue);
}
body.auto .btn-line {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--a-line);
  color: var(--a-ink);
  backdrop-filter: blur(6px);
}
body.auto .btn-line:hover { border-color: rgba(96, 165, 250, 0.55); }

/* ==========================================================================
   HERO
   ========================================================================== */
.auto-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: 40px 0 30px;
}
.auto-hero .eyebrow {
  color: var(--a-green2);
  background: rgba(139, 197, 63, 0.1);
  border: 1px solid rgba(139, 197, 63, 0.3);
}
.auto-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.85rem);
  color: #fff;
  margin: 20px 0 18px;
  line-height: 1.08;
}
.auto-hero .lead {
  color: var(--a-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 30px;
}
.auto-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.auto-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: var(--a-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.auto-trust span { display: inline-flex; align-items: center; gap: 7px; }
.auto-trust svg { width: 17px; height: 17px; color: var(--a-green2); }

/* ---- animated workflow illustration (SVG, no people) -------------------- */
.auto-flow {
  position: relative;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.09), rgba(139, 197, 63, 0.05));
  border: 1px solid var(--a-line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 40px 90px rgba(4, 12, 30, 0.55);
  backdrop-filter: blur(8px);
}
.auto-flow svg { width: 100%; height: auto; display: block; }
.auto-flow .node-box {
  fill: rgba(255, 255, 255, 0.04);
  stroke: var(--a-line);
  stroke-width: 1.5;
}
.auto-flow .hub {
  fill: rgba(59, 130, 246, 0.14);
  stroke: var(--a-blue2);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: hubPulse 3s ease-in-out infinite;
}
@keyframes hubPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; filter: drop-shadow(0 0 10px var(--a-glow-blue)); }
}
.auto-flow .wire {
  fill: none;
  stroke: var(--a-blue2);
  stroke-width: 2;
  stroke-dasharray: 7 9;
  opacity: 0.55;
  animation: dash 1.4s linear infinite;
}
.auto-flow .wire.g { stroke: var(--a-green2); }
@keyframes dash { to { stroke-dashoffset: -32; } }
.auto-flow .glyph { fill: none; stroke: var(--a-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auto-flow .glyph.b { stroke: var(--a-blue2); }
.auto-flow .glyph.g { stroke: var(--a-green2); }
.auto-flow .check {
  fill: var(--a-green);
  animation: popCheck 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes popCheck {
  0%, 60%, 100% { transform: scale(1); }
  70% { transform: scale(1.18); }
}
.auto-flow .lbl { fill: var(--a-muted); font: 700 11px ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }

/* ==========================================================================
   Generic card grids (Who we help / What we automate / Tech)
   ========================================================================== */
.auto-grid {
  display: grid;
  gap: 16px;
}
.grid-help { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid-tech { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.auto-card {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(7px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.auto-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.45);
  background: var(--a-card-hover);
}
.auto-card .ic {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.auto-card.g .ic { background: rgba(139, 197, 63, 0.12); border-color: rgba(139, 197, 63, 0.28); }
.auto-card .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--a-blue2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auto-card.g .ic svg { stroke: var(--a-green2); }
.auto-card .txt { font-weight: 700; font-size: 0.98rem; color: var(--a-ink); line-height: 1.25; }

/* ==========================================================================
   How it works
   ========================================================================== */
.auto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.auto-step {
  position: relative;
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 18px;
  padding: 28px 22px;
  backdrop-filter: blur(7px);
  text-align: center;
}
.auto-step .num {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #06122b;
  background: linear-gradient(180deg, var(--a-blue2), var(--a-blue));
  box-shadow: 0 10px 26px var(--a-glow-blue);
}
.auto-step:nth-child(4) .num { background: linear-gradient(180deg, var(--a-green2), var(--a-green)); color: #17300a; box-shadow: 0 10px 26px var(--a-glow-green); }
.auto-step h3 { color: #fff; font-size: 1.12rem; margin-bottom: 8px; }
.auto-step p { color: var(--a-muted); font-size: 0.94rem; }
.auto-step::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 46px;
  color: var(--a-blue2);
  font-size: 1.3rem;
  font-weight: 800;
  z-index: 2;
}
.auto-step:last-child::after { display: none; }

/* ==========================================================================
   Benefits — larger feature cards
   ========================================================================== */
.auto-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.benefit {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(59, 130, 246, 0.1), transparent 55%),
    var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 20px;
  padding: 26px 24px;
  backdrop-filter: blur(7px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.benefit:hover { transform: translateY(-4px); border-color: rgba(139, 197, 63, 0.45); }
.benefit .ic {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(139, 197, 63, 0.12);
  border: 1px solid rgba(139, 197, 63, 0.28);
}
.benefit .ic svg { width: 26px; height: 26px; fill: none; stroke: var(--a-green2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.benefit p { color: var(--a-muted); font-size: 0.96rem; }

/* ==========================================================================
   Technology chips
   ========================================================================== */
.tech-chip {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--a-ink);
  backdrop-filter: blur(7px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.tech-chip:hover { transform: translateY(-3px); border-color: rgba(96, 165, 250, 0.45); }
.tech-chip .dot {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--a-line);
  font-size: 0.82rem; font-weight: 800;
}
.tech-chip .dot svg { width: 17px; height: 17px; fill: none; stroke: var(--a-blue2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Why Ark Horizon
   ========================================================================== */
.auto-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.why-card {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 18px;
  padding: 26px 22px;
  backdrop-filter: blur(7px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, 0.45); }
.why-card .ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 15px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.why-card .ic svg { width: 24px; height: 24px; fill: none; stroke: var(--a-blue2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { color: #fff; font-size: 1.12rem; margin-bottom: 8px; }
.why-card p { color: var(--a-muted); font-size: 0.95rem; }

/* ==========================================================================
   Free assessment band (prominent green)
   ========================================================================== */
.assess-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #6ba31f 0%, #8bc53f 55%, #a3e635 100%);
  border-radius: 28px;
  padding: 46px 44px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 28px;
  align-items: center;
  box-shadow: 0 30px 80px rgba(139, 197, 63, 0.22);
}
.assess-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.35), transparent 40%);
  pointer-events: none;
}
.assess-band .eyebrow {
  background: rgba(6, 24, 8, 0.16);
  color: #0f2c06;
  border: none;
}
.assess-band h2 { color: #0f2c06; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 12px 0 12px; position: relative; }
.assess-band p { color: #1c3d0c; font-size: 1.08rem; max-width: 620px; position: relative; font-weight: 500; }
.assess-band .btn { position: relative; }
.assess-cta { display: flex; justify-content: flex-end; position: relative; }
body.auto .assess-band .btn-dark {
  background: #0a1224;
  color: #eef3fb;
  box-shadow: 0 14px 34px rgba(4, 12, 30, 0.4);
}
body.auto .assess-band .btn-dark:hover { background: #0e1a33; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.auto-faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 14px;
  padding: 18px 22px;
  backdrop-filter: blur(7px);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--a-green2);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--a-muted); margin-top: 12px; font-size: 0.97rem; }

/* ==========================================================================
   Contact / lead form
   ========================================================================== */
.auto-contact {
  max-width: 720px;
  margin: 0 auto;
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 24px;
  padding: 38px 34px;
  backdrop-filter: blur(9px);
  box-shadow: 0 30px 80px rgba(4, 12, 30, 0.45);
}
.auto-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auto-form .full { grid-column: 1 / -1; }
.auto-form label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a-muted);
  margin-bottom: 6px;
}
.auto-form input,
.auto-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--a-line);
  border-radius: 11px;
  color: var(--a-ink);
  font-size: 15px;
  padding: 13px 15px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.auto-form input::placeholder,
.auto-form textarea::placeholder { color: #6f83a5; }
.auto-form input:focus,
.auto-form textarea:focus { border-color: var(--a-blue2); }
.auto-form textarea { resize: vertical; min-height: 120px; }
.auto-form .btn { width: 100%; justify-content: center; }
.form-note { text-align: center; color: var(--a-muted); font-size: 0.9rem; margin-top: 14px; }
.form-error {
  display: none;
  color: #ff8f8f;
  text-align: center;
  font-size: 0.92rem;
  margin-top: 12px;
}
.form-success { display: none; text-align: center; padding: 10px 0; }
.form-success .chk { font-size: 42px; color: var(--a-green2); margin-bottom: 10px; }
.form-success h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.form-success p { color: var(--a-muted); }

/* ==========================================================================
   Scroll-reveal + footer accent
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .auto-flow .wire, .auto-flow .hub, .auto-flow .check { animation: none; }
}

body.auto .site-footer .foot-links { color: var(--a-muted); }
body.auto .site-footer .copy { color: var(--a-muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
  .auto-hero { grid-template-columns: 1fr; gap: 30px; }
  .auto-flow { order: -1; }
  .auto-steps { grid-template-columns: repeat(2, 1fr); }
  .auto-step::after { display: none; }
  .assess-band { grid-template-columns: 1fr; }
  .assess-cta { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .auto-form { grid-template-columns: 1fr; }
  .auto-steps { grid-template-columns: 1fr; }
  .grid-help, .grid-auto, .grid-tech { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .auto-section { padding: 54px 0; }
  .assess-band { padding: 34px 26px; }
  .auto-contact { padding: 28px 22px; }
}
