/* Infosun product landing pages — shared layout */
:root {
  --bg: #0b1220;
  --bg-card: rgba(16, 24, 40, 0.78);
  --text: #eef3ff;
  --muted: #8fa3c7;
  --line: rgba(140, 170, 220, 0.14);
  --accent: #5b8cff;
  --accent-2: #7ee8ff;
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Noto Serif SC", Georgia, serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.bg-mesh {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 15% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent),
    radial-gradient(ellipse 50% 40% at 85% 20%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent);
  pointer-events: none;
  z-index: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(18px, 4vw, 36px);
  height: 68px;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent-2) 70%, var(--accent)));
  color: #fff;
  font-size: 0.95rem;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.header-actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

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

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn--lg { padding: 14px 28px; font-size: 1rem; }

.menu-btn {
  display: none;
  border: none;
  background: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

main { position: relative; z-index: 1; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(18px, 4vw, 36px);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.18;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
}

.hero-lead {
  margin: 0 0 26px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-points li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.hero-panel {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.panel-title {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-grid {
  display: grid;
  gap: 12px;
}

.panel-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.panel-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.panel-item span {
  font-size: 0.84rem;
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin: 0 auto 12px;
  padding: 0 clamp(18px, 4vw, 36px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  padding: 22px 16px;
  text-align: center;
  background: var(--bg-card);
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.metric span {
  font-size: 0.82rem;
  color: var(--muted);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 72px) clamp(18px, 4vw, 36px);
}

.section--alt {
  max-width: none;
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--line);
}

.section--alt > * {
  max-width: 1120px;
  margin-inline: auto;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  padding: 20px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
}

.step h3 { margin: 0 0 6px; font-size: 0.98rem; }
.step p { margin: 0; font-size: 0.86rem; color: var(--muted); }

.cta-band {
  margin-top: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #111), #111827);
}

.cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 68px) clamp(18px, 4vw, 36px);
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-inner p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.footer {
  padding: 36px clamp(18px, 4vw, 36px);
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer a { color: var(--accent-2); }

/* Theme variants */
body.theme-commerce {
  --accent: #e8943a;
  --accent-2: #ffd089;
  --bg: #14100c;
}

body.theme-drama {
  --accent: #9b5de5;
  --accent-2: #d9b8ff;
  --bg: #100d18;
}

body.theme-rag {
  --accent: #3b82f6;
  --accent-2: #93c5fd;
  --bg: #0a1020;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .feature-grid, .steps, .metrics { grid-template-columns: 1fr 1fr; }
  .nav, .header-actions { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .header.open .nav,
  .header.open .header-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 18px;
    background: rgba(11, 18, 32, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .header.open .nav { margin-left: 0; }
}

@media (max-width: 560px) {
  .feature-grid, .steps, .metrics { grid-template-columns: 1fr; }
}
