#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden; background: var(--bg);
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top; opacity: .45; transition: opacity 1s;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,8,13,.95) 40%, rgba(6,8,13,.3) 100%);
  z-index: 1;
}
#hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 220px;
  background: linear-gradient(to top, var(--bg), transparent); z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 80px 80px 100px; }
.hero-eyebrow {
  font-family: var(--ff-body); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px; opacity: .85;
}
.hero-title {
  font-family: var(--ff-display); font-size: clamp(48px, 7vw, 96px);
  font-weight: 900; line-height: 1.0; color: var(--white);
  text-shadow: 0 0 60px rgba(201,168,76,.2); margin-bottom: 12px;
}
.hero-title span { color: var(--gold); display: block; font-size: clamp(32px, 4.5vw, 64px); margin-top: 4px; }
.hero-sub { font-family: var(--ff-body); font-size: 18px; font-weight: 300; color: var(--text); max-width: 520px; margin: 22px 0 36px; line-height: 1.6; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.stars { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.star { position: absolute; background: #fff; border-radius: 50%; animation: twinkle var(--d, 3s) var(--delay, 0s) infinite alternate; }
@keyframes twinkle { from { opacity: .1; } to { opacity: .8; } }

/* ---------- BECOME A JEDI (home) ---------- */
#become { position: relative; min-height: 80vh; display: flex; align-items: center; overflow: hidden; }
.become-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: .28; }
#become::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,8,13,.97) 45%, rgba(6,8,13,.2) 100%); z-index: 1; }
.become-content { position: relative; z-index: 2; max-width: 560px; padding: 80px 80px; }
.become-content h2 { font-family: var(--ff-display); font-size: clamp(36px, 5vw, 72px); font-weight: 900; line-height: 1.0; color: var(--white); margin-bottom: 24px; }
.become-content p { font-family: var(--ff-body); font-size: 18px; font-weight: 300; color: var(--text); margin-bottom: 32px; line-height: 1.65; }

/* ---------- LIGHTSABER (home) ---------- */
#lightsaber-wrap { position: relative; }
#lightsaber { position: relative; min-height: 80vh; display: flex; align-items: center; overflow: hidden; }
.lightsaber-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .18; }
#lightsaber::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,8,13,.96) 50%, rgba(6,8,13,.5) 100%); z-index: 1; }
.lightsaber-content { position: relative; z-index: 2; max-width: 560px; padding: 80px 80px; }
.lightsaber-content h2 { font-family: var(--ff-display); font-size: clamp(36px, 5vw, 72px); font-weight: 900; line-height: 1.05; color: var(--white); margin-bottom: 24px; }
.lightsaber-content h2 span { color: var(--gold); }
.lightsaber-content p { font-family: var(--ff-body); font-size: 18px; font-weight: 300; color: var(--text); margin-bottom: 32px; line-height: 1.65; }
.lightsaber-content .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.lightsaber-right-img { position: absolute; right: 0; bottom: 0; height: 100%; max-width: 55%; object-fit: contain; object-position: right bottom; opacity: .75; z-index: 2; pointer-events: none; }
.platform-logos {
  position: relative; z-index: 3; display: flex; gap: 24px; align-items: center;
  padding: 20px 80px; background: rgba(13,17,23,.85);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.platform-logos img { height: 32px; width: auto; object-fit: contain; opacity: .7; filter: brightness(0) invert(1); transition: opacity .2s; }
.platform-logos img:hover { opacity: 1; }
.platform-logos span {
  font-family: var(--ff-body); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
  position: relative; transition: color .2s;
}
.platform-logos span:not(:last-child)::after {
  content: ''; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: var(--border);
}
.platform-logos span:hover { color: var(--gold); }

/* ---------- CARDS (home) ---------- */
#cards { padding: 100px 80px; background: var(--surface); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card { position: relative; overflow: hidden; background: var(--surface2); border: 1px solid var(--border); cursor: pointer; transition: border-color .3s, transform .3s; }
.card:hover { border-color: var(--gold); transform: translateY(-4px); }
.card > img { width: 100%; height: 280px; object-fit: cover; transition: transform .5s; }
.card:hover > img { transform: scale(1.04); }
.card-gradient { position: absolute; bottom: 0; left: 0; right: 0; height: 70%; background: linear-gradient(to top, rgba(6,8,13,.95), transparent); }
.card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 28px 28px; z-index: 2; }
.card-body h3 { font-family: var(--ff-display); font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.card-body p { font-family: var(--ff-body); font-size: 14px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }
.card-btns { display: flex; gap: 10px; }
.card-btns .btn-gold, .card-btns .btn-outline { padding: 8px 16px; font-size: 11px; }

/* ---------- DETAILS / TABS + GALLERY (home) ---------- */
#details { padding: 100px 80px; background: var(--bg); }
.details-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.tabs-nav { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 36px; gap: 0; }
.tab-btn {
  background: none; border: none; padding: 12px 22px;
  font-family: var(--ff-body); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h3 { font-family: var(--ff-display); font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.tab-panel p { font-family: var(--ff-body); font-size: 16px; font-weight: 300; color: var(--text); margin-bottom: 28px; line-height: 1.7; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 12px 16px; font-family: var(--ff-body); font-size: 14px; border-bottom: 1px solid var(--border); }
.info-table td:first-child { color: var(--text-muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; width: 45%; }
.info-table td:last-child { color: var(--white); font-weight: 500; }
.gallery-img { width: 100%; height: 340px; object-fit: cover; border: 1px solid var(--border); transition: opacity .3s; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumbs img { flex: 1; height: 80px; object-fit: cover; border: 2px solid transparent; cursor: pointer; transition: border-color .2s, opacity .2s; opacity: .55; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--gold); opacity: 1; }

/* ---------- NEWS (home + news page) ---------- */
#news { padding: 100px 80px; background: var(--surface); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.news-card { background: var(--surface2); border: 1px solid var(--border); overflow: hidden; transition: border-color .3s, transform .3s; }
.news-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.news-card > img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s; }
.news-card:hover > img { transform: scale(1.04); }
.news-card-body { padding: 22px 22px 26px; }
.news-date { font-family: var(--ff-body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; opacity: .8; }
.news-headline { font-family: var(--ff-display); font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.news-excerpt { font-family: var(--ff-body); font-size: 14px; font-weight: 300; color: var(--text-muted); line-height: 1.6; }

/* ---------- PRODUCTS / COLLECTION (home) ---------- */
#products { padding: 100px 80px; background: var(--bg); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 8px; }
.product-cell { position: relative; overflow: hidden; background: var(--surface2); border: 1px solid var(--border); transition: border-color .3s; cursor: pointer; }
.product-cell:hover { border-color: var(--gold); }
.product-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; opacity: .55; }
.product-cell:hover img { transform: scale(1.06); opacity: .9; }
.product-cell span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 12px 12px;
  background: linear-gradient(to top, rgba(6,8,13,.94), transparent);
  font-family: var(--ff-body); font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--white); text-align: center;
}

@media (max-width: 900px) {
  .hero-content { padding: 60px 28px 80px; }
  .become-content, .lightsaber-content { padding: 60px 28px; }
  .lightsaber-right-img { opacity: .25; max-width: 100%; }
  #cards, #details, #news, #products { padding: 60px 24px; }
  .details-inner { grid-template-columns: 1fr; gap: 40px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .platform-logos { padding: 16px 24px; }
}
@media (max-width: 540px) {
  .hero-title { font-size: 36px; }
  .products-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SHARED INNER-PAGE TEMPLATE (every sub-page: story, gameplay,
   editions, news, about, universe, presskit, buy, support, etc.)
   ============================================================ */

.page-hero {
  position: relative;
  padding: 110px 80px 70px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201,168,76,.12), transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.page-title {
  font-family: var(--ff-display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}
.page-sub {
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--text);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.page-content { padding: 80px 80px 100px; background: var(--bg); }
.content-block { max-width: 820px; margin: 0 0 56px; }
.content-block:last-child { margin-bottom: 0; }
.content-block h2 {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.content-block p {
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}
.content-block a.inline-link { color: var(--gold); border-bottom: 1px solid var(--border); }
.content-block a.inline-link:hover { color: var(--gold-light); border-color: var(--gold); }

/* Generic data table used on About / Gameplay / Editions pages */
.data-table { width: 100%; max-width: 720px; border-collapse: collapse; margin-top: 8px; }
.data-table td, .data-table th {
  padding: 14px 18px;
  font-family: var(--ff-body);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.data-table thead th {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-dark);
}
.data-table td:first-child { color: var(--text-muted); font-weight: 600; letter-spacing: .04em; width: 40%; }
.data-table td:last-child { color: var(--white); }
.data-table .yes { color: var(--gold-light); font-weight: 700; }
.data-table .no { color: var(--text-muted); }

/* Character / feature card grid (Story, Editions) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 8px; }
.feature-card { background: var(--surface2); border: 1px solid var(--border); overflow: hidden; transition: border-color .3s, transform .3s; }
.feature-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.feature-card img { width: 100%; height: 220px; object-fit: cover; }
.feature-card-body { padding: 20px 22px 26px; }
.feature-card-body h3 { font-family: var(--ff-display); font-size: 19px; color: var(--white); margin-bottom: 8px; }
.feature-card-body p { font-family: var(--ff-body); font-size: 14px; font-weight: 300; color: var(--text-muted); line-height: 1.6; }

/* Simple FAQ accordion-style list (Support page) */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 { font-family: var(--ff-display); font-size: 18px; color: var(--gold-light); margin-bottom: 10px; }
.faq-item p { font-family: var(--ff-body); font-size: 15px; font-weight: 300; color: var(--text); line-height: 1.65; }

/* Patch-note list (Patch Notes page) */
.patch-block { margin-bottom: 40px; }
.patch-block h2 { font-family: var(--ff-display); font-size: 22px; color: var(--white); margin-bottom: 14px; }
.patch-block h2 .ver { color: var(--gold); }
.patch-block ul { list-style: none; padding: 0; }
.patch-block li {
  font-family: var(--ff-body); font-size: 15px; font-weight: 300; color: var(--text);
  padding: 9px 0 9px 22px; position: relative; border-bottom: 1px dashed var(--border);
}
.patch-block li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }

/* Screenshot / general gallery grid (Screenshots page) */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.shot-grid img { width: 100%; height: 220px; object-fit: cover; border: 1px solid var(--border); cursor: pointer; transition: border-color .25s, transform .25s; }
.shot-grid img:hover { border-color: var(--gold); transform: scale(1.02); }

/* Video embed wrapper (Trailer page) */
.video-frame { position: relative; max-width: 860px; aspect-ratio: 16/9; border: 1px solid var(--border); background: var(--surface2); margin-bottom: 28px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Simple link list (Community page) */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 8px; }
.link-card { background: var(--surface2); border: 1px solid var(--border); padding: 24px; transition: border-color .25s, transform .25s; }
.link-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.link-card h3 { font-family: var(--ff-display); font-size: 17px; color: var(--white); margin-bottom: 8px; }
.link-card p { font-family: var(--ff-body); font-size: 14px; font-weight: 300; color: var(--text-muted); line-height: 1.6; margin: 0; }

.page-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.disclaimer-box {
  border: 1px solid var(--border);
  background: var(--surface2);
  padding: 20px 24px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .page-hero { padding: 90px 24px 50px; }
  .page-content { padding: 50px 24px 70px; }
}
