/* ==========================================================================
   ASHINA INTERACTIVE — LANDING PAGE STYLES
   Design language: ink-brush dark / organic growth & decay
   ========================================================================== */

:root {
  /* ---- Color tokens ----------------------------------------------------
     Derived directly from the brand mark: charcoal-black wolf silhouette,
     silver-grey fur linework, and a turquoise eye/gem accent.
     ------------------------------------------------------------------- */
  --color-bg:            #0a0b0d;
  --color-bg-soft:       #0d0f12;
  --color-surface:       #15171b;
  --color-surface-alt:   #191c21;
  --color-border:        rgba(224, 226, 228, 0.09);
  --color-border-strong: rgba(224, 226, 228, 0.18);

  --color-text:          #eceae5;
  --color-text-muted:    #9a9da1;
  --color-text-faint:    #63666b;

  --color-teal:          #2ec4bd;
  --color-teal-bright:   #5be3db;
  --color-silver:        #b9bcc1;
  --color-silver-bright: #dcdee1;

  --gradient-accent: linear-gradient(120deg, var(--color-teal) 0%, var(--color-silver) 100%);

  /* ---- Type ----------------------------------------------------------- */
  --font-display: 'Shippori Mincho', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ---- Layout ----------------------------------------------------------- */
  --header-height: 96px;
  --max-width: 1120px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 14px);
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Ambient background texture: vignette + faint radial glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(46, 196, 189, 0.09), transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 30%, rgba(185, 188, 193, 0.06), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(46, 196, 189, 0.05), transparent 70%),
    var(--color-bg);
}

/* Focus visibility (keyboard navigation) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-teal-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 12px 18px;
  z-index: 200;
  border: 1px solid var(--color-border-strong);
  border-radius: 6px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   HEADER / NAVBAR — glassmorphism, sticky
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(9, 10, 12, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--color-border-strong);
}
.header-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.brand-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(46, 196, 189, 0.22));
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-desktop ul {
  display: flex;
  gap: 34px;
}
.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 6px 2px;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gradient-accent);
  transition: right 0.3s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-text);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--color-text-muted);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-toggle:hover, .lang-toggle:focus-visible {
  border-color: var(--color-teal);
  color: var(--color-text);
}
.lang-toggle-current { color: var(--color-teal-bright); font-weight: 500; }
.lang-toggle-sep { color: var(--color-text-faint); }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.hamburger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 13, 10, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  transition: max-height 0.35s var(--ease);
}
.nav-mobile.is-open { max-height: 260px; }
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  padding: 10px 28px 22px;
  gap: 4px;
}
.nav-mobile .nav-link {
  display: block;
  padding: 12px 4px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 780px) {
  :root { --header-height: 76px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.08rem; }
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .nav-mobile { display: block; }
  .header-inner { padding: 0 20px; }
}

/* ==========================================================================
   SHARED SECTION LAYOUT
   ========================================================================== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 28px;
}
@media (max-width: 780px) {
  .section-inner { padding: 84px 20px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal-bright);
  margin-bottom: 18px;
}
/* Small diamond mark, echoing the gem set into the wolf mark's brow */
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--color-teal-bright);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: 0.01em;
  color: var(--color-teal-bright);
  margin-bottom: 22px;
}

.section-desc {
  max-width: 620px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-desc { max-width: 720px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 28px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Faint wolf mark watermark, anchored behind the hero copy */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(640px, 85vw);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  filter: grayscale(1) brightness(1.6);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--color-teal-bright);
  text-shadow: 0 0 60px rgba(46, 196, 189, 0.35);
}

.title-bar {
  width: 64px;
  height: 4px;
  margin: 24px 0 28px;
  border-radius: 2px;
  background: var(--gradient-accent);
}

.hero-tagline {
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 500;
  max-width: 480px;
  margin-bottom: 40px;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  animation: floatCue 2.6s ease-in-out infinite;
}
@keyframes floatCue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Ambient drifting particles — kept minimal and subtle */
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-particles span {
  position: absolute;
  bottom: -10%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-teal-bright);
  opacity: 0.22;
  filter: blur(0.5px);
  animation: drift 16s linear infinite;
}
.hero-particles span:nth-child(1) { left: 12%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 38%; animation-delay: 4s;  background: var(--color-silver); width:3px; height:3px; }
.hero-particles span:nth-child(3) { left: 64%; animation-delay: 8s;  }
.hero-particles span:nth-child(4) { left: 86%; animation-delay: 2s;  background: var(--color-silver); }

@keyframes drift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.3; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-115vh) translateX(24px); opacity: 0; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color .25s var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient-accent);
  color: #0a0b0d;
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus-visible {
  box-shadow: 0 10px 30px -10px rgba(91, 227, 219, 0.45);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--color-silver-bright);
  color: var(--color-silver-bright);
}

/* ==========================================================================
   GAMES SECTION
   ========================================================================== */
.games { background: var(--color-bg-soft); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.game-card {
  margin-top: 52px;
  border: 1px solid var(--color-border-strong);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--color-surface), var(--color-surface-alt));
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 100% 0%, rgba(46,196,189,0.10), transparent 60%);
  pointer-events: none;
}

.game-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 780px) {
  .game-media-grid { grid-template-columns: 1fr; }
}

.media-placeholder {
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--color-border-strong);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-text-faint);
  background: linear-gradient(135deg, rgba(46,196,189,0.06), rgba(185,188,193,0.06));
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.media-placeholder:hover {
  border-color: var(--color-teal);
  color: var(--color-teal-bright);
}
.media-placeholder-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.media-placeholder-caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.game-card-footer {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-silver);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-faint);
}
