:root {
  --bg: #111116;
  --bg-alt: #1a140d;
  --surface: rgba(28, 28, 36, 0.82);
  --surface-strong: rgba(22, 22, 30, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --border: rgba(232, 196, 122, 0.16);
  --text: #f0ead8;
  --text-soft: #b6ad99;
  --muted: #7f786b;
  --accent: #e8c47a;
  --accent-2: #78d7ff;
  --accent-3: #8fd0a7;
  --accent-on: #1a1206;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

body[data-theme="ocean"] {
  --bg: #0a1622;
  --bg-alt: #12314a;
  --surface: rgba(16, 34, 48, 0.82);
  --surface-strong: rgba(12, 27, 38, 0.96);
  --border: rgba(120, 215, 255, 0.16);
  --text: #eaf8ff;
  --text-soft: #a1bdd0;
  --muted: #688296;
  --accent: #78d7ff;
  --accent-2: #8fd0a7;
  --accent-3: #e8c47a;
  --accent-on: #071922;
}

body[data-theme="forest"] {
  --bg: #0f1714;
  --bg-alt: #1b2e24;
  --surface: rgba(24, 35, 30, 0.84);
  --surface-strong: rgba(17, 28, 23, 0.96);
  --border: rgba(143, 208, 167, 0.16);
  --text: #e9f3ec;
  --text-soft: #a2b7aa;
  --muted: #6d8276;
  --accent: #8fd0a7;
  --accent-2: #e8c47a;
  --accent-3: #78d7ff;
  --accent-on: #0a120d;
}

body[data-theme="paper"] {
  --bg: #f7f1e6;
  --bg-alt: #efe1c7;
  --surface: rgba(255, 251, 243, 0.92);
  --surface-strong: rgba(255, 252, 248, 0.98);
  --surface-soft: rgba(156, 106, 16, 0.06);
  --border: rgba(156, 106, 16, 0.15);
  --text: #1e1810;
  --text-soft: #5f5648;
  --muted: #8b7e6a;
  --accent: #9c6a10;
  --accent-2: #52cbdd;
  --accent-3: #f4a7b9;
  --accent-on: #fff8ec;
  --shadow: 0 18px 60px rgba(62, 45, 18, 0.12);
}

body[data-theme="sakura"] {
  --bg: #fff5f7;
  --bg-alt: #ffd7df;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(255, 250, 252, 0.98);
  --surface-soft: rgba(244, 167, 185, 0.1);
  --border: rgba(232, 122, 144, 0.16);
  --text: #4a3135;
  --text-soft: #8b6b70;
  --muted: #c0a2a7;
  --accent: #f4a7b9;
  --accent-2: #e87a90;
  --accent-3: #9c6a10;
  --accent-on: #ffffff;
  --shadow: 0 18px 60px rgba(141, 84, 96, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 8%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 24%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 26%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 35%, var(--bg) 100%);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.65;
  transition: background 300ms ease, color 300ms ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
  position: relative;
}

.section {
  padding: 32px 0 44px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.topnav a[aria-current="page"],
.topnav a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, white));
  color: var(--accent-on);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 24%, transparent);
}

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

.button-secondary,
.button-ghost {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding-top: 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.legal-hero h1 {
  margin: 18px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3.8rem, 7vw, 6.7rem);
}

.lead,
.section-heading p,
.legal-hero p {
  margin: 0;
  max-width: 640px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-stats li,
.feature-card,
.intro-card,
.shot-card,
.theme-preview-card,
.trust-card,
.legal-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-stats li {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
}

.hero-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.hero-stats span {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.hero-stage {
  position: relative;
  min-height: 700px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.9;
}

.orb-a {
  width: 240px;
  height: 240px;
  top: 6%;
  right: 8%;
  background: color-mix(in srgb, var(--accent) 58%, transparent);
  animation: floatA 7s ease-in-out infinite;
}

.orb-b {
  width: 180px;
  height: 180px;
  left: 4%;
  bottom: 10%;
  background: color-mix(in srgb, var(--accent-2) 54%, transparent);
  animation: floatB 8s ease-in-out infinite;
}

.device-card {
  position: relative;
  z-index: 2;
  width: min(560px, 94%);
  padding: 18px;
  border-radius: 36px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-strong) 98%, transparent));
  box-shadow: var(--shadow);
}

.tilt-card {
  transform: perspective(1200px) rotateY(-12deg) rotateX(8deg);
}

.floating-note {
  position: absolute;
  z-index: 3;
  width: 220px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  box-shadow: var(--shadow);
}

.note-left {
  left: 2%;
  top: 16%;
}

.note-right {
  right: 0;
  bottom: 15%;
}

.note-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.floating-note strong {
  display: block;
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.floating-note p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.intro-band {
  padding-top: 0;
}

.intro-card {
  padding: 18px 22px;
  border-radius: 999px;
}

.intro-copy {
  margin: 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 1rem;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
}

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

.feature-card {
  padding: 24px;
  border-radius: 26px;
}

.feature-card h3,
.shot-copy h3,
.theme-preview-copy h3 {
  margin: 16px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.feature-card p,
.shot-copy p,
.theme-preview-copy p {
  margin: 0;
  color: var(--text-soft);
}

.icon-chip {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

.icon-chip svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shot-card {
  overflow: hidden;
  border-radius: 28px;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  background: color-mix(in srgb, var(--surface-soft) 90%, transparent);
}

.shot-copy {
  padding: 18px 20px 22px;
}

.themes-section {
  overflow: hidden;
}

.themes-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
  align-items: stretch;
}

.theme-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.theme-chip {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-chip.is-active {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, white));
  color: var(--accent-on);
}

.theme-preview-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 30px;
}

.theme-preview-surface {
  min-height: 320px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 32%),
    radial-gradient(circle at 80% 16%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 30%),
    linear-gradient(135deg, var(--bg-alt), var(--bg));
  display: grid;
  place-items: center;
}

.mini-window {
  width: min(420px, 86%);
  padding: 18px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  box-shadow: var(--shadow);
}

.mini-header {
  display: flex;
  gap: 8px;
}

.mini-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 28%, transparent);
}

.mini-ring {
  width: 170px;
  height: 170px;
  margin: 26px auto;
  border-radius: 999px;
  border: 12px solid color-mix(in srgb, var(--text) 8%, transparent);
  border-top-color: var(--accent);
  border-right-color: color-mix(in srgb, var(--accent-2) 72%, transparent);
  box-shadow: inset 0 0 0 14px color-mix(in srgb, var(--surface) 50%, transparent);
}

.mini-lines {
  display: grid;
  gap: 10px;
}

.mini-lines span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

.mini-lines span:nth-child(1) {
  width: 62%;
}

.mini-lines span:nth-child(2) {
  width: 88%;
}

.mini-lines span:nth-child(3) {
  width: 54%;
}

.trust-layout {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 18px;
  align-items: start;
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.trust-card {
  padding: 22px;
  border-radius: 28px;
}

.trust-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.trust-points li {
  display: grid;
  gap: 8px;
}

.trust-points strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.trust-points span {
  color: var(--text-soft);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 42px;
  color: var(--text-soft);
}

.footer-brand p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-content: center;
  justify-content: flex-end;
}

.legal-body {
  min-height: 100vh;
}

.legal-shell {
  max-width: 980px;
}

.legal-page {
  padding-top: 40px;
}

.legal-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.legal-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-card {
  padding: 30px;
  border-radius: 30px;
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.15;
}

.legal-card p,
.legal-card li {
  color: var(--text-soft);
}

.legal-card ul {
  padding-left: 22px;
}

.legal-card a {
  color: var(--accent);
}

.legal-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(18px); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -20px); }
}

@media (max-width: 1080px) {
  .hero,
  .themes-layout,
  .trust-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 620px;
  }

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

@media (max-width: 760px) {
  .site-shell {
    width: min(var(--container), calc(100% - 18px));
  }

  .topbar {
    top: 8px;
    border-radius: 26px;
    padding: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .topnav {
    order: 3;
    gap: 14px;
    width: 100%;
  }

  .topbar-cta {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

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

  .hero-stage {
    min-height: 520px;
  }

  .tilt-card {
    transform: none;
  }

  .floating-note {
    width: 180px;
    padding: 14px;
    font-size: 0.9rem;
  }

  .note-left {
    left: 0;
    top: 6%;
  }

  .note-right {
    right: 0;
    bottom: 4%;
  }

  .footer {
    flex-direction: column;
    padding-bottom: 28px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-card {
    padding: 22px 18px;
  }
}
