/* ═══════════════════════════════════════════════
   TAKAI CASUAL CREW — Landing
   Aesthetic: Dark arcade, editorial split layout
   Fonts: Bebas Neue (display) + Outfit (body)
═══════════════════════════════════════════════ */

:root {
  --bg:           #08080e;
  --bg-2:         #10101a;
  --bg-3:         #1a1a2a;
  --border:       rgba(255,255,255,0.07);
  --border-2:     rgba(255,255,255,0.14);
  --text:         #f0f0f8;
  --muted:        #636380;
  --accent:       #d4ff47;
  --accent-rgb:   212, 255, 71;
  --cyan:         #00d4ff;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Outfit', sans-serif;

  --radius:    16px;
  --radius-sm: 10px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100dvh;
  max-width: 1240px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button { cursor: pointer; font-family: var(--font-body); }

/* ── Background ─────────────────────────────── */

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg__circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.bg__circle--1 {
  width: 500px; height: 500px;
  top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(212,255,71,0.09) 0%, transparent 70%);
  animation: drift 10s ease-in-out infinite alternate;
}
.bg__circle--2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -80px;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 70%);
  animation: drift 13s ease-in-out 2s infinite alternate-reverse;
}
.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
}

/* ── Page wrapper ───────────────────────────── */

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  animation: fadeDown 0.5s var(--ease-out) both;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1em;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--text);
}
.brand-name--thin {
  line-height: 1em;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(212,255,71,0.1);
  color: var(--accent);
  border: 1px solid rgba(212,255,71,0.25);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
}

/* ── Shared elements ────────────────────────── */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.hero-title--outline {
  -webkit-text-stroke: 2px var(--text);
  color: transparent;
}

.hero-body {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 2rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   DESKTOP LAYOUT (hidden on mobile)
═══════════════════════════════════════════════ */

.desktop-layout {
  display: none; /* JS shows this on desktop */
  flex: 1;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding: 2rem 0 4rem;
}

.desktop-layout__left {
  flex: 1;
  animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}

.desktop-layout__right {
  flex-shrink: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.25s both;
}

/* QR card */
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  /* subtle glow */
  box-shadow:
    0 0 0 1px var(--border),
    0 32px 64px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* corner decorations */
.qr-card::before,
.qr-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
}
.qr-card::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}
.qr-card::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

.qr-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.qr-card__code {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px;
  line-height: 0;
}

.qr-card__code canvas {
  display: block;
  width: 180px !important;
  height: 180px !important;
}

.qr-card__url {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.qr-card__hint {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   MOBILE LAYOUT (hidden on desktop)
═══════════════════════════════════════════════ */

.mobile-layout {
  display: none; /* JS shows this on mobile */
  flex: 1;
  flex-direction: column;
  padding: 1.5rem 0 0;
}

.mobile-layout__hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 2rem;
  animation: fadeUp 0.5s var(--ease-out) 0.1s both;
}

.mobile-layout__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.5s var(--ease-out) 0.2s both;
}

.mobile-layout__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  animation: fadeUp 0.5s var(--ease-out) 0.3s both;
}

/* CTA button */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.28);
}
.cta-btn:active { transform: scale(0.97); }

.pwa-btn {
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.pwa-btn:hover { color: var(--text); border-color: var(--border-2); }

.footer-note {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(20px, 15px); }
}