/* =========================================================
   Blue Moment Studio — style.css
   Fonts: Space Grotesk (EN) + Noto Sans JP (JA)
   Colors: brand token set from core-design
   ========================================================= */

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

:root {
  /* Brand colors */
  --primary:       #3A4189;
  --grad-start:    #2A2D6A;
  --grad-mid:      #3D6BA5;
  --grad-end:      #A1CEF8;

  /* Backgrounds */
  --bg:            #030B1E;
  --bg-lifted:     #06122A;
  --surface:       #0A1A30;

  /* Text */
  --text:          #B0B8C8;
  --text-bright:   #FFFFFF;
  --text-dim:      #4E5A72;

  /* Borders */
  --border:        rgba(58, 65, 137, 0.22);
  --border-hover:  rgba(58, 65, 137, 0.50);
  --primary-soft:  rgba(58, 65, 137, 0.10);

  /* Fonts */
  --font:          'Space Grotesk', 'Noto Sans JP', system-ui, sans-serif;

  /* Layout */
  --nav-h:         64px;
  --max-w:         760px;
}

html { scroll-behavior: smooth; }

body {
  background:              var(--bg);
  color:                   var(--text);
  font-family:             var(--font);
  font-weight:             400;
  line-height:             1.72;
  -webkit-font-smoothing:  antialiased;
  overflow-x:              hidden;
}

::selection {
  background: rgba(58, 65, 137, 0.35);
  color: #fff;
}

/* ─── Header ─────────────────────────────────────────── */

.site-header {
  position:          fixed;
  top: 0; left: 0; right: 0;
  height:            var(--nav-h);
  z-index:           100;
  background:        rgba(3, 11, 30, 0.90);
  backdrop-filter:   blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom:     1px solid var(--border);
}

.header-inner {
  max-width:      1100px;
  margin:         0 auto;
  padding:        0 28px;
  height:         100%;
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  gap:            20px;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }

.site-logo { height: 34px; width: auto; display: block; }

.site-nav {
  display:     flex;
  align-items: center;
  gap:         28px;
}

.nav-link {
  font-size:       0.82rem;
  font-weight:     500;
  letter-spacing:  0.04em;
  color:           var(--text-dim);
  text-decoration: none;
  transition:      color 0.2s;
}

.nav-link:hover,
.nav-link.active { color: var(--text-bright); }

.lang-switch {
  display:      flex;
  gap:          6px;
  margin-left:  16px;
  padding-left: 16px;
  border-left:  1px solid var(--border);
}

.lang-btn {
  font-size:       0.72rem;
  font-weight:     500;
  letter-spacing:  0.08em;
  text-transform:  uppercase;
  padding:         4px 10px;
  border-radius:   12px;
  border:          1px solid var(--border);
  background:      transparent;
  color:           var(--text-dim);
  text-decoration: none;
  transition:      all 0.2s;
}

.lang-btn:hover {
  border-color: var(--border-hover);
  color:        var(--text-bright);
}

.lang-btn.active {
  background:   var(--primary);
  border-color: var(--primary);
  color:        #fff;
}

/* Hamburger */
.nav-toggle {
  display:    none;
  flex-direction: column;
  gap:        5px;
  background: none;
  border:     none;
  cursor:     pointer;
  padding:    4px;
}

.nav-toggle span {
  display:    block;
  width:      22px;
  height:     1.5px;
  background: var(--text);
  transition: all 0.25s;
}

/* ─── Utilities ───────────────────────────────────────── */

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

.divider {
  height:     1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  max-width:  var(--max-w);
  margin:     0 auto;
}

/* ─── Hero ────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  min-height: 100svh;
  display:    flex;
  align-items: center;
  justify-content: center;
  padding:    calc(var(--nav-h) + 60px) 28px 80px;
  text-align: center;
  position:   relative;
}

.hero-inner {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            20px;
}

.hero-manifesto {
  font-size:      clamp(0.7rem, 1.5vw, 0.82rem);
  font-weight:    500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color:          var(--text-dim);
  animation:      fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-manifesto b {
  font-weight: 500;
  background:  linear-gradient(135deg, var(--grad-start), var(--grad-mid), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-logo {
  width:  min(80vw, 420px);
  height: auto;
  filter: drop-shadow(0 0 52px rgba(42, 45, 106, 0.38));
  animation: fadeUp 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-sub {
  font-size:   clamp(0.88rem, 1.8vw, 1.05rem);
  font-weight: 300;
  font-style:  italic;
  color:       var(--text-dim);
  animation:   fadeUp 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─── Sections ────────────────────────────────────────── */

.section { padding: 96px 0; }

.section-label {
  font-size:      10px;
  font-weight:    600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color:          var(--primary);
  margin-bottom:  18px;
}

h2 {
  font-size:      clamp(1.7rem, 4vw, 2.6rem);
  font-weight:    600;
  color:          var(--text-bright);
  line-height:    1.15;
  letter-spacing: -0.02em;
  margin-bottom:  24px;
}

h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--grad-mid), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose     { max-width: 58ch; }
.prose p   { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ─── Pillars ─────────────────────────────────────────── */

.pillars {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   20px;
  margin-top:            44px;
}

@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  padding:    28px 24px;
  border-radius: 12px;
  background: var(--surface);
  border:     1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pillar:hover {
  border-color: var(--border-hover);
  box-shadow:   0 0 40px rgba(58, 65, 137, 0.08);
}

.pillar-icon {
  width:         34px;
  height:        34px;
  border-radius: 8px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  margin-bottom: 16px;
  font-size:     15px;
  background:    var(--primary-soft);
  color:         var(--grad-end);
  border:        1px solid var(--border);
}

.pillar h3 {
  font-size:    1rem;
  font-weight:  600;
  color:        var(--text-bright);
  margin-bottom: 8px;
}

.pillar p {
  font-size:   0.875rem;
  color:       var(--text);
  line-height: 1.6;
}

/* ─── Quote ───────────────────────────────────────────── */

.quote-block {
  padding:    80px 28px;
  text-align: center;
}

.quote {
  font-size:   clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style:  italic;
  color:       var(--text-bright);
  line-height: 1.55;
  max-width:   560px;
  margin:      0 auto 14px;
}

.quote-from {
  font-size:      0.78rem;
  font-weight:    500;
  letter-spacing: 0.12em;
  color:          var(--text-dim);
  font-style:     normal;
}

/* ─── Apps CTA (home) ─────────────────────────────────── */

.apps-cta { text-align: center; }

.btn-primary {
  display:        inline-block;
  margin-top:     24px;
  padding:        12px 28px;
  border-radius:  8px;
  background:     var(--primary);
  color:          #fff;
  font-weight:    500;
  font-size:      0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:     background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background:  #4A51A0;
  box-shadow:  0 0 24px rgba(58, 65, 137, 0.35);
}

/* ─── Apps list ───────────────────────────────────────── */

.apps-grid {
  display:        flex;
  flex-direction: column;
  gap:            20px;
  margin-top:     44px;
}

.app-card {
  padding:       28px;
  border-radius: 12px;
  background:    var(--bg-lifted);
  border:        1px solid rgba(255, 255, 255, 0.04);
  transition:    border-color 0.3s;
}

.app-card:hover { border-color: var(--border); }

.badge {
  display:        inline-block;
  padding:        3px 10px;
  border-radius:  12px;
  font-size:      9px;
  font-weight:    600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom:  12px;
}

.badge-soon {
  background:  rgba(58, 65, 137, 0.12);
  color:       var(--grad-mid);
  border:      1px solid var(--border);
}

.badge-free {
  background: rgba(80, 200, 120, 0.08);
  color:      #5CC87A;
  border:     1px solid rgba(80, 200, 120, 0.15);
}

.app-card h3 {
  font-size:     1.2rem;
  font-weight:   600;
  color:         var(--text-bright);
  margin-bottom: 6px;
}

.app-tagline {
  font-size:     0.875rem;
  font-style:    italic;
  color:         var(--text-dim);
  margin-bottom: 10px;
}

.app-model {
  font-size:   0.82rem;
  color:       var(--text-dim);
  font-weight: 500;
}

/* ─── Page header (inner pages) ──────────────────────── */

.page-header {
  padding: calc(var(--nav-h) + 56px) 0 44px;
}

.page-header h1 {
  font-size:      clamp(1.8rem, 4vw, 2.8rem);
  font-weight:    600;
  color:          var(--text-bright);
  letter-spacing: -0.02em;
  line-height:    1.15;
  margin-bottom:  10px;
}

.page-header h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--grad-mid), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-intro {
  font-size: 0.95rem;
  color:     var(--text);
  max-width: 54ch;
}

.updated {
  font-size: 0.78rem;
  color:     var(--text-dim);
  margin-top: 8px;
}

/* ─── Privacy / prose pages ───────────────────────────── */

.content-body {
  padding-bottom: 96px;
}

.content-body h2 {
  font-size:      1.15rem;
  font-weight:    600;
  color:          var(--text-bright);
  letter-spacing: -0.01em;
  margin-top:     36px;
  margin-bottom:  12px;
}

.content-body p {
  font-size:     0.92rem;
  margin-bottom: 16px;
}

.content-body p:last-child { margin-bottom: 0; }

.content-body strong {
  color:       var(--text-bright);
  font-weight: 500;
}

.highlight-box {
  padding:       22px 26px;
  border-radius: 10px;
  background:    var(--surface);
  border:        1px solid var(--border);
  margin:        28px 0;
}

.highlight-box p {
  margin-bottom: 8px;
}

.contact-box {
  padding:       22px 26px;
  border-radius: 10px;
  background:    var(--bg-lifted);
  border:        1px solid rgba(255, 255, 255, 0.04);
  margin:        28px 0;
}

.contact-box a {
  color:           var(--grad-end);
  text-decoration: none;
  transition:      opacity 0.2s;
}

.contact-box a:hover { opacity: 0.8; }

/* ─── Contact page ────────────────────────────────────── */

.contact-section { padding-bottom: 96px; }

.contact-email {
  display:         inline-block;
  margin-top:      20px;
  font-size:       1.15rem;
  font-weight:     500;
  color:           var(--grad-end);
  text-decoration: none;
  transition:      opacity 0.2s;
}

.contact-email:hover { opacity: 0.8; }

.contact-meta {
  margin-top: 32px;
  font-size:  0.88rem;
  color:      var(--text-dim);
  line-height: 1.8;
}

/* ─── Footer ──────────────────────────────────────────── */

.site-footer {
  padding:     40px 28px;
  text-align:  center;
  border-top:  1px solid rgba(255, 255, 255, 0.04);
}

.footer-links {
  display:         flex;
  gap:             28px;
  justify-content: center;
  flex-wrap:       wrap;
  margin-bottom:   16px;
}

.footer-links a {
  font-size:       0.78rem;
  font-weight:     400;
  letter-spacing:  0.04em;
  color:           var(--text-dim);
  text-decoration: none;
  transition:      color 0.2s;
}

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

.footer-copy {
  font-size: 0.75rem;
  color:     var(--text-dim);
}

/* ─── Responsive ──────────────────────────────────────── */

@media (max-width: 640px) {
  .site-nav {
    display:        none;
    position:       fixed;
    top:            var(--nav-h);
    left: 0; right: 0;
    background:     rgba(3, 11, 30, 0.98);
    flex-direction: column;
    align-items:    flex-start;
    padding:        24px 28px;
    gap:            20px;
    border-bottom:  1px solid var(--border);
  }

  .site-nav.open { display: flex; }

  .nav-toggle { display: flex; }

  .lang-switch {
    border-left:  none;
    padding-left: 0;
    margin-left:  0;
  }

  .section       { padding: 64px 0; }
  .quote-block   { padding: 56px 28px; }
}
