/* =============================================================
   Rocket Play Australia — Main Stylesheet
   Brand: Yellow #F5C923 | Dark #0D0D0D | Dark-2 #161616 | Dark-3 #1E1E1E
   ============================================================= */

:root {
  --gold:        #F5C923;
  --gold-hover:  #FFD84D;
  --gold-dim:    rgba(245,201,35,.12);
  --gold-glow:   rgba(245,201,35,.35);
  --black:       #0D0D0D;
  --dark:        #111111;
  --dark-2:      #161616;
  --dark-3:      #1E1E2A;
  --dark-4:      #252535;
  --border:      rgba(255,255,255,.08);
  --border-gold: rgba(245,201,35,.25);
  --white:       #FFFFFF;
  --off-white:   #F0F0F0;
  --text:        #FFFFFF;
  --text-mid:    #CCCCCC;
  --text-light:  #888899;
  --text-dim:    #666677;
  --green:       #2ECC71;
  --red:         #E74C3C;
  --blue:        #3B82F6;
  --purple:      #8B5CF6;

  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 9999px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.5);
  --shadow-md:  0 4px 20px rgba(0,0,0,.6);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.7);
  --shadow-gold:0 0 30px rgba(245,201,35,.2);

  --t:    .2s ease;
  --t-md: .35s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--gold); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-hover); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Skip Link ──────────────────────────────────────────── */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 9999;
  background: var(--gold); color: var(--black); font-weight: 700;
  padding: 10px 20px; border-radius: var(--r-sm);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ── Focus Visible ──────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── SR Only ─────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  padding: 12px 28px; border-radius: var(--r-full);
  transition: all var(--t); border: 2px solid transparent;
  cursor: pointer; white-space: nowrap; min-height: 44px;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold); color: var(--black);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover {
  background: var(--gold-hover); color: var(--black);
  box-shadow: 0 6px 30px rgba(245,201,35,.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-dim);
}
.btn-ghost {
  background: rgba(255,255,255,.07); color: var(--white);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,13,13,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
.nav-logo svg { width: 44px; height: 44px; }
.nav-logo-text {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 18px; color: var(--white); letter-spacing: -0.3px;
  line-height: 1.1;
}
.nav-logo-text span { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-mid); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: all var(--t); white-space: nowrap;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--white); background: rgba(255,255,255,.07);
}
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-nav-login {
  color: var(--text-mid); font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--r-full);
  border: 1.5px solid var(--border); transition: all var(--t);
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.btn-nav-login:hover { color: var(--white); border-color: rgba(255,255,255,.25); }
.btn-nav-cta {
  background: var(--gold); color: var(--black);
  font-size: 14px; font-weight: 700;
  padding: 9px 20px; border-radius: var(--r-full);
  transition: all var(--t); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
}
.btn-nav-cta:hover {
  background: var(--gold-hover); color: var(--black);
  box-shadow: 0 4px 16px var(--gold-glow);
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: 10px;
  border-radius: var(--r-sm); background: transparent;
  border: 1.5px solid var(--border); margin-left: auto;
  cursor: pointer; transition: border-color var(--t);
}
.nav-hamburger:hover { border-color: var(--gold); }
.nav-hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--white); border-radius: 2px;
  transition: all var(--t-md);
}

/* Mobile Nav */
.nav-mobile {
  display: none; flex-direction: column;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 0; overflow: hidden; max-height: 0;
  transition: max-height .4s ease;
}
.nav-mobile.open { max-height: 600px; }
.nav-mobile-cta {
  display: block; text-decoration: none;
  background: var(--gold); color: var(--black);
  font-weight: 800; font-size: 15px; text-align: center;
  padding: 16px 20px; letter-spacing: .3px;
}
.nav-mobile-links {
  display: flex; flex-direction: column;
  padding: 12px 16px; gap: 4px;
}
.nav-mobile-links a {
  display: block; padding: 12px 14px;
  color: var(--text-mid); font-size: 15px; font-weight: 500;
  border-radius: var(--r-sm); transition: all var(--t);
  text-decoration: none;
}
.nav-mobile-links a:hover { color: var(--white); background: rgba(255,255,255,.07); }
.nav-mobile-bottom {
  display: flex; gap: 10px; padding: 12px 16px 20px;
}
.nav-mobile-bottom a {
  flex: 1; display: block; text-align: center;
  padding: 12px; border-radius: var(--r-full);
  font-weight: 600; font-size: 14px; text-decoration: none;
  min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.m-btn-login {
  background: transparent; color: var(--text-mid);
  border: 1.5px solid var(--border);
}
.m-btn-register {
  background: var(--gold); color: var(--black); font-weight: 700;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { max-width: 320px; }
.footer-logo { margin-bottom: 16px; }
.footer-desc { color: var(--text-mid); font-size: 14px; line-height: 1.7; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.footer-badge {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 6px 12px;
  font-size: 11px; font-weight: 600; color: var(--text-mid);
  text-transform: uppercase; letter-spacing: .5px;
}
.footer-col h4 {
  font-size: 13px; font-weight: 700; color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: var(--text-light); font-size: 14px;
  text-decoration: none; transition: color var(--t);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-legal { font-size: 11px; color: var(--text-dim); max-width: 700px; line-height: 1.6; }
.footer-rg {
  font-size: 12px; color: var(--text-light); font-weight: 600;
  background: var(--dark-3); border: 1px solid var(--border-gold);
  border-radius: var(--r-sm); padding: 8px 14px; white-space: nowrap;
}
.footer-age {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ── Section Headers ─────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-hdr { text-align: center; margin-bottom: 48px; }
.section-hdr h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.section-hdr p { color: var(--text-mid); font-size: 17px; max-width: 580px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: var(--gold-dim);
  border: 1px solid var(--border-gold); color: var(--gold);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 4px 14px; border-radius: var(--r-full);
  margin-bottom: 14px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--dark-3); border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: all var(--t-md);
}
.card:hover { border-color: var(--border-gold); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.card-body { padding: 24px; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ── Grids ───────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

/* ── Badge / Tag ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--border-gold); }
.badge-green { background: rgba(46,204,113,.12); color: var(--green); border: 1px solid rgba(46,204,113,.25); }
.badge-red { background: rgba(231,76,60,.12); color: var(--red); border: 1px solid rgba(231,76,60,.25); }
.badge-purple { background: rgba(139,92,246,.12); color: var(--purple); border: 1px solid rgba(139,92,246,.25); }
.badge-blue { background: rgba(59,130,246,.12); color: var(--blue); border: 1px solid rgba(59,130,246,.25); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
thead th {
  background: var(--dark-3); color: var(--gold);
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  padding: 14px 18px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--border-gold);
}
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--t); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.03); }
tbody td { padding: 14px 18px; font-size: 14px; color: var(--text-mid); }
tbody td:first-child { color: var(--white); font-weight: 500; }

/* ── Progress bars ───────────────────────────────────────── */
.progress-row { display: flex; flex-direction: column; gap: 12px; }
.progress-item { display: flex; flex-direction: column; gap: 6px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; }
.progress-label span:last-child { color: var(--gold); font-weight: 700; }
.progress-bar { height: 8px; background: var(--dark-4); border-radius: var(--r-full); overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
  transition: width 1.2s cubic-bezier(.34,1.26,.64,1);
}
.progress-fill.blue { background: linear-gradient(90deg, #3B82F6, #60a5fa); }
.progress-fill.green { background: linear-gradient(90deg, #2ECC71, #4ade80); }
.progress-fill.purple { background: linear-gradient(90deg, #8B5CF6, #a78bfa); }

/* ── Donut chart ─────────────────────────────────────────── */
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-svg { flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 12px; }
.donut-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Stat boxes ──────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat-box {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 20px;
  text-align: center; transition: all var(--t-md);
}
.stat-box:hover { border-color: var(--border-gold); box-shadow: var(--shadow-gold); }
.stat-num {
  font-family: var(--font-heading); font-size: clamp(28px,4vw,42px);
  font-weight: 800; color: var(--gold); line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-mid); }

/* ── Bar chart ───────────────────────────────────────────── */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; }
.bar-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar {
  width: 100%; border-radius: 4px 4px 0 0;
  background: var(--gold); transition: height 1s ease;
  min-width: 24px;
}
.bar.blue { background: #3B82F6; }
.bar.green { background: #2ECC71; }
.bar.purple { background: #8B5CF6; }
.bar-label { font-size: 11px; color: var(--text-light); text-align: center; }
.bar-val { font-size: 12px; color: var(--gold); font-weight: 700; }

/* ── Chart card wrapper ──────────────────────────────────── */
.chart-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; overflow: hidden;
}
.chart-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.chart-sub { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 60% 40%, rgba(245,201,35,.08) 0%, transparent 60%),
              var(--dark);
  padding: 100px 0 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F5C923' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; }

/* ── Inline SVG images (illustrations) ──────────────────── */
.illus-wrap {
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--dark-3); border: 1px solid var(--border);
}

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color var(--t);
}
.faq-item.open { border-color: var(--border-gold); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; gap: 16px;
  font-size: 16px; font-weight: 600;
  background: none; border: none; width: 100%; text-align: left;
  color: var(--white); transition: color var(--t);
}
.faq-q:hover { color: var(--gold); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--dark-4); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  transition: all var(--t-md);
}
.faq-item.open .faq-icon { background: var(--gold); transform: rotate(45deg); }
.faq-icon svg { fill: var(--white); }
.faq-item.open .faq-icon svg { fill: var(--black); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-a-inner { padding: 0 24px 20px; color: var(--text-mid); font-size: 15px; line-height: 1.7; }

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-light); margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; transition: color var(--t); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--text-dim); }

/* ── Author box ──────────────────────────────────────────── */
.author-box {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  margin: 48px 0;
}
.author-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border-gold); overflow: hidden;
}
.author-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.author-title { font-size: 13px; color: var(--gold); margin-bottom: 8px; }
.author-bio { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ── Info banner ─────────────────────────────────────────── */
.info-banner {
  background: var(--dark-3); border: 1px solid var(--border-gold);
  border-radius: var(--r-lg); padding: 20px 24px;
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 32px;
}
.info-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.info-text { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.info-text strong { color: var(--gold); }

/* ── Responsive typography ───────────────────────────────── */
h1 { font-size: clamp(32px,5vw,56px); }
h2 { font-size: clamp(24px,3.5vw,38px); }
h3 { font-size: clamp(18px,2.5vw,24px); }

/* ── Mobile: 1024px ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
}

/* ── Mobile: 768px ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }

  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }

  .hero { padding: 64px 0 56px; }
  .hero-layout { flex-direction: column !important; gap: 32px !important; }
  .hero-img { width: 100% !important; max-width: 100% !important; }

  .donut-wrap { flex-direction: column; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }

  footer { margin-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .bar-chart { height: 120px; }
}

/* ── Mobile: 480px ───────────────────────────────────────── */
@media (max-width: 480px) {
  .container, .container-wide { padding: 0 14px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 28px; }
  .table-wrap { margin: 0 -14px; border-radius: 0; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}

/* ── Prefers reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .nav, footer, .btn, .skip-link { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  a { color: inherit; }
}
