:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-soft: #11121a;
  --panel: rgba(15, 16, 25, 0.74);
  --panel-strong: rgba(22, 23, 34, 0.92);
  --text: #f7f2ff;
  --muted: #b9b0c6;
  --dim: #867f91;
  --line: rgba(255, 255, 255, 0.12);
  --magenta: #c74cff;
  --pink: #ff78d1;
  --aqua: #6de8ff;
  --green: #82ffbc;
  --shadow: rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 0%, rgba(199, 76, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 22%, rgba(255, 120, 209, 0.13), transparent 31rem),
    linear-gradient(180deg, #0b0c13 0%, var(--bg) 48%, #05060a 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 70%);
}

a {
  color: inherit;
}

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

.site-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 13, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 10px 24px var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(860px, calc(100vh - 72px));
  padding: 82px 0 58px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(7, 8, 13, 0.25), rgba(7, 8, 13, 0.25)),
    linear-gradient(90deg, rgba(7, 8, 13, 0.94) 0%, rgba(7, 8, 13, 0.72) 42%, rgba(7, 8, 13, 0.24) 100%),
    linear-gradient(180deg, rgba(7, 8, 13, 0.24) 0%, rgba(7, 8, 13, 0.94) 100%),
    url("assets/kana-book-header.jpg") center / cover no-repeat;
  opacity: 0.94;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #efe6ff;
  font-size: clamp(1.12rem, 2.5vw, 1.42rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.button.primary {
  border-color: rgba(199, 76, 255, 0.72);
  background: linear-gradient(135deg, var(--magenta), var(--pink));
  color: #16091f;
}

.button:hover {
  transform: translateY(-1px);
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
  max-width: 680px;
}

.note {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 8, 13, 0.62);
}

.note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.4rem;
}

.note span {
  color: var(--muted);
  font-size: 0.92rem;
}

.phone-stack {
  position: relative;
  min-height: 610px;
}

.phone {
  position: absolute;
  width: min(312px, 70vw);
  aspect-ratio: 1179 / 2556;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: #090a0f;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone.primary-shot {
  right: 8%;
  top: 0;
  z-index: 2;
}

.phone.secondary-shot {
  right: 42%;
  top: 92px;
  z-index: 1;
  transform: scale(0.88) rotate(-4deg);
  opacity: 0.82;
}

.section {
  padding: 76px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-header h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-header p {
  max-width: 460px;
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
}

.feature-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 1px solid rgba(199, 76, 255, 0.35);
  border-radius: 8px;
  background: rgba(199, 76, 255, 0.12);
  color: var(--magenta);
  font-size: 1.7rem;
  font-weight: 900;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.feature p {
  color: var(--muted);
  line-height: 1.55;
}

.screens {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-color: rgba(199, 76, 255, 0.9) rgba(255, 255, 255, 0.06);
}

.screen {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #05060a;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.screen img {
  width: 100%;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
}

.privacy-band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(199, 76, 255, 0.13), rgba(109, 232, 255, 0.06)),
    rgba(255, 255, 255, 0.03);
}

.privacy-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
}

.policy-list {
  display: grid;
  gap: 14px;
}

.policy-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 6, 10, 0.42);
}

.policy-item h3 {
  margin-bottom: 8px;
}

.policy-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-card {
  padding: 28px;
  border: 1px solid rgba(199, 76, 255, 0.34);
  border-radius: 8px;
  background: var(--panel-strong);
}

.support-card p {
  color: var(--muted);
  line-height: 1.6;
}

.support-card .email {
  display: inline-flex;
  margin-top: 8px;
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
}

.footer {
  padding: 30px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--dim);
  font-size: 0.92rem;
}

.footer .site-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.legal-page {
  padding: 62px 0 86px;
}

.legal-page article {
  max-width: 820px;
}

.legal-page h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.legal-page h2 {
  margin-top: 38px;
  font-size: 1.45rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.2rem;
}

.updated {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 42px;
  }

  .hero-grid,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    min-height: 520px;
  }

  .phone.primary-shot {
    right: 6%;
  }

  .phone.secondary-shot {
    right: auto;
    left: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    position: static;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  .hero-notes,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }

  .phone-stack {
    min-height: 410px;
  }

  .phone {
    width: min(246px, 62vw);
    border-radius: 26px;
  }

  .phone.primary-shot {
    right: 0;
  }

  .phone.secondary-shot {
    left: 0;
    top: 66px;
  }

  .section {
    padding: 54px 0;
  }

  .footer .site-shell {
    flex-direction: column;
  }
}
