/* AkiProtect site v2 — Cyber Night layout (extends style.css tokens) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 14, 20, 0.85);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.nav a.nav-plat { font-weight: 600; }

/* Hero split */
.hero-v2 {
  padding: calc(var(--section-y) - 20px) 0 var(--section-y);
  position: relative;
  overflow: hidden;
}
.hero-v2::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(95,168,255,.16), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-v2 h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero-v2 .sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 40em;
  line-height: 1.55;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  max-width: 40em;
}
.hero-bullets li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.45;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.win-gui {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  max-width: 920px;
  height: auto;
  margin: 28px auto 0;
  border-radius: 12px;
  overflow: hidden;
  background: #101826;
  border: 1px solid #1c2636;
}
.win-gui-nav {
  background: #0e1522;
  padding: 8px 0 24px;
  border-right: 1px solid #1c2636;
}
.win-gui-nav p {
  margin: 16px 16px 4px;
  font-size: 11px;
  letter-spacing: .08em;
  color: #6d7a90;
}
.win-gui-nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #c5d0e0;
  padding: 9px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}
.win-gui-nav button:hover {
  background: rgba(95,168,255,.16);
  color: #fff;
}
.win-gui-nav button.is-on {
  background: rgba(95,168,255,.22);
  color: #fff;
  box-shadow: inset 3px 0 0 #5fa8ff;
}
.win-gui-pane {
  overflow: visible;
  background: #101826;
  min-height: 0;
}
.win-gui-pane img {
  width: 100%;
  height: auto;
  margin: 0;
  max-width: 100%;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 800px) {
  .win-gui { grid-template-columns: 1fr; height: auto; }
  .win-gui-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .win-gui-nav p { width: 100%; margin: 8px 4px 0; }
  .win-gui-nav button { width: auto; border-radius: 8px; }
}
.hero-visual {
  position: relative;
}
.hero-visual img,
.hero-visual svg {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}
.hero-visual .glow-ring {
  position: absolute;
  inset: -12%;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(124,92,255,.18), transparent 60%);
  z-index: -1;
}
.aki-watch {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  min-height: 420px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.aki-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: transparent;
}
.aki-figure {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
}
.aki-stage .aki-part {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}
.aki-base { pointer-events: auto; }
.aki-ear-l { clip-path: polygon(18% 2%, 46% 0%, 50% 38%, 20% 42%); transform-origin: 46% 40%; }
.aki-ear-r { clip-path: polygon(52% 0%, 84% 4%, 80% 42%, 50% 36%); transform-origin: 56% 40%; }
.aki-whisk { clip-path: polygon(16% 50%, 78% 46%, 80% 72%, 14% 70%); transform-origin: 48% 60%; }
.aki-paw { clip-path: polygon(70% 34%, 100% 30%, 100% 100%, 64% 100%, 62% 58%); transform-origin: 70% 92%; }
.aki-watch.is-hit .aki-ear-l,
.aki-watch.is-touch .aki-ear-l { animation: aki-ear-l .55s ease; }
.aki-watch.is-hit .aki-ear-r,
.aki-watch.is-touch .aki-ear-r { animation: aki-ear-r .55s ease; }
.aki-watch.is-hit .aki-whisk,
.aki-watch.is-touch .aki-whisk { animation: aki-whisk .5s ease; }
.aki-watch.is-hit .aki-paw,
.aki-watch.is-touch .aki-paw { animation: aki-paw .6s ease; }
@keyframes aki-ear-l {
  0%, 100% { transform: rotate(0); }
  35% { transform: rotate(-8deg); }
  70% { transform: rotate(5deg); }
}
@keyframes aki-ear-r {
  0%, 100% { transform: rotate(0); }
  35% { transform: rotate(9deg); }
  70% { transform: rotate(-4deg); }
}
@keyframes aki-whisk {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  65% { transform: translateX(4px); }
}
@keyframes aki-paw {
  0%, 100% { transform: rotate(0); }
  40% { transform: rotate(-14deg); }
  72% { transform: rotate(7deg); }
}
.aki-watch.is-hit .aki-stage img { filter: saturate(1.25) contrast(1.08); }
.aki-eye {
  position: absolute;
  left: 62%;
  top: 44%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: radial-gradient(circle, #eaf7ff 0 28%, #3ec5ff 45%, transparent 70%);
  box-shadow: 0 0 18px #3ec5ff, 0 0 42px rgba(124,92,255,.8);
  transform: translate(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 7px));
  pointer-events: none;
  mix-blend-mode: screen;
}
.aki-slice {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  height: 16%;
  background: linear-gradient(transparent, rgba(80,220,255,.45), transparent);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.aki-watch.is-hit .aki-slice { animation: aki-slice .45s ease; }
@keyframes aki-slice {
  0% { opacity: 0; transform: translateY(-30px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(80px); }
}
.aki-console {
  position: relative;
  overflow: hidden;
  padding: 16px 0 14px 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #d5e2f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
}
.aki-console-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #8eb6ff;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}
.aki-live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: aki-pulse 1.8s ease-in-out infinite;
}
.aki-meter {
  height: 3px;
  margin: 4px 0 12px;
  background: rgba(95,168,255,.15);
  border-radius: 99px;
  overflow: hidden;
}
.aki-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5fa8ff, #7c5cff);
  transition: width .25s ease;
}
.aki-feed-window { height: 220px; overflow: hidden; }
.aki-line {
  display: grid;
  grid-template-columns: 4.6em minmax(0, 1fr) auto;
  gap: 8px;
  opacity: .45;
}
.aki-line.on { opacity: 1; background: transparent; }
.aki-tag, .aki-caret { color: #8eb6ff; }
.aki-st.ok { color: #4ade80; }
.heat {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  overflow-x: auto;
}
.heat-col { display: flex; flex-direction: column; gap: 4px; }
.heat-day {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #1a2233;
}
.heat-day.lv1 { background: rgba(95,168,255,.35); }
.heat-day.lv2 { background: #3d7fd4; }
.heat-day.lv3 { background: #5fa8ff; }
.heat-day.lv4 { background: #7c5cff; }
.heat-key { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.heat-key .heat-day { display: inline-block; }
.aki-caret { animation: aki-blink .8s steps(1) infinite; }
.aki-beam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.aki-beam line {
  stroke: rgba(62,197,255,.75);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 4px #3ec5ff);
}
@keyframes aki-blink { 50% { opacity: 0; } }
@keyframes aki-pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@media (max-width: 720px) {
  .aki-watch { grid-template-columns: 1fr; min-height: 0; }
  .aki-stage { min-height: 240px; }
  .aki-figure { width: min(100%, 360px); }
  .aki-feed-window { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .aki-stage img, .aki-ear-l, .aki-ear-r, .aki-whisk, .aki-paw, .aki-eye, .aki-live::before, .aki-caret { animation: none; transition: none; }
  .aki-beam { display: none; }
}

/* Platform switcher */
.plat-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plat-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  height: 100%;
}
.plat-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  text-decoration: none;
}
.plat-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--border-soft);
}
.plat-card h3 { margin: 8px 0 8px; color: var(--text); }
.plat-card p { margin: 0; color: var(--muted); font-size: 14px; }
.plat-card .plat-cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.plat-card.is-soon {
  opacity: .9;
  border-style: dashed;
}
.plat-card.is-soon:hover { border-color: var(--warning); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Landing sections */
.landing-hero {
  padding: 64px 0 40px;
}
.landing-hero .eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.feature-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}
.snippet {
  background: #0b0e14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: #c6d4e8;
}
.snippet .c { color: var(--muted); }
.shot-frame {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
.shot-frame img { width: 100%; display: block; height: auto; }
.shot-stack { display: flex; flex-direction: column; gap: 28px; }
.shot-stack .card { padding: 12px; }
.shot-stack img { width: 100%; height: auto; }
button.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
}
.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 14, 0.88);
}
.shot-lightbox[hidden] { display: none; }
.shot-lightbox img {
  max-width: min(1200px, calc(100vw - 140px));
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.shot-lightbox .shot-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  text-align: center;
  color: #e8eef6;
  font-size: 14px;
}
.shot-nav, .shot-close {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.shot-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 72px;
  font-size: 36px;
  line-height: 1;
  border-radius: 10px;
}
.shot-prev { left: 16px; }
.shot-next { right: 16px; }
.shot-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.showcase-frame { cursor: zoom-in; }

.arch-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.arch-dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 180px;
  padding: 22px 22px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(95,168,255,.16), transparent 55%),
    var(--bg-card);
  color: var(--text);
  text-decoration: none;
}
.arch-dl-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.arch-dl-kicker {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.arch-dl-name {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.arch-dl-host { color: var(--muted); font-size: 15px; }
.arch-dl-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #061018;
  font-weight: 700;
}
.arch-dl-file {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}
@media (max-width: 700px) {
  .arch-dl { grid-template-columns: 1fr; }
  .arch-dl-name { font-size: 32px; }
}

.cta-band {
  margin: 48px 0;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(95,168,255,.15), transparent 50%),
    var(--bg-card);
  text-align: center;
}
.cta-band h2 { margin: 0 0 10px; }
.cta-band p { color: var(--muted); margin: 0 0 22px; }

@media (max-width: 900px) {
  .hero-grid, .plat-switch, .steps, .split { grid-template-columns: 1fr; }
  .hero-v2 { padding-top: 40px; }
  .nav { display: none; } /* keep mobile simple; CTA remains */
}

a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.card-link:hover { text-decoration: none; }
a.card-link .plat-cta { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.compare-table thead th { color: var(--muted); font-weight: 600; }
