/* =============================================
   Lumi — Shopify Catalog Remediation App
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ── Custom Properties ─────────────────────── */
:root {
  --bg-base:       #0d0f1a;
  --bg-surface:    #13162a;
  --bg-card:       #181c30;
  --bg-card-hover: #1e2338;

  --accent:        #7c3aed;
  --accent-light:  #9d5ff7;
  --accent-glow:   rgba(124, 58, 237, 0.35);
  --accent-glow-sm:rgba(124, 58, 237, 0.18);

  --text-primary:  #f0edff;
  --text-secondary:#a29fc4;
  --text-muted:    #6b6891;

  --border:        rgba(124, 58, 237, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.07);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-pill:9999px;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --font-body:    'Inter', system-ui, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;

  --shadow-card: 0 2px 24px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --transition: 0.22s ease;
  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utility ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.6em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-light);
  box-shadow: 0 0 28px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.35);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn-lg {
  padding: 0.9em 2.2em;
  font-size: 1.05rem;
}

/* ── Nav ───────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: rgba(13, 15, 26, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  transition: opacity var(--transition);
}

.nav-logo:hover { opacity: 0.85; }

.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
  flex-shrink: 0;
}

.nav-links {
  display: none;
}

.nav-cta {
  font-size: 0.88rem;
  padding: 0.6em 1.3em;
}

@media (min-width: 640px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }

  .nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
  }

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

/* ── Hero ──────────────────────────────────── */
#hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Radial glow background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(124, 58, 237, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(90, 30, 200, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0d0f1a 0%, #10122050% 100%);
  pointer-events: none;
}

/* Subtle grid texture */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.35em 1em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 6px var(--accent-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.75); }
}

#hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  max-width: 680px;
  margin-inline: auto;
}

.hero-accent {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 60%, #5b21b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-note {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2em;
  flex-wrap: wrap;
}

.hero-note span {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

/* Floating glow orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}

.glow-orb-1 {
  width: 420px; height: 420px;
  background: var(--accent);
  top: -120px; left: -100px;
  opacity: 0.12;
}

.glow-orb-2 {
  width: 320px; height: 320px;
  background: #4f46e5;
  bottom: 60px; right: -80px;
  opacity: 0.1;
}

/* ── Section Shared ────────────────────────── */
section {
  padding: var(--space-xl) 0;
}

.section-heading {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  max-width: 600px;
  margin-bottom: var(--space-sm);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* ── Problem Section ───────────────────────── */
#problem {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.problem-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  margin-top: var(--space-xl);
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.problem-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-icon {
  width: 44px; height: 44px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.problem-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 680px) {
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Features Section ──────────────────────── */
#features {
  position: relative;
}

.features-intro {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.features-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 58, 237, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-card), 0 0 60px rgba(124, 58, 237, 0.08);
  transform: translateY(-4px);
}

.feature-card:hover::after { opacity: 1; }

.feature-number {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  transition: box-shadow var(--transition);
}

.feature-card:hover .feature-icon {
  box-shadow: 0 0 20px var(--accent-glow-sm);
}

.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6em;
}

.feature-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.feature-tag {
  display: inline-flex;
  margin-top: var(--space-md);
  padding: 0.3em 0.85em;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.03em;
}

@media (min-width: 720px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid .feature-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--space-md) / 2);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid .feature-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}

/* ── How It Works ──────────────────────────── */
#how-it-works {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.steps-list {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  grid-template-columns: 1fr;
  position: relative;
}

.step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.step:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.step-number {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px var(--accent-glow);
}

.step-content h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4em;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 800px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .step {
    flex-direction: column;
  }
}

/* ── CTA Section ───────────────────────────── */
#trial {
  text-align: center;
  position: relative;
  overflow: hidden;
}

#trial::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(124,58,237,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.cta-box {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  max-width: 680px;
  margin-inline: auto;
  box-shadow: 0 0 80px rgba(124,58,237,0.12);
}

.cta-box h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.cta-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5em;
  margin-top: var(--space-md);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cta-perks span {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.check-icon {
  color: var(--accent-light);
  font-style: normal;
  font-size: 0.95em;
}

/* ── Footer ────────────────────────────────── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-logo-mark {
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: #fff;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-attribution {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.footer-attribution a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.footer-attribution a:hover {
  color: var(--accent-light);
  text-decoration-color: var(--accent-light);
}

/* ── Focus styles ──────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Divider ───────────────────────────────── */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
}

/* ── Hero Visual / Dashboard mockup ───────── */
.hero-visual {
  margin-top: var(--space-xl);
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
}

.db-window {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(124, 58, 237, 0.1);
}

.db-topbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.db-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.db-red    { background: #ff5f57; }
.db-yellow { background: #febc2e; }
.db-green  { background: #28c840; }

.db-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.db-body {
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.db-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.db-thumb {
  width: 42px; height: 42px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--bg-base), rgba(124, 58, 237, 0.15));
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.db-info { min-width: 0; }

.db-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-tags {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.db-tag {
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  border-radius: 100px;
  font-weight: 600;
  white-space: nowrap;
}

.db-tag-red    { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.db-tag-yellow { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.db-tag-green  { background: rgba(52, 211, 153, 0.15); color: #34d399; }

.db-fix {
  padding: 0.35rem 0.75rem;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.db-fix-done {
  background: var(--bg-base);
  color: var(--text-muted);
}

.db-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  background: rgba(52, 211, 153, 0.05);
  border-top: 1px solid rgba(52, 211, 153, 0.15);
  font-size: 0.75rem;
}

.db-ok     { color: #34d399; font-weight: 600; }
.db-remain { color: var(--text-muted); }

/* ── Scroll fade-in animation ──────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .fade-up:nth-child(2) { transition-delay: 0.08s; }
  .fade-up:nth-child(3) { transition-delay: 0.16s; }
  .fade-up:nth-child(4) { transition-delay: 0.24s; }
}
