/* Qolony marketing site — base styles */

:root {
  --bg: #FAFAFC;
  --bg-elev: #FFFFFF;
  --bg-tint: #F4F2F8;
  --ink: #0F0F1A;
  --ink-2: #2A2A3A;
  --ink-3: #5B5B6E;
  --ink-4: #8B8B9E;
  --line: #E8E6EE;
  --line-2: #D9D6E2;
  --lavender: #C4B5FD;
  --lavender-soft: #E9E2FE;
  --lavender-deep: #A78BFA;
  --purple: #7C3AED;
  --purple-deep: #6D28D9;
  --purple-ink: #4C1D95;
  --warn: #B45309;
  --shadow-sm: 0 1px 2px rgba(15, 15, 26, 0.04), 0 1px 3px rgba(15, 15, 26, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 15, 26, 0.06), 0 2px 4px rgba(15, 15, 26, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(76, 29, 149, 0.18), 0 8px 16px rgba(15, 15, 26, 0.04);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

[data-theme="dark"] {
  --bg: #0B0A12;
  --bg-elev: #15131F;
  --bg-tint: #1B1828;
  --ink: #F4F2FA;
  --ink-2: #D6D2E2;
  --ink-3: #9B96AC;
  --ink-4: #6E6982;
  --line: #25223A;
  --line-2: #322E4A;
  --lavender: #C4B5FD;
  --lavender-soft: #2A2542;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

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

/* utility */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* focus rings */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  padding: 13px 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--purple); }

.btn-store {
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  min-width: 200px;
}
.btn-store:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-store .label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn-store .label .top { font-size: 11px; opacity: 0.85; letter-spacing: 0.02em; }
.btn-store .label .bot { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); }

/* sections */
section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-ink);
  font-weight: 500;
  font-family: var(--font-sans);
}
[data-theme="dark"] .eyebrow { color: var(--lavender); }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
}

/* fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled {
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.nav-brand img { width: 28px; height: 28px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 450;
}
.nav-link:hover { color: var(--ink); background: var(--bg-tint); }
.nav-link.active { color: var(--ink); background: var(--bg-tint); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-mini-cta {
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
}
.nav-mini-cta:hover { background: var(--purple); }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: background 160ms ease, color 160ms ease;
}
.icon-btn:hover { background: var(--bg-tint); color: var(--ink); }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* Footer */
footer.foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 80px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  align-items: start;
}
.foot-brand-col { max-width: 320px; }
.foot-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 16px;
}
.foot-brand img { width: 26px; height: 26px; }
.foot-tag {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}
.foot-entity {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
  font-feature-settings: "tnum";
}
.foot-entity strong {
  color: var(--ink-2);
  font-weight: 500;
}
.foot-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  font-size: 14px;
  color: var(--ink-2);
}
.foot-col a:hover { color: var(--purple); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  gap: 24px;
  flex-wrap: wrap;
}
.foot-socials { display: flex; gap: 6px; }

@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 80;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 300ms ease;
}
.cookie.show { transform: translateY(0); opacity: 1; }
.cookie h5 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
}
.cookie p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
}
.cookie-btn:hover { border-color: var(--ink); }
.cookie-btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cookie-btn.primary:hover { background: var(--purple); border-color: var(--purple); }

@media (max-width: 700px) {
  .cookie { grid-template-columns: 1fr; }
}

/* Page transitions */
.page {
  animation: pageIn 400ms ease both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Generic card */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  border-color: var(--line-2);
}

/* Legal page basics */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px var(--gutter) 120px;
}
.legal h1 {
  font-size: clamp(40px, 6vw, 56px);
  margin-bottom: 12px;
}
.legal .updated {
  color: var(--ink-3);
  font-size: 14px;
  margin-bottom: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-tint);
}
.legal h2 {
  font-size: 24px;
  margin: 56px 0 16px;
}
.legal h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  margin: 32px 0 8px;
  color: var(--ink);
}
.legal p, .legal li {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 14px;
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--purple); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--purple) 30%, transparent); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--purple); }
.legal hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}
.toc {
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 32px 0 48px;
}
.toc h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  margin: 0 0 12px;
  font-weight: 500;
}
.toc ol { padding-left: 20px; margin: 0; columns: 2; column-gap: 24px; }
.toc li { font-size: 14px; margin: 0 0 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--purple); }

@media (max-width: 600px) {
  .toc ol { columns: 1; }
}
