/* ==========================================================================
   Shugamine — Design Tokens & Base
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  /* Brand */
  --gold:        #FBB040;
  --gold-light:  #FFD08A;
  --gold-deep:   #C9791A;
  --gold-dim:    rgba(251,176,64,0.14);

  /* Dark surfaces */
  --bg:          #0A0A0C;
  --bg-alt:      #131316;
  --bg-raised:   #1B1B1F;
  --line-dark:   rgba(251,176,64,0.16);
  --line-dark-soft: rgba(255,255,255,0.08);

  /* Light / paper surfaces */
  --paper:       #F7F3EA;
  --paper-alt:   #EFE9DB;
  --paper-line:  rgba(20,18,12,0.10);

  /* Text */
  --ink:         #F6F4EF;
  --ink-muted:   #ACA9AC;
  --ink-dim:     #78767b;
  --paper-ink:   #17161A;
  --paper-ink-muted: #5B5750;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(.16,.84,.44,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input, textarea, select{ font-family:inherit; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight:600;
  line-height:1.08;
  margin:0;
  letter-spacing:-0.01em;
}
p{ margin:0; }

::selection{ background: var(--gold); color:#100c00; }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{
  max-width: var(--maxw);
  margin-inline:auto;
  padding-inline: var(--gutter);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before{
  content:'';
  width: 22px;
  height: 2px;
  background: var(--gold);
  display:inline-block;
}

.section{ padding: clamp(3.5rem, 8vw, 7rem) 0; position:relative; }
.section--dark{ background: var(--bg); color: var(--ink); }
.section--alt{ background: var(--bg-alt); color: var(--ink); }
.section--paper{ background: var(--paper); color: var(--paper-ink); }

.section-head{ max-width: 640px; margin-bottom: 3rem; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head h2{ font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head p{ margin-top:1rem; color: var(--ink-muted); font-size:1.05rem; }
.section--paper .section-head p{ color: var(--paper-ink-muted); }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55em;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight:600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }

.btn--gold{
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #171106;
  box-shadow: 0 8px 24px -8px rgba(251,176,64,0.55);
}
.btn--gold:hover{ box-shadow: 0 12px 30px -8px rgba(251,176,64,0.7); }

.btn--ghost-dark{
  border-color: rgba(255,255,255,0.22);
  color: var(--ink);
  background: rgba(255,255,255,0.03);
}
.btn--ghost-dark:hover{ border-color: var(--gold); color: var(--gold); }

.btn--ghost-paper{
  border-color: rgba(20,18,12,0.25);
  color: var(--paper-ink);
}
.btn--ghost-paper:hover{ border-color: var(--gold-deep); color: var(--gold-deep); }

.btn--sm{ padding: 0.7rem 1.35rem; font-size:0.85rem; }

.tag-pill{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family: var(--font-mono);
  font-size:0.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding: .4em .9em;
  border-radius:999px;
  border:1px solid var(--line-dark);
  color: var(--gold-light);
  background: var(--gold-dim);
}

/* ---- Hash-bars signature mark ---- */
.hashbars{ display:flex; flex-direction:column; gap:5px; width:34px; }
.hashbars i{
  display:block; height:5px; border-radius:2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform-origin:left center;
}
.hashbars i:nth-child(1){ width:100%; }
.hashbars i:nth-child(2){ width:78%; }
.hashbars i:nth-child(3){ width:56%; }
.hashbars i:nth-child(4){ width:88%; }

@keyframes barsPulse{
  0%, 100%{ transform: scaleX(1); opacity:1; }
  50%{ transform: scaleX(0.62); opacity:.75; }
}
.hashbars.live i{ animation: barsPulse 2.4s var(--ease) infinite; }
.hashbars.live i:nth-child(1){ animation-delay: 0s; }
.hashbars.live i:nth-child(2){ animation-delay: .2s; }
.hashbars.live i:nth-child(3){ animation-delay: .4s; }
.hashbars.live i:nth-child(4){ animation-delay: .6s; }

/* Reveal-on-scroll */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }

.divider-bars{
  display:flex; align-items:flex-end; gap:6px; height:26px; margin: 0 auto;
  width: fit-content;
}
.divider-bars i{ display:block; width:6px; border-radius:2px; background: var(--gold); opacity:.85; }
