/* ═══════════════════════════════════════════════════════════════
   SteamsGuru — styles.css
   Global stylesheet shared by every page.
   Page-specific overrides live in each page's own <style> block.
═══════════════════════════════════════════════════════════════ */

/* PAGE LOADER */
#page-loader{
    position:fixed;
    inset:0;
    background:#050508;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
    opacity:1;
    visibility:visible;
    transition:opacity .35s ease, visibility .35s ease;
}

#page-loader.hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

#page-loader.hidden + #page-transition,
#page-transition:not(.visible) {
    pointer-events:none;
}

/* Modern spinner */
.spinner{
    width:52px;
    height:52px;
    border:3px solid rgba(255,255,255,.08);
    border-top-color:#FF6B35;
    border-radius:50%;
    animation:spin .7s linear infinite;
    box-shadow:0 0 24px rgba(255,107,53,.18);
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* ─────────────────────────────────────────
   1. DESIGN TOKENS & LAYOUT SYSTEM
───────────────────────────────────────── */
:root {
  /* Layout Architecture */
  --navbar-height: 66px;

  /* Palette */
  --bg:           #030305;
  --orange:       #FF6B35;
  --orange2:      #FF9A6A;
  --orange3:      #FFD4BB;
  --white:        #F5F7FA;
  --muted:        rgba(245, 247, 250, 0.58);
  --card-bg:      rgba(12, 10, 18, 0.55);

  /* Typography */
  --font:         'Figtree', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs:     8px;
  --space-sm:     16px;
  --space-md:     28px;
  --space-lg:     52px;
  --space-xl:     88px;

  /* Radii */
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    36px;
  --radius-pill:  40px;

  /* Shadows */
  --shadow-card:  0 44px 95px rgba(0,0,0,0.75), 0 0 80px rgba(255,107,53,0.13);
  --shadow-btn:   0 5px 22px rgba(255,107,53,0.22);
  --shadow-btn-h: 0 20px 50px rgba(255,107,53,0.5), 0 0 100px rgba(255,107,53,0.18);

  /* Transitions */
  --ease-out:     cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-bg:         -1;
  --z-content:    10;
  --z-nav:        9900;
  --z-grain:      9990;
  --z-cursor:     99999;
}


/* ─────────────────────────────────────────
   2. RESET, BASE & GLOBAL OFFSET
───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Prevents in-page anchor links from hiding behind the fixed navbar */
  scroll-padding-top: var(--navbar-height); 
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  
  /* GLOBAL LAYOUT OFFSET: Prevents page content from going under the navbar */
  padding-top: var(--navbar-height);
}

/* Bypass Layout Offset for specific fullscreen/auth layouts */
body.sign-in,
body.sign-up,
body.coming-soon,
body.fullscreen {
  padding-top: 0;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: var(--font);
  border: none;
  background: none;
  cursor: none;
}

input, textarea, select {
  font-family: var(--font);
  cursor: none;
}


/* ─────────────────────────────────────────
   3. ATMOSPHERIC LAYERS
───────────────────────────────────────── */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 700px at -15% -10%, rgba(255,107,53,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 600px 600px at 110%  30%, rgba(255,107,53,0.055) 0%, transparent 65%),
    radial-gradient(ellipse 500px 500px at  40% 110%, rgba(70,50,180,0.045) 0%, transparent 65%);
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  background: radial-gradient(ellipse 120% 120% at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}


/* ─────────────────────────────────────────
   4. CUSTOM CURSOR
───────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
  transition: width 0.18s var(--ease-out),
              height 0.18s var(--ease-out),
              transform 0.18s var(--ease-out);
  will-change: left, top;
}

#cursor.hide {
  width: 0;
  height: 0;
  transform: translate(-50%, -50%) scale(0);
}

#cursor.expand {
  width: 36px;
  height: 36px;
}

/* ─────────────────────────────────────────
   5. NAVBAR
───────────────────────────────────────── */
/* Hide header in full-screen designated pages */
.sign-in .navbar,
.sign-up .navbar,
.coming-soon .navbar,
.fullscreen .navbar {
  display: none !important;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  background: rgba(3, 3, 5, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo {
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  color: #fff; 
  white-space: nowrap;
  cursor: none;
  transition: opacity 0.22s;
}
.logo span {
  color: var(--orange); 
}
.logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  padding: 5px 7px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  transition: color 0.22s, background 0.22s;
  white-space: nowrap;
  cursor: none;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 16px rgba(255, 107, 53, 0.28);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  white-space: nowrap;
  cursor: none;
}
.nav-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.52);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─────────────────────────────────────────
   6. BUTTONS
───────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-outline {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.87rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: none;
  border: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.btn-primary {
  background: linear-gradient(138deg, var(--orange), var(--orange2));
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  transform: translateY(-6px) scale(1.055);
  box-shadow: var(--shadow-btn-h);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: btnshine 4.5s linear infinite;
  pointer-events: none;
}
@keyframes btnshine {
  0%   { left: -120%; }
  100% { left:  200%; }
}

.btn-secondary,
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: none;
}
.btn-outline { background: transparent; }

.btn-secondary:hover,
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 107, 53, 0.38);
  box-shadow: 0 18px 46px rgba(255, 255, 255, 0.05);
  transform: translateY(-6px) scale(1.04);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.78rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  cursor: none;
  transition: background 0.22s, transform 0.22s;
}
.btn-icon:hover {
  background: rgba(255,107,53,0.12);
  transform: scale(1.1);
}


/* ─────────────────────────────────────────
   7. FORM ELEMENTS
───────────────────────────────────────── */
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.28s, box-shadow 0.28s;
}
.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 107, 53, 0.55);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.08);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.form-inline input {
  flex: 1;
  min-width: 220px;
}


/* ─────────────────────────────────────────
   8. CARDS (generic)
───────────────────────────────────────── */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(26px);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out),
              box-shadow 0.45s var(--ease-out),
              border-color 0.4s;
}
.card:hover {
  transform: translateY(-14px) scale(1.01);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 107, 53, 0.2);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(148deg, rgba(255,107,53,0.07), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card-body {
  padding: 28px 30px;
  position: relative;
  z-index: 2;
}
.card-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.card:hover .card-img img { transform: scale(1.08); }

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12,10,18,1) 0%, rgba(12,10,18,0) 52%);
}

.badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,107,53,0.09);
  border: 1px solid rgba(255,107,53,0.2);
  color: var(--orange2);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* ─────────────────────────────────────────
   9. SECTION SCAFFOLD
───────────────────────────────────────── */
.section {
  max-width: 1360px;
  /* Standardized vertical spacing; body top-padding handles the navbar clearance */
  margin: 100px auto; 
  padding: 0 var(--space-md);
  position: relative;
  z-index: var(--z-content);
}

.sec-title {
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 16px;
}

.sec-sub {
  max-width: 620px;
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange2);
  background: rgba(255,107,53,0.07);
  border: 1px solid rgba(255,107,53,0.16);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
  animation: edot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes edot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.7); }
  50%       { box-shadow: 0 0 0 7px rgba(255,107,53,0); }
}

.grad {
  background: linear-gradient(108deg, #fff 0%, #ffc8a0 52%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.04);
  margin: var(--space-lg) 0;
}


/* ─────────────────────────────────────────
   10. SCROLL REVEAL
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.95s var(--ease-out),
              transform 0.95s var(--ease-out);
}
.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

.reveal-children > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}
.reveal-children.on > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0.05s; }
.reveal-children.on > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.15s; }
.reveal-children.on > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.25s; }
.reveal-children.on > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.35s; }
.reveal-children.on > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:0.45s; }
.reveal-children.on > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay:0.55s; }


/* ─────────────────────────────────────────
   11. FOOTER
───────────────────────────────────────── */
.footer {
  margin-top: 130px;
  padding: 72px var(--space-md) 38px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(2, 2, 6, 0.98);
  position: relative;
  z-index: var(--z-content);
}

.footer-grid {
  max-width: 1360px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-info-side .logo {
  display: inline-block;
  margin-bottom: 14px;
}
.footer-info-side p {
  color: var(--muted);
  max-width: 255px;
  line-height: 1.84;
  font-size: 0.88rem;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 17px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-list a {
  color: rgba(255,255,255,0.48);
  font-size: 0.86rem;
  display: inline-block;
  transition: color 0.22s, transform 0.22s;
  cursor: none;
}
.footer-links-list a:hover {
  color: var(--orange2);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.24);
  font-size: 0.8rem;
}

.footer-legal-links {
  display: flex;
  gap: 22px;
}
.footer-legal-links a {
  color: rgba(255,107,53,0.55);
  cursor: none;
  transition: color 0.22s;
}
.footer-legal-links a:hover {
  color: var(--orange2);
}


/* ─────────────────────────────────────────
   12. PAGE HERO (generic hero shell)
───────────────────────────────────────── */
.page-hero {
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  /* Top padding reduced because the global body padding handles the layout offset natively */
  padding: 80px var(--space-md) 80px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  letter-spacing: -0.044em;
  line-height: 0.95;
  margin-bottom: 22px;
  animation: fadeup 0.8s ease both 0.2s;
}
.page-hero p {
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 36px;
  animation: fadeup 0.8s ease both 0.38s;
}
.page-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeup 0.8s ease both 0.54s;
}
@keyframes fadeup {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─────────────────────────────────────────
   13. GRID UTILITIES
───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-prose { max-width: 660px; }


/* ─────────────────────────────────────────
   14. TOAST / NOTIFICATION
───────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(12, 10, 18, 0.96);
  border: 1px solid rgba(255,107,53,0.25);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--white);
  font-size: 0.88rem;
  line-height: 1.5;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: toastin 0.4s var(--ease-out) both;
  pointer-events: auto;
  max-width: 320px;
}
.toast.out { animation: toastout 0.35s var(--ease-out) both; }

@keyframes toastin  { from { opacity:0; transform:translateY(16px) scale(0.94); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes toastout { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(8px); } }

.toast-success { border-color: rgba(80,220,120,0.35); }
.toast-error   { border-color: rgba(255,80,80,0.35); }


/* ─────────────────────────────────────────
   15. MODAL
───────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  z-index: 9800;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.94);
  z-index: 9850;
  background: rgba(10, 8, 18, 0.98);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: min(560px, calc(100vw - 40px));
  backdrop-filter: blur(32px);
  box-shadow: 0 48px 120px rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out),
              transform 0.4s var(--ease-out),
              visibility 0.4s;
}
.modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  cursor: none;
  transition: background 0.22s, color 0.22s;
}
.modal-close:hover {
  background: rgba(255,107,53,0.12);
  color: var(--white);
}


/* ─────────────────────────────────────────
   16. ACCORDION / FAQ
───────────────────────────────────────── */
.accordion-item {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.28s;
}
.accordion-item:hover {
  border-color: rgba(255,255,255,0.07);
}
.accordion-item + .accordion-item {
  margin-top: 10px;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: none;
  border: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  cursor: none;
  text-align: left;
  transition: color 0.22s;
}
.accordion-trigger:hover { color: var(--orange2); }

.accordion-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: grid; place-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out), border-color 0.28s;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  border-color: rgba(255,107,53,0.35);
  color: var(--orange2);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.accordion-item.open .accordion-body {
  max-height: 400px;
}
.accordion-body-inner {
  padding: 0 26px 22px;
  color: var(--muted);
  line-height: 1.78;
  font-size: 0.9rem;
}


/* ─────────────────────────────────────────
   17. TABS
───────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  padding: 5px;
  width: fit-content;
  margin-bottom: 36px;
}

.tab-btn {
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  background: none;
  border: none;
  cursor: none;
  transition: color 0.22s, background 0.22s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--white); }
.tab-btn.active {
  background: linear-gradient(138deg, var(--orange), var(--orange2));
  color: #fff;
  box-shadow: 0 3px 14px rgba(255,107,53,0.25);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }


/* ─────────────────────────────────────────
   18. PAGE TRANSITION OVERLAY
───────────────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.82);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s var(--ease-out), visibility 0.38s var(--ease-out);
  will-change: opacity;
}
#page-transition.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* ─────────────────────────────────────────
   19. SCROLLBAR
───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,107,53,0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,107,53,0.55);
}


/* ─────────────────────────────────────────
   20. SELECTION
───────────────────────────────────────── */
::selection {
  background: rgba(255,107,53,0.28);
  color: #fff;
}


/* ─────────────────────────────────────────
   21. RESPONSIVE
───────────────────────────────────────── */

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  
  /* Adjusted for body offset layout */
  .section { margin: 80px auto; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: fixed;
    /* Now dynamically scales perfectly with layout root var */
    top: var(--navbar-height); 
    left: 0; right: 0;
    background: rgba(3,3,5,0.97);
    backdrop-filter: blur(26px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-direction: column;
    align-items: stretch;
    border-radius: 0;
    padding: 12px 16px 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }

  .nav-link,
  .nav-btn {
    font-size: 0.88rem;
    padding: 13px 18px;
    text-align: left;
    border-radius: var(--radius-md);
  }
  .nav-btn { margin-top: 8px; text-align: center; }

  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@media (max-width: 600px) {
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .section { padding: 0 18px; }

  .modal { padding: 32px 24px; }

  .tabs { flex-wrap: wrap; }
}