/* Kairis landing — Promethis palette, light/dark, desktop-only under lg */

:root,
[data-theme='dark'] {
  color-scheme: dark;

  --font-display: "Cinzel", "Times New Roman", Georgia, serif;
  --font-editorial: "Instrument Serif", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --primary: #cab8fc;
  --primary-lift: #d9ccfe;
  --ember: #f9caa0;
  --on-primary: #111314;

  --base: #0c0d0e;
  --raise: #141618;
  --ink: #f8fafc;
  --muted: #9a9dad;
  --faint: rgb(241 243 241 / 0.55);
  --line: rgb(241 243 241 / 0.1);
  --line-strong: rgb(241 243 241 / 0.18);
  --glow: rgb(202 184 252 / 0.35);
  --mesh-1: rgb(202 184 252 / 0.16);
  --mesh-2: rgb(249 202 160 / 0.08);
  --gate-card: rgb(241 243 241 / 0.04);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --max: 1120px;
}

[data-theme='light'] {
  color-scheme: light;

  --base: #f8fafc;
  --raise: #ffffff;
  --ink: #111314;
  --muted: #4e5162;
  --faint: rgb(78 81 98 / 0.72);
  --line: rgb(17 19 20 / 0.1);
  --line-strong: rgb(17 19 20 / 0.18);
  --glow: rgb(202 184 252 / 0.28);
  --ember: #c48a4e;
  --mesh-1: rgb(202 184 252 / 0.22);
  --mesh-2: rgb(249 202 160 / 0.14);
  --gate-card: rgb(17 19 20 / 0.03);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv05", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
  transition:
    background-color 0.45s var(--ease),
    color 0.45s var(--ease);
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

a {
  color: var(--primary-lift);
  text-decoration: none;
}
[data-theme='light'] a {
  color: #7c5fd4;
}
a:hover {
  color: var(--ember);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--mesh-1), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, var(--mesh-2), transparent 50%);
  transition: opacity 0.45s var(--ease);
}

/* —— Desktop gate (< lg / 1024px) —— */
.device-gate {
  display: none;
}

@media (max-width: 1023px) {
  .site {
    display: none !important;
  }

  .device-gate {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 2;
    min-height: 100svh;
    padding: 2rem 1.35rem;
    overflow: hidden;
  }

  .device-gate__glow {
    position: absolute;
    inset: -20% -10%;
    background:
      radial-gradient(ellipse 55% 40% at 30% 25%, rgb(202 184 252 / 0.35), transparent 60%),
      radial-gradient(ellipse 50% 45% at 78% 70%, rgb(249 202 160 / 0.22), transparent 55%);
    animation: gate-drift 14s var(--ease) infinite alternate;
  }

  .device-gate__card {
    position: relative;
    width: min(100%, 28rem);
    padding: 2rem 1.6rem 1.85rem;
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    background: color-mix(in oklab, var(--raise) 88%, transparent);
    backdrop-filter: blur(20px) saturate(1.25);
    box-shadow:
      0 0 0 1px var(--gate-card),
      0 32px 64px -28px rgb(0 0 0 / 0.45),
      0 0 48px -16px var(--glow);
    text-align: left;
    animation: rise 0.85s var(--ease) both;
  }

  .device-gate__title {
    margin: 0.95rem 0 0;
    font-family: var(--font-sans);
    font-weight: 650;
    font-size: clamp(1.85rem, 6.5vw, 2.45rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  .device-gate__title em {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(105deg, var(--primary), var(--ember));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .device-gate__lede {
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.55;
    text-wrap: pretty;
  }

  .device-gate__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .device-gate__meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 99px;
    background: var(--primary);
  }

  .device-gate__hint {
    margin: 1.15rem 0 0;
    font-size: 0.92rem;
    color: var(--muted);
  }
  .device-gate__hint strong {
    color: var(--ink);
    font-weight: 600;
  }
}

@keyframes gate-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -3%, 0) scale(1.06);
  }
}

/* —— Site shell —— */
.site {
  position: relative;
  z-index: 1;
}

.chrome {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--base) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.brand img {
  border-radius: 7px;
}
.brand:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
  font-size: 0.9rem;
}
.nav a {
  color: var(--muted);
}
.nav a:hover {
  color: var(--ink);
}
.nav-quiet {
  opacity: 0.7;
}

.chrome-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* —— Theme switch (Promethis-inspired, CSS-only) —— */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-switch__track {
  position: relative;
  display: block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.theme-switch input {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  display: block;
  border: none;
  margin: 0;
  padding: 0;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: color-mix(in oklab, var(--ink) 16%, transparent);
  cursor: pointer;
  transition: background 0.2s ease;
}
.theme-switch input:hover {
  background: color-mix(in oklab, var(--ink) 26%, transparent);
}
.theme-switch input:checked {
  background: var(--primary);
}
.theme-switch input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.theme-switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0.5px 1px rgb(0 0 0 / 0.18);
  pointer-events: none;
  transition: transform 0.35s var(--ease);
}
.theme-switch input:checked + .theme-switch__knob {
  transform: translateX(18px);
}
.theme-switch__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 3.2rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 36px -8px var(--glow);
}
.btn-primary:hover {
  background: var(--primary-lift);
  color: var(--on-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--ink);
}
.btn-lg {
  min-width: 12.5rem;
  padding: 1.05rem 1.4rem;
}
.btn-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
}
.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  flex-direction: row;
}
.hero-cta .btn,
.chrome .btn {
  flex-direction: row;
}

/* —— Hero —— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 4.5rem) 1.5rem 0;
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-title {
  margin: 1.15rem auto 0;
  max-width: 16ch;
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: clamp(2.35rem, 1.2rem + 4.5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.05s forwards;
}
.hero-title em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(105deg, var(--primary), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero-meta {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.32s forwards;
}

.hero-stage {
  margin: clamp(2.5rem, 6vh, 3.75rem) auto 0;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--primary) 12%, transparent),
    0 40px 80px -30px rgb(0 0 0 / 0.55),
    0 0 60px -20px var(--glow);
  opacity: 0;
  animation: fade 1.1s var(--ease) 0.35s forwards;
}
[data-theme='light'] .hero-stage {
  box-shadow:
    0 0 0 1px var(--line),
    0 28px 64px -24px rgb(17 19 20 / 0.18),
    0 0 40px -18px var(--glow);
}
.hero-stage img {
  display: block;
  width: 100%;
  height: auto;
}

/* —— Trust —— */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: clamp(2.5rem, 5vh, 3.5rem) auto 0;
  padding: 0 1.5rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust p {
  margin: 0;
  padding: 1.1rem 1rem;
  background: var(--raise);
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.trust strong {
  color: var(--ink);
  font-weight: 600;
}

/* —— Sections —— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vh, 7rem) 1.5rem;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}
.section-head h2,
.section h2,
.split-copy h2 {
  margin: 0.85rem 0 0;
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: clamp(1.65rem, 0.9rem + 2.2vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 18ch;
}
.section-lede {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.feature-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature-row {
  padding: 1.65rem 1.5rem 1.65rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.feature-row h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.feature-row p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  border-top: 1px solid var(--line);
}

.split-visual {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.45);
}
.split-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.plain-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.plain-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--primary);
}

.section-download {
  text-align: center;
  border-top: 1px solid var(--line);
}
.section-download h2,
.section-download .section-lede {
  margin-left: auto;
  margin-right: auto;
}
.section-download h2 {
  max-width: 14ch;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 22rem));
  justify-content: center;
  gap: 1.1rem;
  margin-top: 2.35rem;
}

/* —— Download cards —— */
.dl-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 6.4rem;
  padding: 1.25rem 1.3rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  isolation: isolate;
  transition:
    transform 0.45s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.45s var(--ease);
}
.dl-card:hover {
  transform: translateY(-4px);
  color: var(--ink);
  border-color: color-mix(in oklab, var(--primary) 55%, var(--line-strong));
  box-shadow:
    0 24px 48px -28px rgb(0 0 0 / 0.55),
    0 0 40px -12px var(--glow);
}
.dl-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.dl-card__mesh {
  position: absolute;
  inset: -40%;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 30%, rgb(202 184 252 / 0.45), transparent 42%),
    radial-gradient(circle at 80% 70%, rgb(249 202 160 / 0.28), transparent 45%),
    linear-gradient(135deg, color-mix(in oklab, var(--raise) 92%, var(--primary)), var(--raise));
  animation: dl-mesh 10s ease-in-out infinite alternate;
}
.dl-card--win .dl-card__mesh {
  background:
    radial-gradient(circle at 75% 25%, rgb(249 202 160 / 0.38), transparent 42%),
    radial-gradient(circle at 20% 80%, rgb(202 184 252 / 0.3), transparent 45%),
    linear-gradient(145deg, color-mix(in oklab, var(--raise) 92%, var(--ember)), var(--raise));
  animation-duration: 12s;
  animation-direction: alternate-reverse;
}

.dl-card__shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgb(255 255 255 / 0.14) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: none;
}
.dl-card:hover .dl-card__shine {
  animation: dl-shine 0.9s var(--ease) forwards;
}

.dl-card__icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
  background: color-mix(in oklab, var(--base) 55%, transparent);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.dl-card--mac .dl-card__icon {
  color: var(--primary-lift);
}
.dl-card--win .dl-card__icon {
  color: var(--ember);
}
[data-theme='light'] .dl-card--mac .dl-card__icon {
  color: #6f52d4;
}

.dl-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.dl-card__os {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.dl-card__title {
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.dl-card__meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.dl-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 24px -8px var(--glow);
  transition: transform 0.35s var(--ease), background 0.2s ease;
}
.dl-card--win .dl-card__cta {
  background: color-mix(in oklab, var(--ember) 82%, #fff);
  color: var(--on-primary);
  box-shadow: 0 0 24px -8px rgb(249 202 160 / 0.45);
}
.dl-card:hover .dl-card__cta {
  transform: translateX(2px);
}
.dl-card--mac:hover .dl-card__cta {
  background: var(--primary-lift);
}

@keyframes dl-mesh {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-2deg) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) rotate(3deg) scale(1.08);
  }
}
@keyframes dl-shine {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-card__mesh,
  .dl-card:hover .dl-card__shine {
    animation: none !important;
  }
  .dl-card__shine {
    display: none;
  }
}

.install-help {
  margin: 2.5rem auto 0;
  max-width: 40rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.25rem 1.1rem;
  background: var(--raise);
}
.install-help summary {
  cursor: pointer;
  padding: 0.95rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  list-style: none;
}
.install-help summary::-webkit-details-marker {
  display: none;
}
.install-help summary::after {
  content: "+";
  float: right;
  color: var(--faint);
}
.install-help[open] summary::after {
  content: "−";
}
.install-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--line);
}
.install-cols h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--ember);
}
.install-cols ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.install-cols li + li {
  margin-top: 0.4rem;
}
.install-cols code {
  font-family: var(--font-mono);
  font-size: 0.75em;
  color: var(--primary-lift);
  word-break: break-all;
}
[data-theme='light'] .install-cols code {
  color: #7c5fd4;
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--faint);
  font-size: 0.9rem;
}
.brand-inline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.sep {
  margin: 0 0.35rem;
  opacity: 0.45;
}
.foot-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-lede,
  .hero-cta,
  .hero-meta,
  .hero-stage,
  .device-gate__card,
  .device-gate__glow {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* 1793034965 */
