/* ===== AS POWER shared styles (detail pages) ===== */
:root {
  --navy-900: #0b1729;
  --navy-800: #101d33;
  --navy-700: #17253f;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-50:  #eff5ff;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-200: #e2e8f0;
  --ink-100: #eef2f7;
  --ink-50:  #f4f7fb;
  --white:   #ffffff;
  --radius:  14px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow:    0 4px 20px rgba(15,23,42,0.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.08);
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ink-100);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.logo-mark svg { width: 30px; height: 30px; }
.logo-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-name b { font-size: 18px; color: var(--ink-900); letter-spacing: 0.04em; }
.logo-name span { font-size: 13px; color: var(--ink-700); letter-spacing: 0.18em; font-weight: 700; }

.menu { display: flex; gap: 36px; align-items: center; }
.menu a {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-700);
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.menu a:hover { color: var(--blue-600); }
.menu a.active { color: var(--blue-600); }
.menu a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--blue-600);
}
.nav-search {
  width: 22px; height: 22px;
  color: var(--ink-700);
  cursor: pointer;
}

/* ===== Hero (detail) ===== */
.hero {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(10,20,40,0.78) 0%, rgba(10,20,40,0.88) 100%),
    var(--hero-img, url("https://images.unsplash.com/photo-1513828583688-c52646db42da?w=1800&q=80")) center/cover no-repeat,
    var(--navy-900);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 28px 60px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 10px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.28em;
  color: var(--blue-400);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero .eyebrow::before, .hero .eyebrow::after {
  content: ""; width: 22px; height: 2px; background: var(--blue-400); opacity: 0.8;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero p.sub {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  margin: 0 auto;
  max-width: 620px;
}
.crumbs {
  display: inline-flex;
  align-items: center; gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  margin-top: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
}
.crumbs a:hover { color: white; }
.crumbs .sep { opacity: 0.5; }

/* ===== Section basics ===== */
.section { padding: 80px 0; }
.section.alt { background: var(--ink-50); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.3em;
  color: var(--blue-600);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; background: var(--blue-600);
}
h2.section-title {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-lead { color: var(--ink-600); max-width: 700px; font-size: 16.5px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.03em;
  padding: 13px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-600); color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost {
  background: transparent; color: white; border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-outline {
  background: white; color: var(--ink-900); border: 1px solid var(--ink-200);
}
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--navy-900);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(37,99,235,0.18), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(37,99,235,0.12), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band .divider {
  width: 40px; height: 3px; background: var(--blue-500); margin: 0 auto 20px;
}
.cta-band h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 14px;
  font-weight: 800;
}
.cta-band p {
  max-width: 640px; margin: 0 auto 28px;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
}

/* ===== Quotation bar ===== */
.quote-bar {
  background: var(--navy-800);
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.quote-bar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.quote-bar-text { color: white; }
.quote-bar-text b { font-weight: 700; display: block; font-size: 15px; }
.quote-bar-text span { color: rgba(255,255,255,0.6); font-size: 13.5px; }

/* ===== Footer ===== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
}
.footer .logo-block p { margin: 14px 0 0; font-size: 13.5px; max-width: 340px; }
.footer .footer-logo {
  background: white;
  padding: 10px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer h5 {
  color: white; font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; margin: 0 0 18px; font-weight: 700;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer li a:hover { color: white; }
.footer .legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer .legal a { margin-left: 22px; }

/* ===== Side rail ===== */
.side-rail {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 40;
}
.side-rail a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-600); color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  transition: transform .15s ease;
}
.side-rail a:hover { transform: scale(1.08); }
.side-rail a.alt { background: white; color: var(--blue-600); border: 1px solid var(--ink-200); box-shadow: var(--shadow-sm); }
.side-rail svg { width: 16px; height: 16px; }

/* ===== Utilities ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--blue-50); color: var(--blue-600);
}
.chip.dark { background: rgba(255,255,255,0.1); color: white; }

/* Tweaks panel */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px;
  background: white; border: 1px solid var(--ink-200); border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 18px; width: 280px;
  z-index: 100;
  display: none;
  font-size: 13px;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-700); }
.tweaks-panel .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.tweaks-panel label { color: var(--ink-700); font-weight: 600; }
.tweaks-panel input[type="color"] { width: 40px; height: 28px; border: 1px solid var(--ink-200); border-radius: 6px; background: none; padding: 0; }
.tweaks-panel select, .tweaks-panel input[type="text"] {
  border: 1px solid var(--ink-200); border-radius: 6px; padding: 6px 8px; font: inherit;
}

/* Fix check icon size */
.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-right: 8px;
}
.check svg {
    width: 16px;
    height: 16px;
}
.feat-icon svg {
    width: 24px;
    height: 24px;
}
