:root {
  --bg-canvas: #f7f4ee;
  --bg-ivory-soft: #f1ece2;
  --bg-surface: #fcfbf8;
  --bg-surface-hover: #ffffff;
  --bg-ink: #1b2230;
  --bg-ink-soft: #263042;

  --border-subtle: rgba(27, 34, 48, 0.1);
  --border-strong: rgba(27, 34, 48, 0.18);
  --border-gold: rgba(196, 150, 69, 0.42);
  --border-cobalt: rgba(30, 79, 156, 0.28);

  --ink-primary: #1b2230;
  --ink-secondary: #3f4859;
  --ink-muted: #667085;

  --cobalt: #1e4f9c;
  --cobalt-hover: #173e7c;
  --cobalt-soft: rgba(30, 79, 156, 0.08);
  --gold: #b58432;
  --gold-bright: #c49645;
  --gold-soft: rgba(196, 150, 69, 0.12);
  --emerald: #1b6e58;
  --emerald-soft: rgba(27, 110, 88, 0.1);

  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Noto Serif", Georgia, serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 12px 34px rgba(27, 34, 48, 0.06);
  --shadow-card: 0 20px 46px rgba(27, 34, 48, 0.09);
  --max-w: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-primary);
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(ellipse 75% 45% at 50% -8%, rgba(196, 150, 69, 0.12), transparent 65%),
    radial-gradient(ellipse 55% 38% at 92% 12%, rgba(30, 79, 156, 0.06), transparent 60%);
  min-height: 100vh;
}

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

a {
  color: var(--cobalt);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--cobalt-hover);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-primary);
}

.brand-lockup:hover {
  color: var(--ink-primary);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-secondary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--ink-primary);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 8px 4px;
  color: var(--ink-secondary);
  font-size: 15px;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--cobalt);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(30, 79, 156, 0.22);
}

.btn-primary:hover {
  background: var(--cobalt-hover);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(30, 79, 156, 0.28);
}

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-gold);
  color: var(--ink-primary);
  box-shadow: 0 4px 12px rgba(27, 34, 48, 0.04);
}

.btn-secondary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-bright);
  color: var(--ink-primary);
}

.btn-appstore {
  background: var(--bg-ink);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(27, 34, 48, 0.14);
}

.btn-appstore:hover {
  background: var(--bg-ink-soft);
  color: #ffffff;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

/* Hero */
.hero {
  padding: 68px 0 56px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  color: #825b19;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cobalt);
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.1vw, 50px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.hero-subtitle-line {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-secondary);
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0 0 14px;
  font-size: 16.5px;
  color: var(--ink-secondary);
  max-width: 560px;
}

.hero-lead-en {
  margin: 0 0 26px;
  font-size: 13.8px;
  color: var(--ink-muted);
  max-width: 560px;
  border-left: 2px solid var(--gold-bright);
  padding-left: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.trust-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-metric strong {
  font-size: 14.5px;
  color: var(--ink-primary);
  font-weight: 700;
}

.trust-metric span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.hero-visual {
  position: relative;
}

.hero-art-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-art-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 8px);
}

.hero-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px 4px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.hero-caption-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--emerald);
}

/* Section Headers with Editorial Gold Rules */
.section {
  padding: 64px 0;
}

.section-heading-rule {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.section-heading-rule::before,
.section-heading-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.section-heading-rule h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-primary);
  text-align: center;
  white-space: nowrap;
}

.section-subcenter {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 38px;
  font-size: 15.5px;
  color: var(--ink-secondary);
}

.section-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.1vw, 36px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink-primary);
}

.section-lead {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 15.8px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card);
}

.product-card.is-featured {
  border-color: var(--border-gold);
}

.product-media {
  position: relative;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background: var(--bg-ivory-soft);
  margin-bottom: 18px;
}

.product-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.025);
}

.product-body {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.product-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cobalt);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(30, 79, 156, 0.2);
}

.product-icon.is-gold {
  background: linear-gradient(135deg, #27344d 0%, #1b2230 100%);
  color: #f4d38c;
  box-shadow: 0 6px 14px rgba(27, 34, 48, 0.18);
}

.product-title-group {
  min-width: 0;
}

.product-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink-primary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status-released {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.status-upcoming {
  background: var(--gold-soft);
  color: #825b19;
}

.product-desc {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.product-desc-en {
  margin: 0 0 16px;
  font-size: 12.8px;
  color: var(--ink-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--bg-ivory-soft);
  border: 1px solid var(--border-subtle);
  color: var(--ink-secondary);
}

.product-footer {
  margin: 4px 8px 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-domain-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cobalt);
}

.product-domain-link:hover {
  color: var(--cobalt-hover);
  text-decoration: underline;
}

.product-meta-note {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Editorial Philosophy Banner & Pillars */
.philosophy-banner {
  background: linear-gradient(180deg, var(--bg-ivory-soft) 0%, rgba(247, 244, 238, 0.7) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 26px 24px;
  text-align: center;
  margin-bottom: 44px;
}

.philosophy-motto {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.3vw, 26px);
  color: var(--ink-primary);
  letter-spacing: 0.01em;
}

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

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.pillar-num {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cobalt);
  margin-bottom: 10px;
}

.pillar-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-primary);
}

.pillar-card p {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.pillar-card .en-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Contact & Reviewer Trust Box */
.trust-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
  box-shadow: var(--shadow-soft);
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-item {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 18px;
}

.contact-item-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-item-val {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

/* Doc Pages (Privacy & Support) */
.doc-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.2;
  color: var(--ink-primary);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.doc-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 36px;
  padding: 48px 24px 80px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.doc-toc-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.doc-toc a {
  font-size: 13.8px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.doc-toc a:hover {
  color: var(--cobalt);
}

.doc-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}

.doc-content h2 {
  margin: 32px 0 12px;
  font-family: var(--font-serif);
  font-size: 23px;
  color: var(--ink-primary);
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content p,
.doc-content li {
  color: var(--ink-secondary);
  font-size: 15.2px;
}

.doc-content ul,
.doc-content ol {
  padding-left: 20px;
}

.doc-content li + li {
  margin-top: 8px;
}

.callout-box {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  color: var(--ink-primary);
  font-size: 14.5px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.faq-item {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--cobalt);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 32px;
  background: var(--bg-ivory-soft);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.footer-links a {
  color: var(--ink-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--cobalt);
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .products-grid,
  .pillars-grid,
  .trust-panel,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading-rule h2 {
    white-space: normal;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .doc-content,
  .trust-panel {
    padding: 22px;
  }
}
