/* VibeFluid site. No external fonts or assets: everything is served from this repo. */
:root {
  --bg: #08040f;
  --bg-2: #120a22;
  --surface: #17112a;
  --surface-2: #1f1838;
  --line: #2c2448;
  --text: #ece9f6;
  --muted: #a9a3c2;
  --mint: #b4f0d2;
  --lavender: #d0bcff;
  --peach: #ffc9a8;
  --gold: #ffe196;
  /* Same calm sunrise palette and button gradient as the ModoForge Labs site. */
  --gradient: linear-gradient(105deg, var(--peach) 0%, var(--lavender) 55%, var(--mint) 100%);
  --radius: 22px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #d9f9e8; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

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

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(8, 4, 15, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--gradient); color: #0c0914; box-shadow: 0 12px 32px rgba(255, 201, 168, .24); }
.btn-primary:hover { color: #0c0914; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(208, 188, 255, .34); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { color: var(--text); border-color: var(--lavender); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 40%, rgba(208, 188, 255, .22), transparent 70%),
              radial-gradient(40% 50% at 10% 90%, rgba(180, 240, 210, .12), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; pointer-events: none; }
.hero .wrap a, .hero .wrap .phone { pointer-events: auto; }
.eyebrow { display: inline-block; color: var(--mint); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.touch-hint { color: var(--muted); font-size: .85rem; margin-top: 26px; opacity: .85; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .phone { margin: 0 auto; }
}

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19;
  border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #2b2440, #0d0918);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .notch { position: absolute; top: 20px; left: 50%; width: 22%; height: 18px; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 2; }
.phone .label {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  background: rgba(8, 4, 15, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--text); font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; white-space: nowrap;
}
/* Time of Day: the four scenes cross-fade, like the wallpaper through a day. */
.cycle img { opacity: 0; animation: cycle 16s infinite; }
/* The first scene starts already faded in, so the phone is never black on load. */
.cycle img:nth-child(1) { animation-delay: -2s; }
.cycle img:nth-child(2) { animation-delay: 2s; }
.cycle img:nth-child(3) { animation-delay: 6s; }
.cycle img:nth-child(4) { animation-delay: 10s; }
@keyframes cycle { 0% { opacity: 0; } 6% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cycle img { animation: none; }
  .cycle img:last-child { opacity: 1; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }
.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid rgba(255, 255, 255, .04); }

/* Gallery of phones */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.gallery .phone { width: 100%; border-radius: 30px; padding: 7px; }
.gallery .phone .screen { border-radius: 24px; }
.gallery .phone .notch { top: 14px; height: 12px; }
.gallery figure { margin: 0; }
.gallery figcaption { text-align: center; margin-top: 12px; font-weight: 600; }
.gallery figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; }
@media (max-width: 960px) {
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(46vw, 220px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .gallery figure { scroll-snap-align: start; }
}

/* Time of Day scenes */
.scenes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.scenes figure { margin: 0; }
.scenes img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.scenes figcaption { margin-top: 8px; font-size: .9rem; font-weight: 600; text-align: center; }
@media (max-width: 960px) { .scenes { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .scenes { grid-template-columns: repeat(3, 1fr); gap: 10px; } .scenes figcaption { font-size: .8rem; } }

/* Wallpaper list */
.list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; position: relative;
}
.item h3 { margin: 0 0 6px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.item p { margin: 0; color: var(--muted); font-size: .96rem; }
.swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; }
@media (max-width: 900px) { .list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .list { grid-template-columns: 1fr; } }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 16px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 1.2rem; }
.feature p { margin: 0; color: var(--muted); }
.feature ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.feature li { margin: 4px 0; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.plan.highlight { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; border: 1px solid transparent; }
.plan .big { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 6px 0 4px; }
.plan .sub { color: var(--muted); margin: 0 0 16px; }
.plan ul { margin: 0; padding-left: 18px; }
.plan li { margin: 6px 0; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mint); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Final call to action */
.closing { text-align: center; }
.closing .section-head { margin: 0 auto 28px; }
.closing .cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .credit { width: 100%; font-size: .85rem; opacity: .8; }

/* Footer tags: each links to the part of the page about it. */
.footer-tags { width: 100%; padding-bottom: 24px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.footer-title { margin: 0 0 14px; font-size: .95rem; font-weight: 600; color: var(--text); letter-spacing: .01em; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .85rem; line-height: 1.3; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
.tags a:hover, .tags a:focus-visible { color: var(--text); border-color: var(--lavender); }
@media (max-width: 600px) { .tags { gap: 6px; } .tags a { padding: 5px 10px; font-size: .8rem; } }

/* Links into the page land below the sticky header. */
[id] { scroll-margin-top: 84px; }

/* ---------- Document pages (privacy) ---------- */
.doc { max-width: 780px; padding: 48px 20px 80px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.1; margin: 0 0 10px; }
.doc .meta { color: var(--muted); margin: 0 0 36px; }
.doc h2 { margin: 2.2em 0 .5em; font-size: 1.45rem; }
.doc h3 { margin: 1.6em 0 .4em; font-size: 1.12rem; }
.doc p, .doc li { color: #d9d5e8; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; font-size: .92em; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 8px; }
.doc .summary p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 560px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--surface); color: var(--text); }
.doc tr:last-child td { border-bottom: 0; }
