/* ============================================================================
   JK AUTOMATION - INDUSTRY PAGE BASE STYLES
   Mirrors the homepage design system (same tokens, fonts, surfaces) so the
   landing pages feel like the same site without duplicating 1,400 lines.
   ============================================================================ */

:root {
  --bg: #050816;
  --bg-soft: #0b1228;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.11);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --text: #f8fafc;
  --muted: #b8c2d4;
  --muted-soft: #8b97ad;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --gold: #facc15;
  --emerald: #34d399;
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.22);
  --shadow: 0 25px 50px rgba(0,0,0,0.45);
  --font-display: 'Bricolage Grotesque', 'Georgia', serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgba(167,139,250,0.16), transparent 60%),
    linear-gradient(180deg, #02050f 0%, #050816 40%, #0b1228 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }

.page { width: min(1100px, 93%); margin: 0 auto; position: relative; z-index: 2; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 22, 0.82);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: min(1240px, 94%); margin: 0 auto; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: .06em; font-size: .9rem; }
.logo-mark {
  width: 44px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  background: radial-gradient(circle at 18% 15%, rgba(56,189,248,.4), transparent 40%), linear-gradient(135deg, rgba(15,23,42,.95), rgba(17,24,39,.7));
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 0 30px rgba(56,189,248,.25);
}
.logo-mark svg { width: 32px; height: 24px; }
.header-nav { display: flex; align-items: center; gap: 20px; font-size: .88rem; color: var(--muted); }
.header-nav a:hover { color: var(--text); }
.header-cta {
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04101f;
  box-shadow: 0 0 26px rgba(56,189,248,.3); white-space: nowrap;
}
@media (max-width: 720px) { .header-nav { display: none; } }

/* ===== Sections ===== */
section { padding: clamp(44px, 7vw, 72px) 0; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .73rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.section-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.section-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.section-lede { color: var(--muted); max-width: 62ch; font-size: 1.02rem; }

/* ===== Hero ===== */
.ind-hero { padding-top: clamp(48px, 8vw, 88px); }
.ind-hero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); max-width: 21ch; margin-bottom: 18px; }
.gradient-text {
  background: linear-gradient(95deg, var(--accent), var(--accent-2) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ind-hero p.sub { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin-bottom: 26px; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }

/* ===== Cards & grids ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 16px; margin-top: 28px; }
.glass-card {
  padding: 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.glass-card:hover { background: var(--surface-hover); transform: translateY(-3px); border-color: var(--border-strong); }
.glass-card h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.glass-card p { color: var(--muted); font-size: .92rem; }
.glass-card .icon { font-size: 1.5rem; }

.pain-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 11px; margin-top: 24px; }
.pain-list li {
  list-style: none; display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: .94rem;
}
.pain-list li::before { content: "\2715"; color: #fda4af; font-weight: 700; flex-shrink: 0; margin-top: 2px; font-size: .8rem; }

/* ===== Workflow strip ===== */
.workflow-strip {
  display: grid; gap: 0; margin-top: 28px; counter-reset: wf;
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong);
}
.workflow-strip .wf-step {
  counter-increment: wf;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 22px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.workflow-strip .wf-step:last-child { border-bottom: none; }
.workflow-strip .wf-step::before {
  content: counter(wf);
  display: grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-size: .85rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04101f;
}
.workflow-strip .wf-step p { color: var(--muted); font-size: .95rem; }

/* ===== Before / After ===== */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.ba-card { padding: 26px; border-radius: 20px; border: 1px solid var(--border); }
.ba-card.before { background: rgba(253,164,175,.06); border-color: rgba(253,164,175,.25); }
.ba-card.after { background: rgba(52,211,153,.07); border-color: rgba(52,211,153,.3); }
.ba-card h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.ba-card.before h3 { color: #fda4af; }
.ba-card.after h3 { color: var(--emerald); }
.ba-card p { color: var(--muted); font-size: .97rem; }
@media (max-width: 700px) { .ba-grid { grid-template-columns: 1fr; } }

/* ===== First automation callout ===== */
.first-auto {
  margin-top: 28px; padding: clamp(24px, 4vw, 36px); border-radius: 22px;
  background: linear-gradient(150deg, rgba(250,204,21,.1), rgba(56,189,248,.08)), var(--surface);
  border: 1px solid rgba(250,204,21,.3);
}
.first-auto .tag {
  display: inline-block; padding: 4px 13px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; background: rgba(250,204,21,.16); color: var(--gold);
  border: 1px solid rgba(250,204,21,.35); margin-bottom: 13px;
}
.first-auto h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 10px; }
.first-auto p { color: var(--muted); max-width: 68ch; }

/* ===== Trust ===== */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 26px; }

/* ===== FAQ ===== */
.faq-list { margin-top: 24px; display: grid; gap: 11px; }
.faq-list details {
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
  padding: 0 20px; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 17px 0; font-weight: 600; font-size: .98rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { color: var(--muted); padding-bottom: 18px; font-size: .94rem; }

/* ===== Final CTA ===== */
.final-cta {
  text-align: center; padding: clamp(36px, 6vw, 60px) clamp(20px, 5vw, 48px);
  border-radius: 26px; margin-bottom: 60px;
  background: linear-gradient(160deg, rgba(56,189,248,.13), rgba(167,139,250,.11)), var(--surface);
  border: 1px solid var(--border-strong);
}
.final-cta h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 12px; }
.final-cta p { color: var(--muted); max-width: 56ch; margin: 0 auto 24px; }
.final-cta .button-row { justify-content: center; }
.final-cta .micro { font-size: .82rem; color: var(--muted-soft); margin-top: 16px; }

/* ===== Internal links ===== */
.other-industries { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.other-industries a {
  padding: 8px 15px; border-radius: 999px; font-size: .84rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
}
.other-industries a:hover { color: var(--text); background: var(--surface-strong); }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border); padding: 26px 0 110px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  color: var(--muted-soft); font-size: .85rem;
}
footer .footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
footer .footer-links a:hover { color: var(--text); }
