/* ==========================================================================
   OmniVibe, LLC — shared stylesheet
   One file, theme-scoped via a class on <body>:
     (none)              -> OmniVibe shell theme (home/about/contact/404)
     .theme-zonezero     -> Zone//Zero product pages
     .theme-calmstudio   -> Calm Studio product pages
   ========================================================================== */

:root {
  /* OmniVibe shell theme (default) — sampled from the logo gradient */
  --bg: #06060a;
  --surface: #131319;
  --surface-2: #1b1b23;
  --text: #f2f1f6;
  --text-mid: #a9a7b8;
  --border: #262633;
  --accent: #8a5cf6;       /* logo mid-gradient purple */
  --accent-2: #4fc9ff;     /* logo blue */
  --accent-3: #ff6fd8;     /* logo pink */
  --accent-contrast: #0a0a0f;
  --accent-glow: none;
  --radius: 10px;
  --max-width: 1100px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.theme-zonezero {
  /* Matched to the key art / logo: navy-black background, bright cyan-blue
     bioluminescent glow, chrome/silver text. */
  --bg: #0a0e17;
  --surface: #121826;
  --surface-2: #1a2233;
  --text: #e7eef5;
  --text-mid: #8b98ab;
  --border: #232c3d;
  --accent: #3ec6f4;
  --accent-contrast: #071019;
  --accent-glow: 0 0 20px rgba(62, 198, 244, 0.5);
}

body.theme-calmstudio {
  /* Matches the app's real dark-mode UI colors (see kDarkBackground etc. in
     lib/main.dart) so the site and app feel like the same product. */
  --bg: #0d0d12;
  --surface: #18181f;
  --surface-2: #202028;
  --text: #eeedf4;
  --text-mid: #8a8aa0;
  --border: #26262f;
  --accent: #c8b0f8;
  --accent-contrast: #18181f;
  --accent-glow: 0 0 14px rgba(200, 176, 248, 0.35);
}

* {
  box-sizing: border-box;
}

.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;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  color: var(--text-mid);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem 0;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-mid);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero .tagline {
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 0 auto;
}

.hero-logo {
  max-width: 420px;
  margin: 0 auto 2rem;
}

/* ---------- product cards (home page) ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.product-card:hover {
  border-color: var(--accent);
}

.product-card h2 {
  margin-bottom: 0.4rem;
}

.product-card .btn {
  margin-top: 1.2rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-disabled {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-mid);
  border: 1px solid var(--border);
  cursor: default;
}

/* ---------- product page sections ---------- */

.product-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.product-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  text-shadow: var(--accent-glow);
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
}

/* media placeholder — only for a section with truly no image yet */

.media-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-mid);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  padding: 1.5rem;
}

/* ---------- hero logo image (product page) ---------- */

.hero-media {
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

/* ---------- full-bleed banner image ---------- */

.banner-section {
  margin: 3rem 0;
}

.banner-section img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------- horizontal screenshot gallery / carousel ---------- */

.carousel {
  position: relative;
}

.shot-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.shot-gallery img {
  height: 440px;
  width: auto;
  max-width: none;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }

@media (max-width: 640px) {
  .carousel-btn { display: none; }
}

/* ---------- feature card thumbnail ---------- */

.feature-card img {
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--border);
  margin-top: 1rem;
}

/* ---------- store / platform callout ---------- */

.callout {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.callout img {
  flex: 1 1 320px;
  max-width: 100%;
  border-radius: calc(var(--radius) - 2px);
}

.callout .callout-text {
  flex: 1 1 260px;
}

/* readable text over future background imagery */

.text-scrim {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: inline-block;
}

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- legal pages (Terms / Privacy) ---------- */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-content h1 {
  font-size: 1.8rem;
}

.legal-content p,
.legal-content li {
  color: var(--text);
}

/* ---------- simple pages (about/contact/404) ---------- */

.page-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.page-content p {
  color: var(--text);
}
