:root {
  --iw-primary: #8B5CF6;
  --iw-primary-dark: #7C3AED;
  --iw-primary-light: #A78BFA;
  --iw-gold: #EAB308;
  --iw-gold-dark: #CA8A04;
  --iw-charcoal: #F1F5F9;
  --iw-charcoal-light: #E2E8F0;
  --iw-silver: #94A3B8;
  --iw-bg: #0A0A14;
  --iw-surface: #141422;
  --iw-surface-alt: #1C1C30;
  --iw-text: #F1F5F9;
  --iw-text-muted: #94A3B8;
  --iw-border: rgba(139, 92, 246, 0.18);
  --iw-border-mid: rgba(139, 92, 246, 0.35);
  --iw-border-strong: #8B5CF6;
  --iw-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --iw-shadow-hover: 0 8px 24px rgba(139, 92, 246, 0.2);
  --iw-radius: 10px;
  /* Type scale */
  --iw-text-xs: clamp(11px, 1.2vw, 12px);
  --iw-text-sm: clamp(13px, 1.4vw, 14px);
  --iw-text-base: clamp(16px, 1.6vw, 18px);
  --iw-text-lg: clamp(18px, 2vw, 22px);
  --iw-text-xl: clamp(22px, 2.8vw, 28px);
  --iw-text-2xl: clamp(28px, 3.6vw, 40px);
  --iw-text-3xl: clamp(36px, 5vw, 56px);
  --iw-text-display: clamp(48px, 8vw, 96px);
  /* Spacing scale */
  --iw-sp-1: 4px;
  --iw-sp-2: 8px;
  --iw-sp-3: 12px;
  --iw-sp-4: 16px;
  --iw-sp-6: 24px;
  --iw-sp-8: 32px;
  --iw-sp-10: 40px;
  --iw-sp-12: 48px;
  --iw-sp-16: 64px;
  --iw-sp-20: 80px;
  --iw-sp-24: 96px;
  --iw-sp-32: 128px;
  /* Easing */
  --iw-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --iw-ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --iw-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--iw-bg);
}

body {
  margin: 0;
  color: var(--iw-text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.7;
  background: var(--iw-bg);
  min-width: 320px;
  background-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 60%);
  background-attachment: fixed;
}

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

a {
  color: var(--iw-primary);
  text-decoration: none;
}

.iw-skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--iw-charcoal);
  color: #F1F5F9;
  transition: top .18s ease;
}

.iw-skip:focus {
  top: 12px;
}

p {
  margin: 0;
  color: var(--iw-text-muted);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 900;
}

button, input {
  font: inherit;
}

.iw-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px clamp(16px, 3vw, 42px);
  background: rgba(10, 10, 20, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--iw-border);
}

.iw-masthead {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}

.iw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.iw-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(139, 92, 246, .22);
}

.iw-brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.iw-brand span {
  display: block;
  color: var(--iw-text-muted);
  font-size: 12px;
  line-height: 1.2;
}

.iw-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--iw-border);
  border-radius: 50%;
  background: var(--iw-surface-alt);
  color: var(--iw-text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.iw-nav-toggle span,
.iw-nav-toggle::before,
.iw-nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: absolute;
}

.iw-nav-toggle::before { transform: translateY(-6px); }
.iw-nav-toggle::after { transform: translateY(6px); }

.iw-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.iw-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--iw-charcoal-light);
  font-size: 14px;
  font-weight: 600;
}

.iw-nav a:hover,
.iw-nav a:focus-visible {
  color: var(--iw-primary);
  background: rgba(139, 92, 246, .12);
  outline: none;
}

.iw-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px clamp(16px, 3vw, 42px) 80px;
}

.iw-hero,
.iw-page-hero {
  min-height: min(720px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 8vw, 96px) 0 clamp(34px, 6vw, 78px);
  border-bottom: 1px solid var(--iw-border);
}

.iw-page-hero {
  min-height: 520px;
}

.iw-hero-copy {
  max-width: 680px;
}

.iw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--iw-primary);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 13px;
  text-transform: uppercase;
}

.iw-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--iw-primary), var(--iw-gold));
}

.iw-hero h1,
.iw-page-hero h1 {
  max-width: 11ch;
  font-size: clamp(48px, 9vw, 112px);
  color: var(--iw-charcoal);
  text-wrap: balance;
}

.iw-page-hero h1 {
  max-width: 12ch;
  font-size: clamp(42px, 7vw, 82px);
}

.iw-hero p,
.iw-page-hero p {
  max-width: 650px;
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 21px);
}

.iw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.iw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.iw-btn:hover,
.iw-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.iw-btn-primary {
  background: var(--iw-primary);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(139, 92, 246, .3);
  border: 1px solid var(--iw-gold-dark);
}

.iw-btn-primary:hover,
.iw-btn-primary:focus-visible {
  background: var(--iw-primary-dark);
  box-shadow: 0 12px 32px rgba(139, 92, 246, .4);
}

.iw-btn-soft {
  background: rgba(28, 28, 48, .82);
  border-color: var(--iw-border-mid);
  color: var(--iw-text);
}

.iw-btn-soft:hover,
.iw-btn-soft:focus-visible {
  border-color: var(--iw-primary);
  color: var(--iw-primary);
}

.iw-hero-cover {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .2s ease;
}

.iw-hero-cover picture,
.iw-page-hero img {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--iw-shadow-hover);
  border: 1px solid var(--iw-border);
}

.iw-hero-cover img,
.iw-page-hero img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  min-height: 320px;
}

.iw-ticket {
  position: absolute;
  width: min(210px, 44%);
  padding: 14px;
  border-radius: 8px;
  background: rgba(20, 20, 34, .92);
  border: 1px solid var(--iw-border);
  border-top: 3px solid var(--iw-primary);
  box-shadow: var(--iw-shadow-hover);
}

.iw-ticket span {
  display: block;
  color: var(--iw-primary);
  font-size: 12px;
  font-weight: 800;
}

.iw-ticket strong {
  display: block;
  margin-top: 4px;
  line-height: 1.25;
}

.iw-ticket-a {
  top: 28px;
  left: -24px;
}

.iw-ticket-b {
  right: -18px;
  bottom: 40px;
}

.iw-section {
  padding: clamp(42px, 7vw, 92px) 0;
  border-bottom: 1px solid var(--iw-border);
}

.iw-section-head {
  max-width: 740px;
  margin-bottom: 28px;
}

.iw-section-head h2,
.iw-split h2,
.iw-risk h2,
.iw-tool-lane h2 {
  font-size: clamp(30px, 5vw, 58px);
  color: var(--iw-charcoal);
  text-wrap: balance;
}

.iw-section-head p:last-child,
.iw-split p,
.iw-risk p {
  margin-top: 14px;
  font-size: 18px;
}

.iw-runway {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.iw-runway div,
.iw-editorial-grid article,
.iw-market-strip article,
.iw-strip-cards article,
.iw-feed-card a,
.iw-tool-cards a,
.iw-contact-box,
.iw-glossary-grid article,
.iw-map-grid a,
.iw-empty {
  min-height: 160px;
  padding: 22px;
  border-radius: 8px;
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  border-top: 3px solid var(--iw-primary);
  box-shadow: var(--iw-shadow);
}

.iw-runway span,
.iw-editorial-grid span,
.iw-tool-cards span,
.iw-contact-box span,
.iw-glossary-grid span,
.iw-map-grid span,
.iw-feed-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--iw-primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.iw-runway strong,
.iw-editorial-grid strong,
.iw-feed-card strong,
.iw-tool-cards strong,
.iw-contact-box strong,
.iw-map-grid strong {
  display: block;
  color: var(--iw-charcoal);
  font-size: 21px;
  line-height: 1.25;
}

.iw-runway p,
.iw-editorial-grid p,
.iw-market-strip p,
.iw-strip-cards p,
.iw-feed-card p,
.iw-tool-cards p,
.iw-contact-box p,
.iw-map-grid p {
  margin-top: 10px;
}

.iw-editorial-grid,
.iw-feed-grid,
.iw-tool-cards,
.iw-contact-grid,
.iw-glossary-grid,
.iw-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.iw-editorial-grid article:nth-child(2),
.iw-tool-cards a:nth-child(2),
.iw-glossary-grid article:nth-child(3n+2) {
  background: var(--iw-surface-alt);
  border-top-color: var(--iw-gold);
}

.iw-editorial-grid article:nth-child(3),
.iw-tool-cards a:nth-child(3),
.iw-glossary-grid article:nth-child(3n) {
  background: var(--iw-surface);
  border-top-color: var(--iw-charcoal);
}

.iw-split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.iw-copy-stack {
  display: grid;
  gap: 18px;
}

.iw-market-strip,
.iw-strip-cards {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 16px;
}

.iw-market-strip article:first-child,
.iw-strip-cards article:first-child {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(10, 10, 20, .2), rgba(10, 10, 20, .85)),
    url("/images/category-world-cup-fast.webp") center / cover;
  color: #FFFFFF;
  border-top: 3px solid var(--iw-gold);
}

.iw-market-strip article:first-child p,
.iw-market-strip article:first-child h3,
.iw-strip-cards article:first-child p,
.iw-strip-cards article:first-child h3 {
  color: #FFFFFF;
}

.iw-market-strip h3,
.iw-strip-cards h3 {
  margin: 10px 0;
  font-size: clamp(24px, 4vw, 38px);
}

.iw-odds-stage {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.iw-odds-card {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(234, 179, 8, .08));
  border: 1px solid var(--iw-border);
  border-left: 4px solid var(--iw-primary);
}

.iw-odds-card h2 {
  font-size: clamp(30px, 5vw, 56px);
}

.iw-odds-card p {
  margin-top: 14px;
  font-size: 18px;
}

.iw-odds-table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--iw-border);
  background: var(--iw-surface);
}

.iw-odds-row {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--iw-border);
}

.iw-odds-row:last-child {
  border-bottom: 0;
}

.iw-odds-row strong {
  color: var(--iw-charcoal);
}

.iw-safety {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
}

.iw-safety-list {
  display: grid;
  gap: 12px;
}

.iw-safety-list li {
  list-style: none;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  border-left: 3px solid var(--iw-gold);
}

.iw-feed-card a,
.iw-tool-cards a,
.iw-map-grid a {
  display: block;
  height: 100%;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.iw-feed-card a:hover,
.iw-tool-cards a:hover,
.iw-map-grid a:hover,
.iw-feed-card a:focus-visible,
.iw-tool-cards a:focus-visible,
.iw-map-grid a:focus-visible {
  transform: translateY(-4px);
  border-color: var(--iw-border-mid);
  box-shadow: var(--iw-shadow-hover);
  outline: none;
}

.iw-empty {
  grid-column: 1 / -1;
  min-height: 140px;
  background: var(--iw-surface-alt);
  border-top: 3px solid var(--iw-silver);
}

.iw-empty strong {
  display: block;
  font-size: 24px;
}

.iw-risk {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  align-items: center;
  padding-left: clamp(20px, 4vw, 42px);
  padding-right: clamp(20px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(139, 26, 26, .06), rgba(234, 179, 8, .06)),
    var(--iw-surface);
  border: 1px solid var(--iw-border);
  border-left: 4px solid var(--iw-primary);
  border-radius: 8px;
  margin: clamp(34px, 5vw, 62px) 0;
}

.iw-risk ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.iw-risk li {
  list-style: none;
  padding: 14px 16px;
  background: var(--iw-surface);
  border-radius: 8px;
  border: 1px solid var(--iw-border);
}

.iw-faq-list {
  display: grid;
  gap: 10px;
}

.iw-faq details {
  border-radius: 8px;
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  overflow: hidden;
}

.iw-faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.iw-faq details p {
  padding: 0 20px 20px;
}

.iw-tool-lane {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 28px;
  align-items: start;
}

.iw-tool-panel {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(280px, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.iw-tool-form,
.iw-check-tool,
.iw-tool-result,
.iw-search-panel {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  border: 1px solid var(--iw-border);
  background: var(--iw-surface);
  box-shadow: var(--iw-shadow);
}

.iw-tool-form,
.iw-check-tool {
  display: grid;
  gap: 14px;
}

.iw-tool-form label,
.iw-search-panel label {
  display: grid;
  gap: 8px;
  color: var(--iw-charcoal);
  font-weight: 800;
}

.iw-tool-form input,
.iw-search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--iw-border-mid);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--iw-surface-alt);
  color: var(--iw-text);
}

.iw-tool-form input:focus,
.iw-search-panel input:focus {
  border-color: var(--iw-primary);
  outline: 2px solid rgba(139, 92, 246, .2);
}

.iw-tool-result {
  min-height: 260px;
  display: grid;
  align-content: center;
}

.iw-result-number {
  display: block;
  margin: 8px 0;
  color: var(--iw-primary);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  font-weight: 900;
}

.iw-check-tool label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  background: var(--iw-surface-alt);
  border: 1px solid var(--iw-border);
  color: var(--iw-text);
  font-weight: 700;
}

.iw-check-tool input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--iw-primary);
  flex: 0 0 auto;
}

.iw-author-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 8px;
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  border-left: 4px solid var(--iw-gold);
}

.iw-author-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.iw-author-card h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.iw-author-card .iw-btn {
  margin-top: 18px;
}

.iw-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iw-contact-box a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--iw-primary);
  font-weight: 900;
}

.iw-prose {
  max-width: 820px;
}

.iw-prose h2 {
  margin: 28px 0 10px;
  font-size: clamp(24px, 4vw, 36px);
}

.iw-prose p {
  margin: 0 0 14px;
}

.iw-prose a {
  color: var(--iw-primary);
  font-weight: 800;
}

.iw-prose a:hover {
  color: var(--iw-primary-dark);
}
.iw-prose table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.iw-prose th { background: var(--iw-primary); color: white; padding: 10px 14px; font-weight: 700; text-align: left; font-size: 0.875rem; }
.iw-prose td { padding: 10px 14px; border-bottom: 1px solid var(--iw-border); font-size: 0.875rem; color: var(--iw-text); }
.iw-prose tr:nth-child(even) td { background: rgba(139,92,246,.1); }

.iw-glossary-grid article {
  min-height: 150px;
}

.iw-glossary-grid article p {
  margin-top: 8px;
}

.iw-glossary-list dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.iw-term {
  min-height: 190px;
  padding: 22px;
  border-radius: 8px;
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  border-top: 3px solid var(--iw-primary);
  box-shadow: var(--iw-shadow);
}

.iw-term dt {
  color: var(--iw-primary);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.iw-term dd {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.iw-term dd span {
  color: var(--iw-charcoal);
  font-weight: 800;
}

.iw-search-panel {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.iw-search-results {
  display: grid;
  gap: 10px;
}

.iw-search-results a,
.iw-search-results p {
  display: block;
  padding: 14px;
  border-radius: 8px;
  background: var(--iw-surface-alt);
  border: 1px solid var(--iw-border);
}

.iw-search-results strong {
  display: block;
}

.iw-site-footer {
  padding: 44px clamp(16px, 3vw, 42px);
  background: #08080F;
  color: #F1F5F9;
  border-top: 3px solid var(--iw-primary);
}

.iw-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
}

.iw-footer-inner p,
.iw-site-footer a {
  color: rgba(241, 245, 249, .5);
}

.iw-site-footer a:hover {
  color: var(--iw-gold);
}

.iw-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.iw-footer-links strong {
  display: block;
  margin-bottom: 8px;
  color: var(--iw-gold);
}

.iw-footer-links a {
  display: block;
  margin: 5px 0;
}

.iw-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .iw-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .iw-masthead {
    grid-template-columns: 1fr auto;
  }

  .iw-nav-toggle {
    display: inline-flex;
    position: relative;
  }

  .iw-nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 12px;
  }

  .iw-nav.is-open {
    display: flex;
  }

  .iw-hero,
  .iw-page-hero,
  .iw-split,
  .iw-odds-stage,
  .iw-safety,
  .iw-risk,
  .iw-tool-lane,
  .iw-tool-panel,
  .iw-footer-inner {
    grid-template-columns: 1fr;
  }

  .iw-hero,
  .iw-page-hero {
    min-height: auto;
  }

  .iw-ticket-a {
    left: 12px;
  }

  .iw-ticket-b {
    right: 12px;
  }

  .iw-runway,
  .iw-editorial-grid,
  .iw-feed-grid,
  .iw-tool-cards,
  .iw-glossary-grid,
  .iw-map-grid,
  .iw-market-strip,
  .iw-strip-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iw-market-strip article:first-child,
  .iw-strip-cards article:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .iw-site-header {
    padding: 12px 16px;
  }

  .iw-main {
    padding-top: 20px;
  }

  .iw-brand {
    min-width: 0;
  }

  .iw-brand strong {
    font-size: 15px;
  }

  .iw-brand span {
    display: none;
  }

  .iw-hero h1,
  .iw-page-hero h1 {
    max-width: 100%;
    font-size: 42px;
  }

  .iw-hero p,
  .iw-page-hero p,
  .iw-section-head p:last-child,
  .iw-split p,
  .iw-risk p {
    font-size: 16px;
  }

  .iw-actions,
  .iw-btn {
    width: 100%;
  }

  .iw-runway,
  .iw-editorial-grid,
  .iw-feed-grid,
  .iw-tool-cards,
  .iw-contact-grid,
  .iw-glossary-grid,
  .iw-glossary-list dl,
  .iw-map-grid,
  .iw-market-strip,
  .iw-strip-cards,
  .iw-footer-links,
  .iw-author-card {
    grid-template-columns: 1fr;
  }

  .iw-ticket {
    position: static;
    width: auto;
    margin-top: 10px;
  }

  .iw-hero-cover img,
  .iw-page-hero img {
    min-height: 240px;
  }

  .iw-odds-row {
    grid-template-columns: 1fr;
  }

  .iw-author-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — LUXURY MAGAZINE EDITORIAL  (iw-hp-*)
   ═══════════════════════════════════════════════════════════ */

/* ── Hero: full-bleed dark centred editorial ───────────────── */
.iw-hp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(88vh, 860px);
  padding: var(--iw-sp-24) var(--iw-sp-6);
  border-bottom: 1px solid var(--iw-border);
  position: relative;
  overflow: hidden;
}

.iw-hp-hero::after {
  content: "";
  position: absolute;
  bottom: 38%;
  left: 50%;
  translate: -50% 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--iw-gold), transparent);
}

.iw-hp-hero .iw-kicker {
  justify-content: center;
}

.iw-hp-hero-title {
  max-width: 14ch;
  margin: 0 auto;
  font-family: Georgia, "Noto Serif TC", "Times New Roman", serif;
  font-size: var(--iw-text-display);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--iw-charcoal);
  text-wrap: balance;
}

.iw-hp-hero-sub {
  max-width: 540px;
  margin: var(--iw-sp-8) auto 0;
  font-size: var(--iw-text-lg);
  line-height: 1.7;
  color: var(--iw-text-muted);
}

.iw-hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--iw-sp-3);
  justify-content: center;
  margin-top: var(--iw-sp-10);
}

/* ── Overline label (small caps gold) ──────────────────────── */
.iw-hp-overline {
  display: block;
  margin-bottom: var(--iw-sp-3);
  font-size: var(--iw-text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iw-gold);
}

/* ── Runway: horizontal numbered steps ─────────────────────── */
.iw-hp-runway {
  padding: var(--iw-sp-16) 0;
  border-bottom: 1px solid var(--iw-border);
}

.iw-hp-runway-inner {
  display: flex;
  gap: 0;
  counter-reset: runway;
}

.iw-hp-runway-item {
  flex: 1;
  position: relative;
  padding: var(--iw-sp-8) var(--iw-sp-6);
  counter-increment: runway;
}

.iw-hp-runway-item::before {
  content: counter(runway, decimal-leading-zero);
  display: block;
  margin-bottom: var(--iw-sp-3);
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-3xl);
  font-weight: 900;
  color: var(--iw-primary);
  opacity: 0.25;
  line-height: 1;
}

.iw-hp-runway-item + .iw-hp-runway-item {
  border-left: 1px solid var(--iw-border);
}

.iw-hp-runway-item strong {
  display: block;
  font-size: var(--iw-text-xl);
  color: var(--iw-charcoal);
  margin-bottom: var(--iw-sp-2);
}

.iw-hp-runway-item p {
  font-size: var(--iw-text-sm);
  color: var(--iw-text-muted);
}

/* ── Editorial feature: asymmetric 2-col ──────────────────── */
.iw-hp-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: var(--iw-sp-20) 0;
  border-bottom: 1px solid var(--iw-border);
}

.iw-hp-editorial-head {
  max-width: 680px;
  margin-bottom: var(--iw-sp-12);
}

.iw-hp-editorial-head h2 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-3xl);
  color: var(--iw-charcoal);
  line-height: 1.1;
  text-wrap: balance;
}

.iw-hp-editorial-head > p {
  margin-top: var(--iw-sp-4);
  font-size: var(--iw-text-base);
  max-width: 600px;
}

.iw-hp-editorial-blocks {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--iw-sp-4);
}

.iw-hp-ed-block {
  padding: var(--iw-sp-8) var(--iw-sp-6);
  border-radius: var(--iw-radius);
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
}

.iw-hp-ed-block:first-child {
  grid-row: 1 / 3;
  min-height: 400px;
  background: linear-gradient(160deg, var(--iw-surface-alt), var(--iw-surface));
  border-left: 3px solid var(--iw-gold);
}

.iw-hp-ed-block span {
  display: block;
  font-size: var(--iw-text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--iw-primary);
  margin-bottom: var(--iw-sp-2);
}

.iw-hp-ed-block strong {
  display: block;
  font-size: var(--iw-text-lg);
  color: var(--iw-charcoal);
  line-height: 1.3;
}

.iw-hp-ed-block p {
  margin-top: var(--iw-sp-2);
  font-size: var(--iw-text-sm);
}

/* ── Split section: text + image (alternating) ─────────────── */
.iw-hp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--iw-sp-12);
  align-items: center;
  padding: var(--iw-sp-20) 0;
  border-bottom: 1px solid var(--iw-border);
}

.iw-hp-split--reverse {
  direction: rtl;
}

.iw-hp-split--reverse > * {
  direction: ltr;
}

.iw-hp-split-copy h2 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-2xl);
  color: var(--iw-charcoal);
  line-height: 1.15;
  text-wrap: balance;
}

.iw-hp-split-copy > p {
  margin-top: var(--iw-sp-4);
  font-size: var(--iw-text-base);
  max-width: 520px;
}

.iw-hp-split-copy .iw-check-list {
  margin-top: var(--iw-sp-6);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--iw-sp-3);
}

.iw-hp-split-copy .iw-check-list li {
  padding-left: var(--iw-sp-6);
  position: relative;
  font-size: var(--iw-text-sm);
  color: var(--iw-text-muted);
}

.iw-hp-split-copy .iw-check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--iw-gold);
  font-weight: 900;
}

.iw-hp-split-visual {
  overflow: hidden;
  border-radius: var(--iw-radius);
}

.iw-hp-split-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--iw-radius);
  border: 1px solid var(--iw-border);
}

/* ── Market strip: staggered cards ─────────────────────────── */
.iw-hp-markets {
  padding: var(--iw-sp-20) 0;
  border-bottom: 1px solid var(--iw-border);
}

.iw-hp-markets-head {
  max-width: 680px;
  margin-bottom: var(--iw-sp-12);
}

.iw-hp-markets-head h2 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-3xl);
  color: var(--iw-charcoal);
  line-height: 1.1;
}

.iw-hp-markets-head > p {
  margin-top: var(--iw-sp-4);
  font-size: var(--iw-text-base);
}

.iw-hp-market-stagger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--iw-sp-4);
}

.iw-hp-market-card {
  border-radius: var(--iw-radius);
  overflow: hidden;
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  transition: transform 0.3s var(--iw-ease-out-expo), box-shadow 0.3s ease;
}

.iw-hp-market-card:nth-child(2) {
  transform: translateY(var(--iw-sp-8));
}

.iw-hp-market-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--iw-shadow-hover);
}

.iw-hp-market-card:nth-child(2):hover {
  transform: translateY(calc(var(--iw-sp-8) - 4px));
}

.iw-hp-market-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.iw-hp-market-card-body {
  padding: var(--iw-sp-6);
}

.iw-hp-market-card-body h3 {
  font-size: var(--iw-text-lg);
  color: var(--iw-charcoal);
  line-height: 1.25;
}

.iw-hp-market-card-body p {
  margin-top: var(--iw-sp-2);
  font-size: var(--iw-text-sm);
}

/* ── Odds: wide table with left accent bar ─────────────────── */
.iw-hp-odds {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: var(--iw-sp-10);
  align-items: start;
  padding: var(--iw-sp-20) 0;
  border-bottom: 1px solid var(--iw-border);
}

.iw-hp-odds-intro h2 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-2xl);
  color: var(--iw-charcoal);
  line-height: 1.15;
}

.iw-hp-odds-intro > p {
  margin-top: var(--iw-sp-4);
  font-size: var(--iw-text-base);
}

.iw-hp-odds-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-radius: var(--iw-radius);
  overflow: hidden;
  border: 1px solid var(--iw-border);
  background: var(--iw-surface);
}

.iw-hp-odds-table .iw-hp-ot-head {
  padding: var(--iw-sp-4) var(--iw-sp-6);
  background: var(--iw-surface-alt);
  font-size: var(--iw-text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--iw-gold);
  border-bottom: 1px solid var(--iw-border);
}

.iw-hp-odds-table .iw-hp-ot-cell {
  padding: var(--iw-sp-4) var(--iw-sp-6);
  font-size: var(--iw-text-sm);
  color: var(--iw-text);
  border-bottom: 1px solid var(--iw-border);
}

.iw-hp-odds-table .iw-hp-ot-cell:nth-child(3n+1) {
  color: var(--iw-charcoal);
  font-weight: 700;
}

.iw-hp-odds-table .iw-hp-ot-row-last {
  border-bottom: none;
}

/* ── Safety: centred narrow column with side accent ────────── */
.iw-hp-safety {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--iw-sp-10);
  align-items: center;
  padding: var(--iw-sp-20) 0;
  border-bottom: 1px solid var(--iw-border);
}

.iw-hp-safety-copy h2 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-2xl);
  color: var(--iw-charcoal);
  line-height: 1.15;
}

.iw-hp-safety-copy > p {
  margin-top: var(--iw-sp-4);
  font-size: var(--iw-text-base);
  max-width: 520px;
}

.iw-hp-safety-copy .iw-btn {
  margin-top: var(--iw-sp-8);
}

.iw-hp-safety-visual {
  overflow: hidden;
  border-radius: var(--iw-radius);
}

.iw-hp-safety-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--iw-border);
  border-radius: var(--iw-radius);
}

/* ── Insights feed: single feature + sidebar list ─────────── */
.iw-hp-feed {
  padding: var(--iw-sp-20) 0;
  border-bottom: 1px solid var(--iw-border);
}

.iw-hp-feed-head {
  max-width: 680px;
  margin-bottom: var(--iw-sp-10);
}

.iw-hp-feed-head h2 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-3xl);
  color: var(--iw-charcoal);
  line-height: 1.1;
}

.iw-hp-feed-head > p {
  margin-top: var(--iw-sp-4);
  font-size: var(--iw-text-base);
}

.iw-hp-feed-empty {
  padding: var(--iw-sp-10) var(--iw-sp-8);
  border-radius: var(--iw-radius);
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  border-left: 3px solid var(--iw-gold);
}

.iw-hp-feed-empty p {
  font-size: var(--iw-text-base);
  max-width: 560px;
}

.iw-hp-feed-empty .iw-btn {
  margin-top: var(--iw-sp-6);
}

.iw-hp-feed-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--iw-sp-4);
}

.iw-hp-feed-grid article:first-child {
  grid-row: 1 / 4;
}

.iw-hp-feed-grid article a {
  display: block;
  height: 100%;
  padding: var(--iw-sp-6);
  border-radius: var(--iw-radius);
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.iw-hp-feed-grid article a:hover {
  transform: translateY(-3px);
  border-color: var(--iw-border-mid);
}

.iw-hp-feed-grid article a h3 {
  font-size: var(--iw-text-lg);
  color: var(--iw-charcoal);
}

.iw-hp-feed-grid article a p {
  margin-top: var(--iw-sp-2);
  font-size: var(--iw-text-sm);
}

/* ── Risk: full-width banner callout ───────────────────────── */
.iw-hp-risk {
  padding: var(--iw-sp-16) var(--iw-sp-8);
  margin: var(--iw-sp-12) 0;
  border-radius: var(--iw-radius);
  background: linear-gradient(135deg, rgba(139, 26, 26, 0.06), rgba(234, 179, 8, 0.06)), var(--iw-surface);
  border: 1px solid var(--iw-border);
  border-left: 4px solid var(--iw-gold);
  text-align: center;
}

.iw-hp-risk h2 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-2xl);
  color: var(--iw-charcoal);
}

.iw-hp-risk > p {
  max-width: 620px;
  margin: var(--iw-sp-4) auto 0;
  font-size: var(--iw-text-base);
}

/* ── FAQ: narrow centred column ────────────────────────────── */
.iw-hp-faq {
  padding: var(--iw-sp-20) 0;
  border-bottom: 1px solid var(--iw-border);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.iw-hp-faq-head {
  margin-bottom: var(--iw-sp-10);
  text-align: center;
}

.iw-hp-faq-head h2 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-2xl);
  color: var(--iw-charcoal);
}

.iw-hp-faq-list {
  display: grid;
  gap: var(--iw-sp-3);
}

.iw-hp-faq-list details {
  border-radius: var(--iw-radius);
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  overflow: hidden;
}

.iw-hp-faq-list summary {
  cursor: pointer;
  padding: var(--iw-sp-4) var(--iw-sp-6);
  font-weight: 800;
  color: var(--iw-charcoal);
  font-size: var(--iw-text-base);
}

.iw-hp-faq-list details p {
  padding: 0 var(--iw-sp-6) var(--iw-sp-6);
  font-size: var(--iw-text-sm);
}

/* ── Tools: 2-col feature + single sidebar ─────────────────── */
.iw-hp-tools {
  padding: var(--iw-sp-20) 0;
  border-bottom: 1px solid var(--iw-border);
}

.iw-hp-tools-head {
  max-width: 680px;
  margin-bottom: var(--iw-sp-10);
}

.iw-hp-tools-head h2 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-3xl);
  color: var(--iw-charcoal);
}

.iw-hp-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--iw-sp-4);
}

.iw-hp-tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--iw-sp-8) var(--iw-sp-6);
  border-radius: var(--iw-radius);
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  min-height: 200px;
  transition: transform 0.2s var(--iw-ease-out-expo), border-color 0.2s ease;
}

.iw-hp-tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--iw-border-mid);
  box-shadow: var(--iw-shadow-hover);
}

.iw-hp-tool-card:nth-child(1) { border-top: 3px solid var(--iw-primary); }
.iw-hp-tool-card:nth-child(2) { border-top: 3px solid var(--iw-gold); }
.iw-hp-tool-card:nth-child(3) { border-top: 3px solid var(--iw-charcoal); }

.iw-hp-tool-num {
  display: block;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-3xl);
  font-weight: 900;
  color: var(--iw-primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--iw-sp-4);
}

.iw-hp-tool-card strong {
  display: block;
  font-size: var(--iw-text-lg);
  color: var(--iw-charcoal);
  margin-bottom: var(--iw-sp-2);
}

.iw-hp-tool-card p {
  font-size: var(--iw-text-sm);
}

/* ── Route map: 3×2 pill links ─────────────────────────────── */
.iw-hp-route {
  padding: var(--iw-sp-20) 0;
  border-bottom: 1px solid var(--iw-border);
}

.iw-hp-route-head {
  text-align: center;
  margin-bottom: var(--iw-sp-10);
}

.iw-hp-route-head h2 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: var(--iw-text-2xl);
  color: var(--iw-charcoal);
}

.iw-hp-route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--iw-sp-3);
  max-width: 900px;
  margin: 0 auto;
}

.iw-hp-route-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
  padding: var(--iw-sp-4) var(--iw-sp-6);
  border-radius: 999px;
  background: var(--iw-surface);
  border: 1px solid var(--iw-border);
  color: var(--iw-charcoal);
  font-weight: 700;
  font-size: var(--iw-text-sm);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.iw-hp-route-grid a:hover {
  background: var(--iw-surface-alt);
  border-color: var(--iw-border-mid);
  transform: translateY(-2px);
}

/* ── CTA: centered with generous padding ───────────────────── */
.iw-hp-cta {
  text-align: center;
  padding: var(--iw-sp-24) var(--iw-sp-6);
}

/* ── Homepage responsive — 980px ───────────────────────────── */
@media (max-width: 980px) {
  .iw-hp-hero {
    min-height: auto;
    padding: var(--iw-sp-16) var(--iw-sp-4);
  }

  .iw-hp-runway-inner {
    flex-direction: column;
  }

  .iw-hp-runway-item + .iw-hp-runway-item {
    border-left: none;
    border-top: 1px solid var(--iw-border);
  }

  .iw-hp-editorial-blocks {
    grid-template-columns: 1fr;
  }

  .iw-hp-ed-block:first-child {
    grid-row: auto;
    min-height: 260px;
  }

  .iw-hp-split {
    grid-template-columns: 1fr;
    gap: var(--iw-sp-8);
  }

  .iw-hp-split--reverse {
    direction: ltr;
  }

  .iw-hp-market-stagger {
    grid-template-columns: 1fr 1fr;
  }

  .iw-hp-market-card:nth-child(2) {
    transform: none;
  }

  .iw-hp-market-card:nth-child(2):hover {
    transform: translateY(-4px);
  }

  .iw-hp-market-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .iw-hp-odds {
    grid-template-columns: 1fr;
  }

  .iw-hp-safety {
    grid-template-columns: 1fr;
  }

  .iw-hp-feed-grid {
    grid-template-columns: 1fr;
  }

  .iw-hp-feed-grid article:first-child {
    grid-row: auto;
  }

  .iw-hp-tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .iw-hp-route-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Homepage responsive — 640px ───────────────────────────── */
@media (max-width: 640px) {
  .iw-hp-hero-title {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 52px);
  }

  .iw-hp-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .iw-hp-hero-actions .iw-btn {
    width: 100%;
  }

  .iw-hp-market-stagger {
    grid-template-columns: 1fr;
  }

  .iw-hp-market-card:nth-child(3) {
    grid-column: auto;
  }

  .iw-hp-odds-table {
    grid-template-columns: 1fr;
  }

  .iw-hp-odds-table .iw-hp-ot-head:nth-child(2),
  .iw-hp-odds-table .iw-hp-ot-head:nth-child(3) {
    display: none;
  }

  .iw-hp-odds-table .iw-hp-ot-cell {
    display: block;
  }

  .iw-hp-tools-grid {
    grid-template-columns: 1fr;
  }

  .iw-hp-route-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOTION & LUXURY EFFECTS  (iw-motion.js companion)
   ═══════════════════════════════════════════════════════════ */

/* ── Noise grain overlay ─────────────────────────────────── */
.iw-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

/* ── Split-text word spans ───────────────────────────────── */
.iw-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  will-change: transform, opacity, filter;
}

.iw-word.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Gold shimmer on primary buttons ─────────────────────── */
@keyframes iw-shimmer {
  0%   { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(200%) rotate(25deg); }
}

.iw-shimmer-ready {
  position: relative;
  overflow: hidden;
}

.iw-shimmer-ready::after {
  content: "";
  position: absolute;
  inset: -50% -50%;
  width: 50%;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 45%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.18) 55%,
    transparent 65%
  );
  transform: translateX(-100%) rotate(25deg);
  pointer-events: none;
  transition: none;
}

.iw-shimmer-ready:hover::after {
  animation: iw-shimmer 0.75s ease-out forwards;
}

/* ── Enhanced card hover glow ────────────────────────────── */
.iw-runway div:hover,
.iw-editorial-grid article:hover,
.iw-feed-card a:hover,
.iw-tool-cards a:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

/* ── Custom scrollbar ────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

/* ── Text selection ──────────────────────────────────────── */
::selection {
  background: #8B5CF6;
  color: #FFFFFF;
}

::-moz-selection {
  background: #8B5CF6;
  color: #FFFFFF;
}

/* ── Parallax container overflow control ─────────────────── */
.iw-parallax-wrap {
  overflow: hidden;
}

.iw-parallax-wrap img {
  will-change: transform;
}

/* ── Hero ambient purple glow ────────────────────────────── */
@keyframes iw-glow-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.08;
  }
  33% {
    transform: translate(3%, -4%) scale(1.05);
    opacity: 0.12;
  }
  66% {
    transform: translate(-2%, 3%) scale(0.97);
    opacity: 0.07;
  }
}

.iw-hero::before,
.iw-page-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: iw-glow-drift 12s ease-in-out infinite;
}

.iw-hero,
.iw-page-hero {
  position: relative;
  overflow: hidden;
}

/* ── Reduced motion: disable all motion additions ────────── */
@media (prefers-reduced-motion: reduce) {
  .iw-word {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .iw-shimmer-ready:hover::after {
    animation: none;
  }

  .iw-hero::before,
  .iw-page-hero::before {
    animation: none;
    opacity: 0.06;
    transform: none;
  }

  .iw-parallax-wrap img {
    will-change: auto;
  }

  .iw-grain {
    display: none;
  }
}
