/* Colors copied from the Mira app: Ask_Mira_App/client/src/styles/theme.css */
:root {
  --bg-primary: #0f1419;
  --bg-surface: #1a2129;
  --bg-card: #202832;
  --border-subtle: #2a333d;
  --text-primary: #e8edf2;
  --text-secondary: #b2bdc8;
  --text-tertiary: #838f9b;
  --accent-blue: #4a9eff;
  --accent-blue-dim: #2d6cb8;
  --accent-purple: #9d7bff;
  --accent-coral: #ff8066;
  --accent-cyan: #47bfff;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-cyan); }
a:hover { color: var(--text-primary); }
img, svg { max-width: 100%; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a.link { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a.link:hover, .nav-links a.link[aria-current="page"] { color: var(--text-primary); border-bottom-color: var(--accent-blue); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue)); color: #0b0f14;
  font-family: inherit;
}
.btn:hover { color: #0b0f14; filter: brightness(1.1); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-subtle); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--accent-blue); filter: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Sections */
section { padding: 64px 0; }
.hero { padding: 88px 0 72px; background: radial-gradient(900px 400px at 80% -10%, rgba(157, 123, 255, 0.18), transparent), radial-gradient(700px 400px at 10% 0%, rgba(74, 158, 255, 0.14), transparent); }
.eyebrow { color: var(--accent-cyan); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
.lead { font-size: 1.2rem; color: var(--text-secondary); max-width: 720px; margin: 0; }
p { margin: 0 0 14px; }
.narrow { max-width: 720px; }
.alt { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

/* Cards and grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 22px; }
.card h3 { color: var(--text-primary); }
.card p { color: var(--text-secondary); margin: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 18px 20px 18px 64px; position: relative; color: var(--text-secondary); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue)); color: #0b0f14; font-weight: 700; display: grid; place-items: center; }
.steps li strong { color: var(--text-primary); }

/* Image placeholders */
.placeholder {
  border: 2px dashed var(--border-subtle); border-radius: var(--radius);
  min-height: 220px; display: grid; place-items: center; text-align: center;
  color: var(--text-tertiary); padding: 24px; margin-top: 28px; background: rgba(32, 40, 50, 0.5);
}

.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1.1fr 0.9fr; } }

.cta-band { text-align: center; background: linear-gradient(135deg, rgba(157, 123, 255, 0.22), rgba(74, 158, 255, 0.22)); border-top: 1px solid var(--border-subtle); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band .btn-row { justify-content: center; }
.note { color: var(--text-tertiary); font-size: 0.9rem; }

/* Form */
form { display: grid; gap: 16px; max-width: 620px; margin-top: 28px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
label .opt { color: var(--text-tertiary); font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--text-primary); background: var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: 10px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-blue); outline-offset: 1px; }
textarea { min-height: 150px; resize: vertical; }
.form-actions { display: grid; gap: 8px; justify-items: start; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px; color: var(--text-secondary); }

/* Footer */
.site-footer { border-top: 1px solid var(--border-subtle); padding: 32px 0; color: var(--text-tertiary); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-inner a { color: var(--text-secondary); }
.footer-inner .tm { flex-basis: 100%; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .nav-links { gap: 10px; width: 100%; justify-content: space-between; }
  .nav-links a.link { font-size: 0.85rem; }
  .nav-links .btn-small { padding: 7px 12px; font-size: 0.85rem; white-space: nowrap; }
}

/* ===== Step 1b: color + motion ===== */
:root {
  --aud-individual: var(--accent-blue);   /* #4a9eff from Mira theme */
  --aud-business: var(--accent-purple);   /* #9d7bff from Mira theme */
  --aud-public: var(--accent-coral);      /* #ff8066 from Mira theme */
}

/* Nav ring */
.brand canvas { width: 34px; height: 34px; display: block; }

/* Animated hero: sky photo + live dot wave */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-sky {
  position: absolute; inset: 0; z-index: -3;
  background:
    url("/assets/mira-sky.jpg") right center / cover no-repeat,
    radial-gradient(ellipse 45% 55% at 96% 88%, rgba(255, 150, 50, 0.55), transparent 65%),
    radial-gradient(ellipse 70% 45% at 92% 100%, rgba(40, 110, 190, 0.55), transparent 70%),
    linear-gradient(180deg, #03060f 0%, #08142b 65%, #0f2547 100%);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(3, 6, 15, 0.82) 0%, rgba(3, 6, 15, 0.55) 45%, rgba(3, 6, 15, 0) 80%);
}
#wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; z-index: -1; pointer-events: none; }
.hero-home { padding: 96px 0 220px; min-height: 620px; background: none; }
.hero-home .lead { color: #cfd9e3; }
@media (max-width: 560px) {
  .hero-home { padding: 56px 0 200px; min-height: 0; }
  .hero-shade { background: linear-gradient(180deg, rgba(3, 6, 15, 0.8), rgba(3, 6, 15, 0.55) 70%, rgba(3, 6, 15, 0.2)); }
  #wave { height: 46%; }
}

/* Meet Mira banner */
.mira-banner {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: 22px; margin: 8px 0 28px;
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(ellipse 40% 90% at 100% 100%, rgba(255, 150, 50, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 80% at 100% 30%, rgba(40, 110, 190, 0.3), transparent 70%),
    linear-gradient(90deg, #03060f, #08142b);
}
.mira-banner canvas { width: 150px; height: 150px; flex: none; }
.mira-word { font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin: 0; }
.mira-word sup { font-size: 0.28em; font-weight: 600; vertical-align: top; position: relative; top: 0.35em; margin-left: 2px; }
.mira-tagline { margin: 0; font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--text-primary); flex: 1 1 260px; }
.mira-tagline .accent { color: var(--accent-cyan); }
@media (max-width: 560px) {
  .mira-banner { padding: 22px; gap: 18px; }
  .mira-banner canvas { width: 110px; height: 110px; }
}

/* Audience colors */
.aud { --aud: var(--accent-blue); }
.aud-individual { --aud: var(--aud-individual); }
.aud-business { --aud: var(--aud-business); }
.aud-public { --aud: var(--aud-public); }
/* One shared top bar for the audience cards and the Meet Mira feature cards */
.card { position: relative; }
.card.aud { --bar: var(--aud); }
.card.bar { --bar: #fff; }
.card.aud::after, .card.bar::after {
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 4px;
  background: var(--bar); border-radius: 0 0 4px 4px;
}
.card.aud h3 { color: var(--aud); }
.card.aud::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--aud); box-shadow: 0 0 14px var(--aud); margin-bottom: 14px; }
.aud-section h2 { color: var(--aud); }
.aud-section .eyebrow { color: var(--aud); }
.aud-section .placeholder { border-color: color-mix(in srgb, var(--aud) 45%, transparent); }
.btn-aud { background: var(--aud); color: #0b0f14; }
.btn-aud:hover { color: #0b0f14; filter: brightness(1.1); }

/* Motion (only when the visitor has NOT asked to reduce motion) */
.btn, .card { transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, border-color 0.25s ease; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(74, 158, 255, 0.25); }
  .aud.card:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--aud) 25%, transparent); }
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
