/* Neutral palette for comforting, inviting feel. Very neutral site (grays). 
   Generated samples (in preview) use vibrant pop colors.
   Dark mode default. Light/dark toggle + time-of-day (default dark evenings/mornings).
   Readable text, soft transitions. */

:root {
  /* Dark (default) - neutral, calm, comforting */
  --color-bg: #0f0f0f;
  --color-surface: #1a1a1a;
  --color-text: #f5f5f5;
  --color-text-subtle: #cbd5e1;
  --color-muted: #a1a1aa;
  --color-accent: #3f3f46;
  --color-primary: #3b82f6;
  --color-highlight: #3b82f6;
  --color-border: #27272a;
  --color-light: #27272a; /* subtle item bg in previews/scheduler */
  --hero-grid: rgba(255, 255, 255, 0.05);
  --color-pop: #14b8a6; /* vibrant for generated samples only */

  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="light"] {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #171717;
  --color-text-subtle: #4b5563;
  --color-muted: #71717a;
  --color-accent: #52525b;
  --color-primary: #2563eb;
  --color-highlight: #3b82f6;
  --color-border: #e4e4e7;
  --color-light: #f4f4f5;
  --hero-grid: rgba(0, 0, 0, 0.04);
  --color-pop: #14b8a6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-highlight);
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.site-logo img {
  display: block;
  height: 2.25rem;
  width: auto;
}

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

.site-nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-highlight);
}

main {
  max-width: 80rem; /* wider to let interactive Q&A / demo content use more of the available width (hero image removed) */
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero-masthead {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: clamp(2.75rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(
    145deg,
    var(--color-bg) 0%,
    var(--color-surface) 100%
  );
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  isolation: isolate;
}

.hero-masthead__aurora {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 85%;
  background:
    radial-gradient(ellipse 55% 48% at 18% 35%, rgba(63, 63, 70, 0.15), transparent 58%),
    radial-gradient(ellipse 45% 40% at 82% 22%, rgba(63, 63, 70, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.hero-masthead__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, black 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.hero-masthead__inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  /* Single column (decorative image removed from hero); lets the interactive Q&A below use the full available content width */
}

.hero-masthead__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0.9;
}

.hero-masthead h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--color-text);
  text-wrap: balance;
}

.hero-masthead__lede {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-subtle);
  max-width: 56rem; /* wider now that hero is single full-width column (no side image) */
}

.hero-masthead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Art/SVG removed (hero now single full-width column text). Aurora/grid backgrounds provide subtle interest without competing for space. */

@keyframes hero-aurora {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(2%, 1%) rotate(1.5deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-masthead__aurora {
    animation: hero-aurora 14s ease-in-out infinite alternate;
  }
}

.btn--hero.btn--primary {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn--hero.btn--primary:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary);
  color: #fff;
}

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

.btn--ghost:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-accent);
}

.features {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: var(--color-surface);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.feature h2 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.webdna-docs {
  margin: 2.5rem 0 0;
  padding: 1.35rem 1.5rem;
  background: var(--color-surface);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.webdna-docs__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
}

.webdna-docs__lede {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.webdna-docs__list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9375rem;
}

.webdna-docs__list a {
  font-weight: 600;
}

.webdna-docs__hint {
  font-weight: 400;
  color: var(--color-muted);
}

.webdna-docs__help {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.site-footer {
  margin-top: auto;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
}

#theme-toggle {
  font-size: 0.85rem;
  padding: 0.3rem 0.55rem;
  border-radius: 9999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
#theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}

/* Proving Ground / Launchpad demo styles (for go.bongo.cc) */
.demo-section {
  max-width: 80rem; /* allow the interactive Q&A (description, guided questions, live prototype preview) to take more of the full width */
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.demo-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.chat-container {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  height: 420px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--color-bg);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  max-width: 85%;
}

.chat-message.user {
  background: var(--color-highlight);
  color: white;
  margin-left: auto;
  text-align: right;
}

.chat-message.ai {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.chat-input {
  display: flex;
  border-top: 1px solid var(--color-border);
  padding: 0.5rem;
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.chat-input button {
  margin-left: 0.5rem;
  background: var(--color-highlight);
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 0 1rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.preview-pane {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  padding: 1rem;
  min-height: 420px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  overflow: auto;
}

.preview-pane h2 { font-size: 1.1rem; margin: 0 0 0.5rem; color: var(--color-primary); }
.preview-pane p { font-size: 0.85rem; color: var(--color-muted); margin: 0 0 0.5rem; }

.proving-cta {
  text-align: center;
  margin-top: 2rem;
}

.proving-cta .btn {
  margin: 0 0.5rem;
}
