/* ============================================================
   Velvet Avocado Studio — Landing site (Glass / Hanken)
   Shared theme tokens, base, and interactive-element styles.
   Layout lives inline in the HTML to stay faithful to the
   original design; theming + hover/focus behaviour live here.
   ============================================================ */

/* ---- Fonts ---- */
/* Hanken Grotesk + Space Mono are loaded via <link> in each page. */

/* ---- Theme tokens: light (default) ---- */
:root {
  --ink: #1A1A1E;
  --ink2: #54545F;
  --faint: #8E8E9A;
  --line: rgba(30, 20, 50, 0.10);
  --line2: rgba(30, 20, 50, 0.16);
  --glass: rgba(255, 255, 255, 0.52);
  --glass-2: rgba(255, 255, 255, 0.34);
  --glass-bd: rgba(255, 255, 255, 0.70);
  --blob-op: 0.5;
  --plum: #5B4DE0;
  --plum-text: #5B4DE0;
  --plum-wash: color-mix(in srgb, #5B4DE0 12%, transparent);
  --olive: #1F9D6B;
  --olive-ink: #FFFFFF;
  --olive-wash: color-mix(in srgb, #1F9D6B 16%, transparent);
  --page-bg: linear-gradient(165deg, #ECE7F5 0%, #E9E5DE 45%, #E2ECE4 100%);
}

/* ---- Theme tokens: dark ---- */
:root[data-theme="dark"] {
  --ink: #F4F4F5;
  --ink2: #A6A6B0;
  --faint: #6A6A74;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --glass: rgba(26, 26, 36, 0.50);
  --glass-2: rgba(255, 255, 255, 0.06);
  --glass-bd: rgba(255, 255, 255, 0.12);
  --blob-op: 0.65;
  --plum: #5B4DE0;
  --plum-text: color-mix(in srgb, #5B4DE0 50%, white);
  --plum-wash: color-mix(in srgb, #5B4DE0 26%, transparent);
  --olive: color-mix(in srgb, #1F9D6B 68%, white);
  --olive-ink: #0A0A0F;
  --olive-wash: color-mix(in srgb, #1F9D6B 16%, transparent);
  --page-bg: linear-gradient(165deg, #0C0B14 0%, #0A0A0F 50%, #0B100E 100%);
}

/* ---- Base ---- */
html, body { margin: 0; }
body {
  background: var(--page-bg);
  min-height: 100vh;
  font-family: 'Hanken Grotesk', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #5B4DE0; color: #fff; }
img { max-width: 100%; }

/* ---- Aurora backdrop drift ---- */
@keyframes drift  { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3%, -4%) scale(1.06); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes drift2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-4%, 3%) scale(1.08); } 100% { transform: translate(0, 0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .aurora > * { animation: none !important; }
}

/* ---- Link + button hover behaviour (replaces prototype style-hover) ---- */
.lnk { text-decoration: none; color: inherit; cursor: pointer; transition: color .16s ease; }
.lnk:hover { color: var(--plum-text); }

.btn-olive { transition: filter .16s ease; }
.btn-olive:hover { filter: brightness(1.08); }

.btn-ghost { transition: color .16s ease, border-color .16s ease; }
.btn-ghost:hover { border-color: var(--plum-text); color: var(--plum-text); }

/* ---- Theme toggle ---- */
.theme-toggle {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; cursor: pointer;
  background: var(--glass, rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-bd, rgba(255, 255, 255, 0.6));
  color: var(--ink);
  transition: color .16s ease, border-color .16s ease;
}
.theme-toggle:hover { color: var(--plum-text); border-color: var(--plum-text); }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }

/* ---- Email-capture widget states ---- */
.capture [data-cap-state] { display: none; }
.capture[data-state="idle"] [data-cap-state="idle"],
.capture[data-state="open"] [data-cap-state="open"],
.capture[data-state="sent"] [data-cap-state="sent"] { display: block; }

/* ---- FAQ accordion ---- */
.faq-body { display: none; }
.faq-item[data-open="true"] .faq-body { display: block; }
.faq-head { cursor: pointer; }

/* ---- Focus ---- */
:focus-visible { outline: 2px solid var(--plum-text); outline-offset: 3px; }
.faq-head:focus-visible { outline-offset: -3px; }

/* ---- Responsive: collapse multi-column layouts on narrow screens ---- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr !important; gap: 40px !important; }
  .feature-row-grid,
  .connected-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .nav-links { display: none !important; }
}
@media (max-width: 620px) {
  .shot-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .asset-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .assetchip-grid { grid-template-columns: 1fr !important; }
  .feature-row-grid,
  .connected-grid { grid-template-columns: 1fr !important; }
  .principles-grid { grid-template-columns: 1fr !important; }
  .providers-grid { grid-template-columns: 1fr !important; }
  .model-grid { grid-template-columns: 1fr !important; }
  nav { padding-left: 24px !important; padding-right: 24px !important; }
}
