/* ============================================================
   IRLESS — VR & Console Hybrid Club
   Futuristic neon. Perspective floor-grid motif + portal frames.
   ============================================================ */

:root {
  /* Palette */
  --bg-light: #eef4ff;
  --bg-dark: #0d1220;
  --text-on-light: #0d1220;
  --text-on-dark: #eef4ff;
  --accent-1: #ff6ec7;
  --accent-2: #48f0d2;

  /* Derived */
  --line: rgba(72, 240, 210, 0.4);
  --line-soft: rgba(72, 240, 210, 0.22);
  --muted-on-dark: rgba(238, 244, 255, 0.72);
  --muted-on-light: rgba(13, 18, 32, 0.7);

  /* Type */
  --font-display: "Exo 2", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  /* Shape / rhythm */
  --radius: 14px;
  --section-y: 112px;
  --rail-w: 76px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.1; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent-2); color: var(--bg-dark);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

.section { padding-block: var(--section-y); position: relative; overflow: hidden; }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--light { background: var(--bg-light); color: var(--text-on-light); }

.section__head { max-width: 640px; margin-bottom: 56px; }
.section__lede { color: var(--muted-on-dark); font-size: 1.05rem; }
.section--light .section__lede { color: var(--muted-on-light); }

/* ---------- Typography ---------- */
h1 { font-size: clamp(42px, 7vw, 92px); font-weight: 700; letter-spacing: 0.03em; }
h2 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; }

.kicker {
  font-family: var(--font-body);
  font-feature-settings: "tnum" 1;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-1);
  text-stroke: 1px var(--accent-1);
  position: relative;
}
/* fill sweep left-to-right after appear */
.outline::after {
  content: attr(data-fill);
  position: absolute; inset: 0;
  color: var(--accent-1);
  -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 900ms var(--ease) 400ms;
}
.hero.is-revealed .outline::after { clip-path: inset(0 0 0 0); }

.lede { font-size: 1.12rem; color: var(--muted-on-dark); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.02em; cursor: pointer; border: 1px solid transparent;
  transition: box-shadow 220ms var(--ease), outline-offset 220ms var(--ease), transform 220ms var(--ease);
}
.btn--primary {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  color: var(--bg-dark);
}
.btn--primary:hover, .btn--primary:focus-visible { box-shadow: 0 0 16px rgba(72, 240, 210, 0.55); }
.btn--secondary {
  background: transparent; color: inherit;
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft); outline-offset: 4px;
}
.btn--secondary:hover, .btn--secondary:focus-visible { outline-offset: 6px; border-color: var(--accent-2); }

/* ---------- Perspective floor grid (Depth Grid Tilt) ---------- */
.grid-floor {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
  perspective: 520px;
  --tiltX: 0deg; --tiltY: 0deg;
}
.grid-floor::before {
  content: ""; position: absolute;
  left: -50%; right: -50%; bottom: -20%; height: 160%;
  background-image:
    repeating-linear-gradient(to right, var(--line-soft) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, var(--line-soft) 0 1px, transparent 1px 64px);
  background-position: 0 0;
  transform-origin: 50% 100%;
  transform: rotateX(74deg) rotateZ(var(--tiltX)) translateX(var(--tiltY));
  transition: transform 600ms var(--ease);
  will-change: transform;
  mask-image: linear-gradient(to top, #000 8%, transparent 78%);
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 78%);
}
.grid-floor--soft::before { opacity: 0.55; }
@keyframes floor-drift {
  from { background-position: 0 0; }
  to   { background-position: 0 64px; }
}

/* ---------- Navigation: vertical rail ---------- */
.nav {
  position: fixed; left: 0; top: 0; z-index: 40;
  height: 100vh; width: var(--rail-w);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 22px 8px;
  background: rgba(13, 18, 32, 0.78);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--line-soft);
  transition: background 240ms var(--ease);
}
.nav__logo { display: flex; flex-direction: column; align-items: center; font-family: var(--font-display); font-weight: 700; }
.nav__logo-emblem { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.nav__logo-emblem svg { display: block; }
.nav__logo-full { display: none; }
.nav__rail-links {
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  margin-top: 8px;
}
.nav__rail-links a {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.06em; color: var(--muted-on-dark);
  padding: 6px 2px; transition: color 200ms var(--ease);
}
.nav__rail-links a:hover,
.nav__rail-links a:focus-visible,
.nav__rail-links a.is-current { color: var(--accent-2); }
.nav__cta {
  writing-mode: vertical-rl;
  color: var(--bg-dark) !important;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  border-radius: 999px; padding: 14px 6px !important; margin-top: 6px;
}
.nav.is-scrolled { background: rgba(13, 18, 32, 0.94); }

/* push content clear of the rail on desktop */
@media (min-width: 769px) {
  #main, .footer { margin-left: var(--rail-w); }
}

/* ---------- Hero ---------- */
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero__tag {
  font-family: var(--font-display); color: var(--accent-2);
  letter-spacing: 0.14em; text-transform: lowercase; font-size: 0.95rem; margin-top: 4px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Portal frames (photos) ---------- */
.portal {
  margin: 0; position: relative;
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft); outline-offset: 4px;
  border-radius: var(--radius);
  transition: outline-offset 400ms var(--ease);
}
.portal img { border-radius: calc(var(--radius) - 3px); filter: hue-rotate(4deg); }
.portal:hover { outline-offset: 6px; }
.portal--hero { max-width: 460px; margin-inline: auto; }
.portal--hero img {
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
/* portal frames "draw apart" on reveal */
.reveal .portal { outline-offset: 0; }
.reveal.is-revealed .portal { outline-offset: 4px; }

/* ---------- Zigzag rows ---------- */
.zigzag__row {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center;
}
.zigzag--reverse .zigzag__media { order: 2; }
.tick-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: inherit;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 10px; transform: translateY(-50%) rotate(45deg);
  border: 1px solid var(--accent-2); border-radius: 3px;
}

/* ---------- Cards (double frame) ---------- */
.card {
  border: 1px solid var(--line);
  outline: 1px solid var(--line-soft); outline-offset: 4px;
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(72, 240, 210, 0.03);
  transition: outline-offset 320ms var(--ease), transform 320ms var(--ease), border-color 320ms var(--ease);
}
.section--light .card { background: rgba(13, 18, 32, 0.02); }
.card:hover { outline-offset: 6px; border-color: var(--accent-2); }

/* ---------- Tabs (VR ⇄ Console switcher) ---------- */
.tabs { margin-bottom: 64px; max-width: 780px; }
.tabs__buttons {
  position: relative; display: inline-flex; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px; margin-bottom: 26px;
}
.tabs__btn {
  position: relative; z-index: 1;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--muted-on-light); padding: 10px 24px; border-radius: 999px;
  transition: color 240ms var(--ease);
}
.tabs__btn.is-active { color: var(--bg-dark); }
.tabs__ink {
  position: absolute; z-index: 0; top: 6px; left: 6px; bottom: 6px;
  width: calc(50% - 6px);
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  border-radius: 999px;
  transform: translateX(0);
  transition: transform 420ms var(--ease);
}
.tabs__ink.is-right { transform: translateX(100%); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: tab-in 300ms var(--ease); }
@keyframes tab-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 6px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.timeline__step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 22px; padding-bottom: 30px; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__dot {
  width: 15px; height: 15px; margin-top: 6px; border-radius: 50%;
  background: var(--bg-light); border: 1px solid var(--accent-2);
  box-shadow: 0 0 0 3px rgba(72, 240, 210, 0.14);
  position: relative; z-index: 1;
}

/* ---------- Pricing ---------- */
.pricing-section .wrap { position: relative; z-index: 1; }
.pricing--3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card { display: flex; flex-direction: column; }
.price-card.is-featured { border-color: var(--accent-1); outline-color: rgba(255, 110, 199, 0.4); transform: translateY(-8px); }
.price-card__flag {
  align-self: flex-start; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-1);
  border: 1px solid rgba(255, 110, 199, 0.5); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}
.price-card__price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin: 4px 0 6px; }
.price-card__price span { font-size: 0.95rem; font-weight: 500; color: var(--muted-on-dark); }
.price-card__note { color: var(--muted-on-dark); font-size: 0.98rem; }
.price-card .tick-list { margin: 6px 0 24px; }
.price-card .btn { margin-top: auto; width: 100%; }

/* ---------- Form ---------- */
.cta-form__inner { max-width: 560px; margin-inline: auto; text-align: center; }
.cta-form .section__head { margin-inline: auto; }
.form { text-align: left; display: grid; gap: 18px; }
.form__row { display: grid; gap: 6px; }
.form label { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.03em; }
.form input, .form select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  background: rgba(13, 18, 32, 0.6); color: var(--text-on-dark);
  border: 1px solid rgba(72, 240, 210, 0.4);
  font-family: var(--font-body); font-size: 1rem;
  transition: outline-offset 200ms var(--ease), border-color 200ms var(--ease);
}
.form input::placeholder { color: rgba(238, 244, 255, 0.45); }
.form input:focus, .form select:focus {
  outline: 1px solid var(--line-soft); outline-offset: 4px; border-color: var(--accent-2);
}
.form select option { color: #0d1220; }
.form__submit { width: 100%; margin-top: 6px; }
.form__status { min-height: 1.4em; margin: 4px 0 0; font-weight: 600; }
.form__status.success { color: var(--accent-2); }
.form__status.error { color: var(--accent-1); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: var(--text-on-dark); padding-block: 72px 40px; border-top: 1px solid var(--line-soft); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: 0.06em; color: var(--accent-2); }
.footer__logo-emblem { display: inline-flex; align-items: center; line-height: 0; }
.footer__logo-emblem svg { display: block; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft);
}
.footer__legal a { color: var(--muted-on-dark); font-size: 0.92rem; transition: color 180ms var(--ease); }
.footer__legal a:hover, .footer__legal a:focus-visible { color: var(--accent-2); }
.footer__slogan { color: var(--muted-on-dark); font-family: var(--font-display); letter-spacing: 0.1em; margin-top: 8px; }
.footer__col h4 { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.footer__col a { display: block; color: var(--muted-on-dark); padding: 5px 0; transition: color 180ms var(--ease); }
.footer__col a:hover, .footer__col a:focus-visible { color: var(--text-on-dark); }
.footer__col p { color: var(--muted-on-dark); margin-bottom: 6px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  color: var(--muted-on-dark); font-size: 0.92rem;
}
.footer__disclaimer { color: var(--accent-2); font-weight: 600; margin: 0; }

/* ---------- Legal pages ---------- */
.legal { padding-block: calc(var(--section-y) - 24px); }
.legal .wrap { max-width: 760px; }
.legal__back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-2); font-family: var(--font-display); font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.04em; margin-bottom: 28px;
}
.legal__back:hover, .legal__back:focus-visible { color: var(--accent-1); }
.legal h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 12px; }
.legal__updated { color: var(--muted-on-dark); font-size: 0.92rem; margin-bottom: 40px; }
.legal h2 { font-size: clamp(22px, 3vw, 30px); margin: 40px 0 12px; color: var(--accent-2); }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted-on-dark); }
.legal ul { margin: 0 0 1rem; }
.legal ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.legal ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; transform: translateY(-50%) rotate(45deg);
  border: 1px solid var(--accent-2); border-radius: 2px;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
.reveal.is-revealed { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-y: 88px; }
  .hero__inner { gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* rail becomes bottom tab bar */
  .nav {
    flex-direction: row; height: auto; width: 100%;
    top: auto; bottom: 0; left: 0;
    justify-content: space-between; gap: 10px;
    padding: 10px 16px;
    border-right: none; border-top: 1px solid var(--line-soft);
  }
  .nav__rail-links { flex-direction: row; margin-top: 0; gap: 14px; align-items: center; }
  .nav__rail-links a { writing-mode: horizontal-tb; font-size: 0.9rem; padding: 4px; }
  .nav__cta { writing-mode: horizontal-tb; padding: 10px 16px !important; }
  #main, .footer { margin-left: 0; }
  #main { padding-bottom: 64px; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .zigzag__row { grid-template-columns: 1fr; }
  .zigzag--reverse .zigzag__media { order: -1; }
  .pricing--3col { grid-template-columns: 1fr; }
  .price-card.is-featured { transform: none; }
}

@media (max-width: 480px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .nav__rail-links { gap: 8px; }
  .nav__rail-links a { font-size: 0.82rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .tabs__buttons { display: flex; width: 100%; }
  .tabs__btn { flex: 1; padding: 10px 10px; }
}

/* ============================================================
   Reduced motion — kill all motion, content visible immediately
   ============================================================ */
@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;
  }
  .grid-floor::before { animation: none !important; transform: rotateX(74deg) !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .outline::after { clip-path: inset(0 0 0 0) !important; }
  .tabs__panel.is-active { animation: none !important; }
}
