/* Imara Pulse landing page — mirrors the desktop app's brand:
   purple #7A007E, orange #F39200, slate surfaces, Inter, large rounded cards. */
:root {
  --purple: #7a007e;
  --purple-deep: #4a004d;
  --purple-ink: #210022;
  --orange: #f39200;
  --bg: #020617;
  --surface: rgba(15, 23, 42, 0.6);
  --surface-strong: #0f172a;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-strong: #ffffff;
    --border: rgba(100, 116, 139, 0.22);
    --text: #0f172a;
    --muted: #475569;
    --shadow: 0 30px 70px rgba(71, 85, 105, 0.22);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(1152px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }

.glow { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; }
.glow-a { width: 520px; height: 520px; top: -160px; left: -140px; background: rgba(122, 0, 126, 0.45); }
.glow-b { width: 420px; height: 420px; bottom: -140px; right: -100px; background: rgba(243, 146, 0, 0.16); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.logo-card { background: #fff; padding: 10px 14px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.logo-card img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.brand-tag { margin-top: 6px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }

.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.status[data-state="online"] { color: var(--ok); background: rgba(16, 185, 129, 0.1); border-color: rgba(52, 211, 153, 0.3); }
.status[data-state="offline"] { color: var(--bad); background: rgba(244, 63, 94, 0.1); border-color: rgba(251, 113, 133, 0.3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status[data-state="online"] .dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

/* Hero */
.hero > * { min-width: 0; }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.eyebrow { margin: 0 0 14px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; font-weight: 900; letter-spacing: -0.035em; }
.accent { background: linear-gradient(90deg, #d24bd6 0%, var(--orange) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 560px; margin: 24px 0 0; color: var(--muted); font-size: 17px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 16px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .status:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 12px 30px rgba(122, 0, 126, 0.45); }
.btn-primary:hover { background: #9b009f; }
.btn-ghost { border: 2px solid var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--purple); }

.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--ok); }

/* Preview card */
.preview {
  padding: 24px; border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(170deg, var(--purple) 0%, var(--purple-deep) 48%, var(--purple-ink) 100%);
  box-shadow: var(--shadow); color: #fff; position: relative; overflow: hidden;
}
.preview::before { content: ""; position: absolute; top: -70px; right: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(243, 146, 0, 0.14); filter: blur(50px); }
.preview > * { position: relative; }
.preview-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.pill { padding: 5px 12px; border-radius: 999px; background: var(--orange); color: #210022; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.pill-soft { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.75); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile, .chart, .feed { background: rgba(0, 0, 0, 0.24); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 20px; padding: 16px; backdrop-filter: blur(8px); }
.tile { display: flex; flex-direction: column; gap: 6px; }
.tile-label { color: rgba(255, 255, 255, 0.5); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.tile-value { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.meter { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-top: 4px; }
.meter-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d24bd6, #fff); }
.meter-fill.orange { background: var(--orange); }
.chart { margin-top: 12px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 14px; }
.bar { flex: 1; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #e070e4, #9b009f); }
.bar.orange { background: linear-gradient(180deg, #ffb84d, var(--orange)); }
.bar.faint { opacity: 0.35; }
.days { display: flex; gap: 10px; margin-top: 8px; color: rgba(255, 255, 255, 0.45); font-size: 11px; font-weight: 700; }
.days span { flex: 1; text-align: center; }
.feed { margin-top: 12px; display: grid; gap: 10px; }
.feed-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.feed-row em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.dot-ok { color: var(--ok); }
.dot-warn { color: var(--warn); }

/* Sample-value helpers (kept as classes so the page needs no inline styles) */
.w-84 { width: 84%; } .w-100 { width: 100%; }
.h-20 { height: 20%; } .h-30 { height: 30%; } .h-55 { height: 55%; } .h-64 { height: 64%; }
.h-72 { height: 72%; } .h-78 { height: 78%; } .h-88 { height: 88%; }

/* Sections */
.section { padding: 56px 0; }
h2 { margin: 0 0 32px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .role {
  padding: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover, .role:hover { transform: translateY(-4px); border-color: rgba(163, 0, 168, 0.6); }
.icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, var(--purple), #a300a8); color: #fff; box-shadow: 0 8px 20px rgba(122, 0, 126, 0.4); }
.icon svg { width: 24px; height: 24px; }
h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.card p, .role p { margin: 0; color: var(--muted); font-size: 15px; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role h3 { margin-top: 0; }
.role-cta { background: linear-gradient(170deg, var(--purple) 0%, var(--purple-deep) 60%, var(--purple-ink) 100%); border-color: rgba(255, 255, 255, 0.1); color: #fff; }
.role-cta p { color: rgba(255, 255, 255, 0.75); margin-bottom: 20px; }
.role-cta .btn-primary { background: var(--orange); color: #210022; box-shadow: 0 12px 30px rgba(243, 146, 0, 0.35); }
.role-cta .btn-primary:hover { background: #ffad2e; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 32px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer a { font-weight: 700; text-decoration: none; }
.footer a:hover { color: var(--orange); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; }
  .grid, .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .nav { flex-wrap: wrap; }
  .logo-card img { height: 32px; }
  .grid, .roles { grid-template-columns: minmax(0, 1fr); }
  .card, .role { padding: 22px; }
  .lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
