/* =========================================================
   Design Tokens
   ========================================================= */
:root {
  /* Palette — deep night violet × sunset pink */
  --bg:          #0A0B1E;
  --bg-2:        #0F1029;
  --bg-soft:     #15163A;
  --surface:     rgba(255, 255, 255, 0.035);
  --surface-hi:  rgba(255, 255, 255, 0.055);
  --border:      rgba(155, 78, 174, 0.18);
  --border-hi:   rgba(192, 59, 126, 0.35);

  --fg:          #ECE9F4;
  --fg-muted:    #9C9DB8;
  --fg-dim:      #6A6C8A;

  --brand-1:     #7B2D8E;   /* deep violet */
  --brand-2:     #C03B7E;   /* sunset pink */
  --brand-3:     #9B4EAE;   /* mid violet  */
  --brand-4:     #1A1B4B;   /* navy ink    */

  /* Typography */
  --f-display:   "Instrument Serif", "Zen Kaku Gothic New", serif;
  --f-sans:      "Manrope", "Zen Kaku Gothic New", system-ui, sans-serif;
  --f-jp:        "Zen Kaku Gothic New", "Manrope", system-ui, sans-serif;
  --f-mono:      "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw:        1240px;
  --gutter:      clamp(20px, 4vw, 48px);
  --radius:      14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-jp);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Latin should lean on Manrope for tracking; JP on Zen Kaku */
:lang(en), .latin { font-family: var(--f-sans); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--brand-2); color: #fff; }

/* =========================================================
   i18n — language switching
   ========================================================= */
html[lang="ja"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="ja"] { display: none !important; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}
.lang-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 6px;
  color: var(--fg-dim);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color .25s ease;
  border-radius: 4px;
}
.lang-switch button:hover { color: var(--fg); }
.lang-switch button.active {
  color: var(--brand-2);
}
.lang-switch .sep {
  color: rgba(155, 78, 174, 0.35);
  user-select: none;
  padding: 0 2px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
}
@media (max-width: 720px) {
  .nav-group { gap: 0; }
}

/* =========================================================
   Background atmosphere — subtle grain + aurora glow
   ========================================================= */
.atmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.atmos::before,
.atmos::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.atmos::before {
  width: 55vmax; height: 55vmax;
  top: -20vmax; left: -15vmax;
  background: radial-gradient(circle at center, var(--brand-1) 0%, transparent 60%);
}
.atmos::after {
  width: 50vmax; height: 50vmax;
  bottom: -25vmax; right: -15vmax;
  background: radial-gradient(circle at center, var(--brand-2) 0%, transparent 60%);
  opacity: 0.35;
}
.atmos .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(155,78,174,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,78,174,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
          -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
}
.atmos .noise {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* =========================================================
   Shared
   ========================================================= */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-3);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-3));
}

.tagline-serif {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgba(10,11,30,0.85), rgba(10,11,30,0.55));
  border-bottom: 1px solid rgba(155,78,174,0.08);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand img { height: 34px; width: auto; }

.nav {
  display: flex; gap: 36px; align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.nav a {
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}
.nav a:hover { color: var(--fg); }
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  transition: width .35s ease;
}
.nav a:hover::after { width: 100%; }

@media (max-width: 720px) {
  .nav { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(80px, 14vh, 160px) 0 clamp(80px, 12vh, 140px);
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(192, 59, 126, 0.08);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F0B6D2;
  margin-bottom: 28px;
}
.hero .badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 0 rgba(192, 59, 126, 0.55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(192, 59, 126, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(192, 59, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 59, 126, 0); }
}

.hero h1 {
  margin: 0 0 24px;
  font-weight: 500;
  font-size: clamp(30px, 4.8vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--brand-3) 0%, var(--brand-2) 55%, #F0B6D2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 620px;
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--fg-muted);
  line-height: 1.85;
  margin: 0 0 40px;
}

.hero .meta-row {
  display: flex; flex-wrap: wrap; gap: 28px 44px;
  align-items: center;
  padding-top: 32px;
  border-top: 1px dashed rgba(155,78,174,0.18);
}
.meta-row .meta {
  display: flex; flex-direction: column; gap: 4px;
}
.meta .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.meta .v {
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--fg);
  font-weight: 500;
}

/* Hero layout — text + concept visual */
.hero-grid {
  display: block;
}
.hero-copy {
  max-width: 820px;
}
.hero-art {
  margin-top: 56px;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
.hero-art .hero-vis {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(123,45,142,0.28));
}
@media (min-width: 960px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
  .hero-copy {
    max-width: none;
  }
  .hero-art {
    margin-top: 0;
    max-width: 460px;
    justify-self: end;
  }
}
@media (min-width: 1200px) {
  .hero-grid {
    gap: 88px;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.reveal.d1 { animation-delay: .05s; }
.reveal.d2 { animation-delay: .20s; }
.reveal.d3 { animation-delay: .35s; }
.reveal.d4 { animation-delay: .50s; }
.reveal.d5 { animation-delay: .65s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Section scaffolding
   ========================================================= */
section.block {
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
}
.block-head {
  max-width: 780px;
  margin-bottom: 56px;
}
.block-head h2 {
  margin: 18px 0 20px;
  font-weight: 500;
  font-size: clamp(22px, 4.6vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: normal;
}
.block-head h2 em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  color: #F0B6D2;
}
.block-head p {
  color: var(--fg-muted);
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.9;
  margin: 0;
  max-width: 62ch;
}

/* =========================================================
   Concept — editorial two-column
   ========================================================= */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 880px) {
  .concept-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.concept-big {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.concept-big .sep {
  display: inline-block;
  width: 60px; height: 1px;
  background: var(--brand-2);
  vertical-align: middle;
  margin: 0 18px 12px;
}
.concept-body p {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.95;
  margin: 0 0 18px;
}
.concept-body p strong {
  color: var(--fg);
  font-weight: 500;
}
.concept-body .inline-code {
  font-family: var(--f-mono);
  font-size: .88em;
  color: #F0B6D2;
  background: rgba(192, 59, 126, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(192, 59, 126, 0.18);
}

/* =========================================================
   Features — card grid
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 680px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1060px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
.feat {
  position: relative;
  padding: 32px 28px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .35s ease, transform .35s ease, background .35s ease;
}
.feat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-2), transparent);
  opacity: 0; transition: opacity .4s ease;
}
.feat:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
  transform: translateY(-3px);
}
.feat:hover::before { opacity: 1; }

.feat .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.feat .ico {
  width: 44px; height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(123,45,142,0.2), rgba(192,59,126,0.15));
  border: 1px solid var(--border);
  color: #F0B6D2;
}
.feat .ico svg { width: 22px; height: 22px; stroke-width: 1.6; }
.feat h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.feat h3 .sub {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  color: #9B4EAE;
  font-size: 14px;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.feat p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* =========================================================
   Pillars — horizontal split (what it's not)
   ========================================================= */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 860px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
.pillar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
}
.pillar .tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-3);
  margin-bottom: 14px;
}
.pillar h4 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}
.pillar p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.85;
}

/* =========================================================
   Glimpse — drip-feed peek inside
   ========================================================= */
.peek {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.peek-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background .35s ease;
}
.peek-row:hover {
  background: linear-gradient(90deg, rgba(192,59,126,0.045), transparent 65%);
}
@media (min-width: 720px) {
  .peek-row {
    grid-template-columns: 96px 1fr;
    gap: 40px;
    padding: 36px 8px;
  }
}
.peek-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  color: var(--brand-3);
  text-align: right;
  padding-right: 8px;
  border-right: 1px solid rgba(155,78,174,0.18);
  align-self: stretch;
}
.peek-body {
  min-width: 0;
}
.peek-body h4 {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.peek-body h4 .tag {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 8px;
  font-weight: 600;
}
.peek-body p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.85;
  max-width: 62ch;
}
.peek-note {
  margin: 32px 0 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-align: right;
}

/* =========================================================
   Coming Soon — closing CTA
   ========================================================= */
.cta {
  position: relative;
  margin: 0 var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(60px, 10vh, 120px) clamp(28px, 5vw, 80px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
  background:
    radial-gradient(circle at 85% 20%, rgba(192,59,126,0.20), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(123,45,142,0.22), transparent 55%),
    linear-gradient(180deg, #12132D 0%, #0B0C22 100%);
  text-align: center;
}
.cta .eyebrow { margin-bottom: 24px; justify-content: center; }
.cta h2 {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.cta h2 em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(110deg, var(--brand-3), var(--brand-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta p {
  margin: 0 auto 36px;
  max-width: 56ch;
  color: var(--fg-muted);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.9;
}
.cta .actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer;
  border: 0;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(110deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 10px 30px -10px rgba(192,59,126,0.55);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(192,59,126,0.65);
}
.btn.ghost {
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border-hi);
}
.btn.ghost:hover {
  background: rgba(255,255,255,0.04);
}
.btn .arrow {
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Footer
   ========================================================= */
footer {
  padding: 60px 0 48px;
  margin-top: 80px;
  border-top: 1px solid rgba(155,78,174,0.08);
}
footer .inner {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
footer .brand img { height: 28px; }
footer .meta-foot {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
footer .foot-tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--brand-3);
}

/* =========================================================
   Utility
   ========================================================= */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155,78,174,0.35), transparent);
  margin: 0 auto;
  max-width: var(--maxw);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
