/* Mavenflow "coming soon" page. No scripts: light or dark follows the visitor's device; the logo animates
   unless they've turned motion off. Fonts: Sora and Work Sans (SIL Open Font License, see fonts/). */

@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('fonts/sora-latin-7.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/work-sans-latin-9.woff2') format('woff2'); }

:root {
  --bg: #f6f7f9; --panel: #ffffff; --text: #1f2228; --muted: #575d69; --accent: #0037c6; --gold: #e9932b; --line: #e4e6eb;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11131a; --panel: #1a1d26; --text: #eef0f5; --muted: #a9afbd; --accent: #7aa7ff; --gold: #f2a94a; --line: #2a2f3b; }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 10% 5%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(55vmax 40vmax at 95% 100%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%);
}

.wrap { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 12vh 24px 48px; display: flex; flex-direction: column; align-items: center; text-align: center; }
@media (max-width: 560px) { .wrap { padding: 9vh 16px 32px; } }

/* The logo: the ribbon draws in from the left, the word follows, then light runs across the ribbon now and then. */
.logo { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.mark { position: relative; display: block; width: 150px; aspect-ratio: 619 / 346; animation: draw 1.4s cubic-bezier(.22, .8, .24, 1) both; }
.mark img { display: block; width: 100%; height: auto; }
.mark::after {
  content: ''; position: absolute; inset: 0;
  -webkit-mask: url('assets/mavenflow-icon.png') center / contain no-repeat; mask: url('assets/mavenflow-icon.png') center / contain no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
  animation: shine 6s ease-in-out 1.9s infinite;
}
.word { display: block; width: 250px; height: auto; animation: rise .9s cubic-bezier(.22, .8, .24, 1) .65s both; }
@media (max-width: 560px) { .mark { width: min(100px, 28vw); } .word { width: min(170px, 48vw); } .logo { gap: 10px; margin-bottom: 28px; } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); transform: translateY(6px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes shine { 0%, 70% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

.badge, h1, .synopsis, .tagline, .note { animation: fade .8s ease-out both; }
.badge { animation-delay: .8s; } h1 { animation-delay: .9s; } .synopsis { animation-delay: 1.05s; } .tagline { animation-delay: 1.3s; } .note { animation-delay: 1.5s; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .mark, .mark::after, .word, .badge, h1, .synopsis, .tagline, .note, .dot { animation: none; }
}

.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  color: var(--accent); font-family: 'Sora', system-ui, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s ease-in-out infinite; }
h1 { margin: 0 0 20px; font-family: 'Sora', system-ui, sans-serif; font-weight: 800; font-size: clamp(30px, 5vw, 50px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.synopsis { margin: 0 0 18px; max-width: 36em; font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.65; color: var(--muted); }
.tagline { margin: 0 0 40px; font-family: 'Sora', system-ui, sans-serif; font-weight: 700; font-size: 15px; color: var(--accent); }
.note { margin: 0; padding: 14px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 15px; }

.foot { padding: 20px 16px 28px; text-align: center; font-size: 13px; color: var(--muted); }
.note a { color: var(--accent); font-weight: 600; }

/* Bibi and Tobi, the AI mascots: two cards that float gently, a beat apart. */
.mascots { width: 100%; margin: 0 0 40px; animation: fade .8s ease-out 1.4s both; }
.mascots h2 { margin: 0 0 18px; font-family: 'Sora', system-ui, sans-serif; font-weight: 700; font-size: 18px; }
.mascot-row { display: flex; justify-content: center; gap: 24px; }
.mascot { margin: 0; width: min(240px, 42vw); animation: float 5s ease-in-out infinite; }
.mascot:nth-child(2) { animation-delay: -2.5s; }
.mascot img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 24px; box-shadow: 0 18px 40px -18px rgba(0, 55, 198, 0.55); }
.mascot figcaption { margin-top: 10px; font-family: 'Sora', system-ui, sans-serif; font-weight: 700; font-size: 16px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 560px) { .mascot-row { gap: 14px; } .mascots h2 { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .mascots, .mascot { animation: none; } }

/* The definition of a market maven, typed out like a dictionary entry. */
.define {
  width: 100%; max-width: 620px; margin: 0 0 28px; padding: 20px 24px; text-align: left;
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; background: var(--panel);
  box-shadow: 0 18px 40px -28px rgba(0, 55, 198, 0.35); animation: fade .8s ease-out 1s both;
}
.define-head { margin: 0 0 8px; display: flex; align-items: baseline; gap: 10px; }
.define-word { font-family: 'Sora', system-ui, sans-serif; font-weight: 800; font-size: 20px; color: var(--accent); }
.define-pos { font-style: italic; font-size: 14px; color: var(--muted); }
.define-text { margin: 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: blink 1s steps(1) infinite; }
.define-text.typed .caret { animation: blink 1s steps(1) 3, gone 0s 3s forwards; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes gone { to { opacity: 0; } }

/* Discover, Connect, Share. */
.pillars { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; animation: fade .8s ease-out 1.15s both; }
.pillars li { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 80%, transparent); }
.pillars b { font-family: 'Sora', system-ui, sans-serif; font-weight: 700; font-size: 15px; color: var(--accent); }
.pillars span { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 560px) { .pillars { grid-template-columns: minmax(0, 1fr); } .define { padding: 16px 18px; } }
@media (prefers-reduced-motion: reduce) { .define, .pillars, .caret { animation: none; } }
