/* ============================================================
   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; }

/* ---- Shared download CTA component ---- */
va-download-cta { display: inline-flex; vertical-align: middle; }
.download-cta {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: 'Hanken Grotesk', sans-serif; font-weight: 600; white-space: nowrap;
  text-decoration: none;
  transition: filter .16s ease, opacity .16s ease, color .16s ease;
}
.download-cta:hover { filter: brightness(1.08); }
.download-cta--nav {
  height: 42px; padding: 0 22px;
  background: var(--olive); color: var(--olive-ink); font-size: 14px;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--olive) 80%, transparent);
}
.download-cta--primary {
  height: 54px; padding: 0 26px;
  background: var(--olive); color: var(--olive-ink); font-size: 16px;
  box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--olive) 80%, transparent);
}
.download-cta--large {
  height: 56px; padding: 0 30px;
  background: var(--olive); color: var(--olive-ink); font-size: 16.5px;
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--olive) 80%, transparent);
}
.download-cta--compact {
  height: 46px; padding: 0 22px;
  background: var(--olive); color: var(--olive-ink); font-size: 14.5px;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--olive) 80%, transparent);
}
.download-cta--link {
  padding: 0; border-radius: 0;
  background: transparent; color: inherit; font-size: inherit; font-weight: inherit;
}
.download-cta--link:hover { color: var(--plum-text); filter: none; }
.download-cta:disabled {
  cursor: not-allowed; opacity: .48; filter: grayscale(.2);
}

/* ---- Download-page modal ---- */
body.modal-open { overflow: hidden; }
.download-modal[hidden] { display: none; }
.download-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.download-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 15, .58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.download-modal__panel {
  position: relative; width: min(100%, 540px); box-sizing: border-box;
  padding: 38px; border: 1px solid var(--glass-bd); border-radius: 24px;
  background: rgba(247, 245, 248, .97); color: var(--ink);
  box-shadow: 0 32px 100px -30px rgba(10, 10, 18, .72);
}
:root[data-theme="dark"] .download-modal__panel { background: rgba(20, 20, 29, .96); }
.download-modal__close {
  position: absolute; top: 14px; right: 16px; width: 38px; height: 38px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink2);
  font: 400 30px/1 'Hanken Grotesk', sans-serif; cursor: pointer;
}
.download-modal__close:hover { color: var(--plum-text); background: var(--plum-wash); }
.download-modal__eyebrow {
  margin-bottom: 10px; color: var(--plum-text); font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
}
.download-modal h2 { margin: 0; font-size: clamp(30px, 5vw, 42px); line-height: 1.05; letter-spacing: -.02em; }
.download-modal__panel > p { margin: 14px 0 26px; max-width: 460px; color: var(--ink2); font-size: 15.5px; line-height: 1.6; }
.download-form { display: grid; gap: 17px; }
.download-form__names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.download-form label { display: grid; gap: 7px; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.download-form input {
  box-sizing: border-box; width: 100%; height: 50px; padding: 0 15px;
  border: 1px solid var(--line2); border-radius: 12px;
  background: var(--glass); color: var(--ink); font: 400 16px 'Hanken Grotesk', sans-serif;
}
.download-form input:focus { border-color: var(--plum-text); outline: 2px solid color-mix(in srgb, var(--plum) 22%, transparent); outline-offset: 1px; }
.download-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.download-form__error { margin: -4px 0 0; padding: 11px 13px; border-radius: 10px; background: rgba(188, 45, 66, .12); color: #A6253B; font-size: 13.5px; line-height: 1.4; }
:root[data-theme="dark"] .download-form__error { color: #FF9BAD; }
.download-form__submit {
  height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--olive); color: var(--olive-ink);
  font: 600 15.5px 'Hanken Grotesk', sans-serif; cursor: pointer;
}
.download-form__submit:disabled { cursor: wait; opacity: .7; }
.download-form__consent { margin: -3px 4px 0; color: var(--ink2); font-size: 12px; line-height: 1.5; text-align: center; }
.download-form__consent a { color: var(--plum-text); }

/* ---- 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; }
  .download-modal { padding: 14px; align-items: end; }
  .download-modal__panel { padding: 32px 22px 24px; border-radius: 22px; }
  .download-form__names { grid-template-columns: 1fr; }
  .download-cta--nav { height: 40px; padding: 0 16px; }
}
