:root {
  --bg: #fdf9f2;
  --bg-surface: #fffdf8;
  --ink: #1a1510;
  --ink-muted: #737373;
  --accent: #D4720A;
  --line: rgba(212, 114, 10, 0.22);
  --font-display: 'Dela Gothic One', system-ui, sans-serif;
  --font-body: 'Bricolage Grotesque', system-ui, sans-serif;
  --section-pad: 120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); overflow-x: hidden; }

.texture-osaka {
  background-color: var(--bg);
  background-image: radial-gradient(var(--ink-muted) 1px, transparent 1px);
  background-size: 8px 8px;
  background-position: 0 0;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.clip-diagonal-br {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding-bottom: calc(var(--section-pad) + 8vw);
}
.clip-diagonal-bl {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
  padding-bottom: calc(var(--section-pad) + 8vw);
}
.clip-parallelogram {
  clip-path: polygon(0 6vw, 100% 0, 100% calc(100% - 6vw), 0 100%);
  padding: calc(var(--section-pad) + 6vw) 0;
  margin-top: -6vw;
}
.clip-chamfer-br {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), calc(100% - 60px) 100%, 0 100%);
}
.clip-chamfer-all {
  clip-path: polygon(40px 0, calc(100% - 40px) 0, 100% 40px, 100% calc(100% - 40px), calc(100% - 40px) 100%, 40px 100%, 0 calc(100% - 40px), 0 40px);
}
.clip-wave-bottom { clip-path: ellipse(55% 100% at 50% 0%); }
.clip-arc-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
  padding-bottom: calc(var(--section-pad) + 10vw);
}
.clip-step-br {
  clip-path: polygon(0 0, 100% 0, 100% 60%, 75% 60%, 75% 80%, 50% 80%, 50% 100%, 0 100%);
}
.clip-cover-prev {
  position: relative;
  z-index: 2;
  clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
  margin-top: -48px;
}
.section-dissolve {
  position: relative;
  z-index: 2;
  margin-top: -120px;
  padding-top: calc(120px + var(--section-pad));
}
.section-dissolve::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: -1;
}
.section-rule {
  position: relative;
  padding-top: calc(var(--section-pad) + 32px);
}
.section-rule::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent) 25%, var(--accent) 75%, transparent);
  opacity: 0.5;
}
.clip-round-bottom {
  border-radius: 0 0 50% 50% / 0 0 5vw 5vw;
  overflow: hidden;
  padding-bottom: calc(var(--section-pad) + 6vw);
}
.clip-scallop {
  clip-path: polygon(0 0, 100% 0, 100% 82%, 92% 84%, 84% 88%, 75% 93%, 66% 97%, 58% 99%, 50% 100%, 42% 99%, 34% 97%, 25% 93%, 16% 88%, 8% 84%, 0 82%);
  padding-bottom: calc(var(--section-pad) + 12vw);
}

.side-nav {
  position: fixed;
  left: 20px;
  top: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  pointer-events: none;
}
.side-nav > * { pointer-events: auto; }

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-logo:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(212,114,10,0.35); }
.nav-logo-img { width: 32px; height: 32px; border-radius: 7px; display: block; }

.nav-rail {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
}

.nav-progress-track {
  width: 2px;
  height: 100px;
  background: var(--line);
  border-radius: 1px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-progress-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top center;
  border-radius: 1px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nav-link {
  writing-mode: vertical-lr;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.12s ease, opacity 0.12s ease;
  opacity: 0.55;
}
.nav-link:hover, .nav-link.active { color: var(--accent); opacity: 1; }

.mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 200;
}
.mobile-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  border-radius: 8px;
  transition: background 0.12s;
}
.menu-toggle:hover { background: rgba(26,21,16,0.06); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: var(--ink);
}
.nav-overlay .nav-item {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--bg);
  text-decoration: none;
  transition: color 0.12s;
}
.nav-overlay .nav-item:hover { color: var(--accent); }
.overlay-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--bg);
  cursor: pointer;
}

.section-hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ink-muted) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.065;
  pointer-events: none;
  z-index: 1;
}

.hero-decor {
  position: absolute;
  color: var(--ink-muted);
  opacity: 0.3;
  z-index: 2;
  pointer-events: none;
}
.hero-decor-1 { top: 17%; left: 11%; animation: hero-float 7s ease-in-out infinite; }
.hero-decor-2 { bottom: 24%; right: 9%; animation: hero-float 9s ease-in-out infinite reverse; }
.hero-decor-3 { top: 28%; right: 11%; animation: hero-float 8s ease-in-out infinite 1.5s; }
.hero-decor-4 {
  bottom: 20%; left: 18%;
  width: 90px; height: 2px;
  background: var(--ink-muted);
  opacity: 0.18;
  transform: rotate(-8deg);
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(7deg); }
}

.hero-card {
  position: relative;
  z-index: 10;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem);
  width: 90%;
  max-width: 660px;
  border-radius: 20px;
  transform: rotate(-1.5deg);
  box-shadow: 0 24px 64px -16px rgba(26, 21, 16, 0.1), 18px 18px 0 var(--accent);
  transform-style: preserve-3d;
}

.hero-badge {
  display: inline-block;
  position: absolute;
  top: 0; left: 0;
  transform: translate(-16%, -45%);
  background: var(--ink);
  color: var(--bg-surface);
  font-family: var(--font-display);
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--accent);
  letter-spacing: 0.03em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
  max-width: 88%;
}

.hero-cta-group {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.12s, color 0.12s;
}
.btn-primary:hover { background: var(--ink); color: var(--bg); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid rgba(26, 21, 16, 0.18);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn-secondary:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.section-features {
  background: #f2efe9;
  position: relative;
  z-index: 2;
}

.features-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

.features-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(175px, auto);
  gap: 14px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  color: var(--ink);
  text-decoration: none;
}
a.bento-card, a.bento-card h3, a.bento-card p, a.bento-card * { text-decoration: none !important; }
.bento-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.bento-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  margin-bottom: 0.6rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  display: inline;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='8' preserveAspectRatio='none'%3E%3Cpath d='M0 5.5 C30 3 60 7 90 4.5 C120 2 150 6.5 200 4' stroke='%23D4720A' stroke-width='3' fill='none' stroke-linecap='round' opacity='0.45'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 200px 8px;
  background-position: 0 100%;
  padding-bottom: 4px;
}
.bento-card p {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: var(--ink-muted);
  line-height: 1.55;
}

.bento-focal {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--accent);
  border-color: var(--accent);
  justify-content: space-between;
}
.bento-focal:hover { border-color: var(--accent); }
.bento-focal h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  margin-bottom: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='8' preserveAspectRatio='none'%3E%3Cpath d='M0 5.5 C30 3 60 7 90 4.5 C120 2 150 6.5 200 4' stroke='%23ffffff' stroke-width='3.5' fill='none' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E");
}
.bento-focal p { color: rgba(255,255,255,0.8); font-size: clamp(0.95rem, 1.4vw, 1.1rem); max-width: 82%; margin-top: 1.75rem; }
.bento-focal-body { flex: 1; }

.bento-illustration {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 190px;
  height: 150px;
  pointer-events: none;
  opacity: 0.55;
}

.bento-tall { grid-column: span 1; grid-row: span 2; }

.bento-icon {
  width: 32px; height: 32px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.bento-stat { grid-column: span 1; grid-row: span 1; }

.bento-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.bento-instruments .bento-stat-number { color: var(--ink); }

.bento-wide {
  grid-column: span 2;
  grid-row: span 1;
  flex-direction: row;
  align-items: center;
  gap: 1.75rem;
}
.bento-icon-wide {
  width: 40px; height: 40px;
  flex-shrink: 0;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.bento-wide h3 { margin-bottom: 0.4rem; }

@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { flex-direction: column; align-items: flex-start; gap: 0; }
  .bento-icon-wide { margin-bottom: 1.25rem; }
}
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-focal, .bento-tall, .bento-wide, .bento-stat { grid-column: span 1; grid-row: auto; }
}

.section-faq {
  background: var(--bg);
  padding: 7rem 5vw 6rem;
  position: relative;
  z-index: 3;
}
.faq-wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 4fr 6fr; gap: 8vw; } }

.faq-big-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: sticky;
  top: 6rem;
}

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid color-mix(in srgb, var(--ink) 11%, transparent); }
.faq-item:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 11%, transparent); }

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 2.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  gap: 2rem;
}
.faq-trigger:hover .faq-question { transform: translateX(8px); color: var(--accent); }

.faq-question {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 500;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), color 0.2s ease;
}
.faq-item[data-open="true"] .faq-question { color: var(--accent); }

.faq-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--ink); }
.faq-icon line { stroke: currentColor; stroke-width: 1.5; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease; transform-origin: center; }
.faq-item[data-open="true"] .faq-icon .v-line { transform: rotate(90deg); opacity: 0; }
.faq-item[data-open="true"] .faq-icon .h-line { transform: rotate(180deg); }

.faq-content-grid {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16,1,0.3,1);
}
.faq-item[data-open="true"] .faq-content-grid { grid-template-rows: 1fr; }
.faq-content-inner { overflow: hidden; }
.faq-answer {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--ink-muted);
  line-height: 1.7;
  padding-bottom: 2.25rem;
  margin: 0;
  max-width: 82%;
}

.section-jianpu {
  background: var(--bg);
  padding: var(--section-pad) 5vw;
}
.jianpu-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.jianpu-header {
  margin-bottom: 3rem;
  max-width: 600px;
}
.jianpu-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--ink);
}
.jianpu-header p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-muted);
  line-height: 1.65;
}
.jianpu-rules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.jianpu-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.jianpu-rule:last-child { border-bottom: none; }
.jianpu-rule span {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.rule-token {
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(212,114,10,0.08);
  border: 1px solid rgba(212,114,10,0.18);
  border-radius: 7px;
  padding: 0.3rem 0.65rem;
  white-space: nowrap;
  min-width: 3.5rem;
  text-align: center;
  flex-shrink: 0;
}
.jianpu-example {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.jianpu-example-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.jianpu-example-code {
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--ink);
  letter-spacing: 0.1em;
  word-break: break-all;
}

.section-privacy {
  background: #1e1812;
  color: #f2ede4;
  padding: calc(var(--section-pad) * 1.2) 5vw calc(var(--section-pad) * 1.4);
  position: relative;
}
.section-privacy::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(212,114,10,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.privacy-wrap {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.privacy-header {
  max-width: 540px;
  margin-bottom: 3.5rem;
}
.privacy-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #f2ede4;
}
.privacy-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(242,237,228,0.65);
  line-height: 1.6;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.privacy-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.25s;
}
.privacy-card:hover { background: rgba(255,255,255,0.07); }
.privacy-icon {
  color: var(--accent);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,114,10,0.12);
  border-radius: 10px;
  margin-bottom: 0.25rem;
}
.privacy-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: #f2ede4;
  line-height: 1.3;
}
.privacy-card p {
  font-size: 0.875rem;
  color: rgba(242,237,228,0.6);
  line-height: 1.65;
  flex: 1;
}

.section-cta {
  background: #111108;
  color: #f2ede4;
  position: relative;
  padding: calc(var(--section-pad) + 32px) 5vw calc(var(--section-pad) * 1.5);
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent) 25%, var(--accent) 75%, transparent);
  opacity: 0.5;
}

.cta-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
}

.cta-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f2ede4;
  margin-bottom: 1.5rem;
}

.cta-sub {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: rgba(242, 237, 228, 0.6);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.btn-cta-primary:hover { background: #f2ede4; color: #111108; }

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 1.75rem;
  border-radius: 10px;
  background: transparent;
  color: rgba(242, 237, 228, 0.65);
  text-decoration: none;
  border: 1.5px solid rgba(242, 237, 228, 0.22);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn-cta-secondary:hover { background: rgba(242,237,228,0.08); color: #f2ede4; border-color: rgba(242,237,228,0.45); }

.cta-footnote { font-size: 0.78rem; color: rgba(242, 237, 228, 0.3); }

.cta-visual { display: flex; align-items: center; justify-content: center; }

.keys-display { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }

.key-row { display: flex; gap: 8px; }

.key {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(242, 237, 228, 0.05);
  border: 1.5px solid rgba(242, 237, 228, 0.1);
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(242, 237, 228, 0.35);
  transition: all 0.15s ease;
}
.key.key-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px rgba(212, 114, 10, 0.5);
}

.key-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .privacy-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cta-wrap { grid-template-columns: 1fr; }
  .cta-visual { display: none; }
}

@media (max-width: 768px) {
  .side-nav { display: none; }
  .mobile-bar { display: flex; }
  .section-hero { padding-top: 56px; }
  .privacy-grid { grid-template-columns: 1fr; }
}

.lang-switcher {
  display: flex;
  gap: 3px;
}
.lang-btn {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.5rem;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid rgba(26,21,16,0.14);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  line-height: 1;
}
.lang-btn:hover { background: rgba(26,21,16,0.06); color: var(--ink); }
.lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.section-cta .lang-btn { color: rgba(242,237,228,0.55); border-color: rgba(242,237,228,0.18); }
.section-cta .lang-btn:hover { background: rgba(242,237,228,0.1); color: #f2ede4; }
.section-cta .lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.mobile-bar-right { display: flex; align-items: center; gap: 10px; }
.mobile-logo-wrap { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.mobile-logo-wrap .mobile-brand { font-family: var(--font-display); font-size: 1rem; }

html[lang="zh"] {
  --font-display: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
html[lang="zh"] .hero-title { font-size: clamp(2rem, 4.5vw, 4rem); }
html[lang="zh"] .faq-big-title { font-size: clamp(3.5rem, 9vw, 8rem); }

html[lang="ja"] {
  --font-display: 'Dela Gothic One', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-body: 'Bricolage Grotesque', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}
html[lang="ja"] .hero-title { font-size: clamp(1.6rem, 3.2vw, 3rem); letter-spacing: 0.01em; }
html[lang="ja"] .cta-title { font-size: clamp(2rem, 4.5vw, 4.5rem); }
html[lang="ja"] .faq-big-title { font-size: clamp(2.5rem, 7vw, 6.5rem); }
