/* ==========================================================
   OYUMINO METS - Design Tokens & Base Styles
   Uniform-inspired visual system
   ========================================================== */

:root {
  /* Jersey Purple Palette */
  --purple-deep: #10082B;
  --purple-dark: #21105A;
  --purple-mid: #4320A0;
  --purple-bright: #6136D2;
  --purple-vivid: #7F5AF0;
  --purple-light: #DAD7FF;
  --purple-glow: rgba(97, 54, 210, 0.44);
  --purple-subtle: rgba(127, 90, 240, 0.12);

  /* Uniform Surfaces */
  --uniform-ink: #070A18;
  --uniform-ink-soft: #11152D;
  --uniform-panel: #F2F4F8;
  --uniform-panel-shadow: #D5D9E3;
  --uniform-letter: #FFFFFF;
  --uniform-outline: rgba(4, 6, 18, 0.95);
  --uniform-seam: rgba(255, 255, 255, 0.72);
  --uniform-stitch: rgba(255, 255, 255, 0.2);
  --uniform-poly-bg:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 9%, transparent 9% 100%),
    linear-gradient(42deg, transparent 0 58%, rgba(255, 255, 255, 0.08) 58% 64%, transparent 64% 100%),
    conic-gradient(from 34deg at 22% 28%, rgba(255, 255, 255, 0.14) 0 22deg, rgba(14, 9, 58, 0.28) 22deg 66deg, rgba(111, 74, 229, 0.22) 66deg 116deg, transparent 116deg 360deg),
    conic-gradient(from 156deg at 78% 68%, rgba(6, 8, 30, 0.34) 0 48deg, transparent 48deg 132deg, rgba(255, 255, 255, 0.08) 132deg 188deg, transparent 188deg 360deg),
    linear-gradient(140deg, #180946 0%, #4A22B8 42%, #2D1477 70%, #160833 100%);
  --uniform-poly-size: 96px 96px, 142px 142px, 180px 180px, 236px 236px, auto;

  /* Accent */
  --gold: #F6CF59;
  --gold-light: #FFE27B;

  /* Neutrals */
  --white: #F8F8FF;
  --white-pure: #FFFFFF;
  --text-main: #F3F0FF;
  --text-muted: #C9C2DD;

  /* Surfaces */
  --surface: #171033;
  --card: #22145A;
  --card-hover: #2F1A73;

  /* Semantic */
  --success: #4ADE80;
  --danger: #F87171;
  --info: #60A5FA;

  /* Spacing */
  --section-pad: 110px;
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.35s;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* Font Stacks */
  --font-body: 'Noto Sans JP', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-ui: 'Barlow Condensed', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, rgba(242, 244, 248, 0.08) 0 6.5vw, transparent 6.5vw calc(100% - 6.5vw), rgba(242, 244, 248, 0.08) calc(100% - 6.5vw) 100%),
    var(--uniform-poly-bg);
  background-size: auto, var(--uniform-poly-size);
  background-attachment: fixed;
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 49.6%, rgba(255, 255, 255, 0.08) 49.6% 50%, rgba(0, 0, 0, 0.22) 50% 50.4%, transparent 50.4% 100%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.018) 18px 19px);
}

::selection {
  background: var(--purple-light);
  color: var(--uniform-ink);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: var(--section-pad) 0;
}

.bg-alt {
  background:
    linear-gradient(90deg, rgba(242, 244, 248, 0.09) 0 3.5vw, transparent 3.5vw calc(100% - 3.5vw), rgba(242, 244, 248, 0.09) calc(100% - 3.5vw) 100%),
    linear-gradient(180deg, rgba(7, 10, 24, 0.74), rgba(17, 11, 46, 0.95)),
    var(--uniform-poly-bg);
  background-size: auto, auto, var(--uniform-poly-size);
  position: relative;
}

.bg-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

/* Section Headers */
.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-line {
  margin-left: auto;
  margin-right: auto;
}

.section-header.center .section-eyebrow {
  justify-content: center;
}

.section-eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 5px;
  color: var(--uniform-letter);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.32);
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--uniform-seam);
}

.section-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--uniform-letter);
  text-shadow:
    1px 1px 0 var(--uniform-outline),
    -1px 1px 0 var(--uniform-outline),
    1px -1px 0 var(--uniform-outline),
    -1px -1px 0 var(--uniform-outline),
    0 5px 0 rgba(0, 0, 0, 0.22);
}

.section-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--uniform-panel), var(--purple-light), var(--uniform-panel));
  margin-top: 16px;
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--uniform-outline);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--uniform-outline);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 0 rgba(0, 0, 0, 0.22);
}

.btn-primary {
  background:
    linear-gradient(90deg, var(--uniform-panel) 0 9px, transparent 9px calc(100% - 9px), var(--uniform-panel) calc(100% - 9px) 100%),
    var(--uniform-poly-bg);
  background-size: auto, var(--uniform-poly-size);
  color: var(--uniform-letter);
  text-shadow:
    1px 1px 0 var(--uniform-outline),
    -1px 1px 0 var(--uniform-outline),
    1px -1px 0 var(--uniform-outline),
    -1px -1px 0 var(--uniform-outline);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(127, 90, 240, 0.3));
  opacity: 0;
  transition: opacity var(--duration);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 10px 30px var(--purple-glow);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  background: rgba(7, 10, 24, 0.34);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.38);
}

.btn-ghost:hover {
  border-color: var(--uniform-letter);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--uniform-ink);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246, 207, 89, 0.3);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-purple {
  color: var(--purple-light);
}

.text-gold {
  color: var(--gold);
}

.text-muted {
  color: var(--text-muted);
}
