/* Kenosis AI — dark futuristic landing */
:root {
  --bg: #0a0e14;
  --bg-soft: #10151f;
  --card: #141a26;
  --card-border: rgba(120, 150, 255, 0.14);
  --text: #e6ebf4;
  --text-dim: #8b94a8;
  --accent-1: #4f8cff;
  --accent-2: #a26bff;
  --grad: linear-gradient(100deg, var(--accent-1), var(--accent-2));
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); text-align: center; margin-bottom: .6em; }
h3 { font-size: 1.15rem; }

.grad {
  /* fallback color keeps text readable if a dark-mode plugin strips the gradient */
  color: var(--accent-1);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

a { color: var(--accent-1); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem clamp(1rem, 5vw, 3rem);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--accent-1); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 1.4rem; }
.nav-links a { color: var(--text-dim); font-size: .92rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 600px) { .nav-links a:not(:nth-child(-n+2)) { display: none; } }

/* Hero — glow painted directly on the section (no separate layer, no banding) */
.hero {
  position: relative;
  padding: clamp(3rem, 9vw, 7rem) clamp(1rem, 5vw, 3rem) 4rem;
  overflow: hidden;
  background:
    radial-gradient(45% 55% at 30% 35%, rgba(79,140,255,.20), transparent 70%),
    radial-gradient(40% 50% at 70% 25%, rgba(162,107,255,.16), transparent 70%),
    var(--bg);
}
.hero-inner {
  position: relative; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phone { max-width: 320px; margin: 0 auto; }
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  color: var(--accent-1); font-weight: 600; margin-bottom: 1rem;
}
.lead { color: var(--text-dim); font-size: 1.12rem; margin: 1.2rem 0 2rem; max-width: 34rem; }
.hero-note { color: var(--text-dim); font-size: .85rem; margin-top: 1.2rem; }

.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn {
  padding: .75rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-icon, .footer-icon {
  width: 1.15em; height: 1.15em;
  vertical-align: -0.18em; margin-right: .5em;
}
.footer-icon { width: 1.3em; height: 1.3em; margin-right: .35em; vertical-align: -0.25em; }
.footer-social a { display: inline-flex; align-items: center; gap: .3em; }
.footer-social a > svg { margin-right: 0; vertical-align: initial; }
.btn-icon path { fill-rule: evenodd; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(90,120,255,.35); }
.btn.ghost { border-color: var(--card-border); color: var(--text); background: var(--card); }
.btn.ghost:hover { border-color: var(--accent-1); }

/* Phone frame */
.phone {
  border-radius: 2.6rem; padding: 10px;
  background: linear-gradient(160deg, #1c2331, #0d1119);
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(79,140,255,.12);
}
.phone img { border-radius: 2rem; }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 5vw, 3rem); }
.section-sub { text-align: center; color: var(--text-dim); margin: -0.4em 0 2rem; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover {
  border-color: rgba(79,140,255,.45);
  box-shadow: 0 12px 40px rgba(79,140,255,.12);
  transform: translateY(-3px);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step-num {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; margin-bottom: .9rem;
  background: var(--grad); color: #fff;
}

/* Feature cards — screenshots */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-media {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  margin-bottom: 1rem;
}
.feature-media img {
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--card-border);
  width: 100%;
  aspect-ratio: 9/18;
  object-fit: cover;
  object-position: top;
  cursor: zoom-in;
}

/* Live demos — animated PNGs, all in one row */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.demo img {
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  width: 100%;
  aspect-ratio: 9/18;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .25s, box-shadow .25s;
}
.demo:hover img { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(79,140,255,.18); }
.demo figcaption { color: var(--text-dim); font-size: .85rem; text-align: center; margin-top: .6rem; }

/* Privacy */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 800px) { .badges { grid-template-columns: 1fr; } }
.badge strong { display: block; margin-bottom: .3rem; color: var(--accent-1); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.1rem; }
.badge span { color: var(--text-dim); font-size: .92rem; }

/* Footer */
.footer { border-top: 1px solid var(--card-border); padding: 2rem 1rem; margin-top: 2rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  color: var(--text-dim); font-size: .85rem;
}
.footer-inner p { max-width: 46rem; }
.footer-links { display: grid; gap: .3rem; }
.bug-reveal { margin-top: .6rem; font-size: .85rem; color: var(--text-dim); }
.bug-reveal input { background: var(--card); border: 1px solid var(--card-border); border-radius: 6px; color: var(--text); padding: .2rem .5rem; margin-left: .4rem; }
.bug-error { color: #ff6b81; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 6, 10, .92);
  display: grid; place-items: center; padding: 2rem;
  backdrop-filter: blur(6px);
}
.lightbox img { max-height: 90vh; max-width: 90vw; border-radius: 1rem; box-shadow: 0 30px 100px rgba(0,0,0,.8); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.4rem;
  background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer;
}

/* Reveal on scroll — only hides elements when JS is running (html.js) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Feature grid text */
.feature-icon { font-size: 1.6rem; margin-bottom: .7rem; }
.feature p { color: var(--text-dim); font-size: .92rem; }

/* Permissions table */
.perm-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.perm-table th, .perm-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--card-border); }
.perm-table th { color: var(--text-dim); text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; }
.perm-table .denied { color: #ff6b81; font-weight: 600; }
.perm-table-wrap { overflow-x: auto; border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--card); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1rem 1.4rem; margin-bottom: .8rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--text-dim); margin-top: .6rem; font-size: .95rem; }
.faq-wrap { max-width: 760px; margin: 0 auto; }

/* CTA band */
.cta-band { text-align: center; padding-bottom: 5rem; }
.cta-band h2 { margin-bottom: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}