/* ==========================================================================
   MQUADRO - ROLL TALES DARK ORANGE & OBSIDIAN DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-dark: #0B0B0D;
  --bg-card: rgba(22, 19, 17, 0.82);
  --bg-card-hover: rgba(32, 26, 22, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(244, 93, 34, 0.35);
  --border-orange-glow: rgba(244, 93, 34, 0.4);
  --border-amber-glow: rgba(255, 138, 31, 0.4);

  /* Roll Tales Theme: Dark Orange, Ember, Flame & Warm Obsidian */
  --primary-orange: #F45D22;
  --primary-orange-rgb: 244, 93, 34;
  --primary-ember: #FF8A1F;
  --primary-flame: #FFB547;
  --primary-dark-orange: #c2410c;
  --accent-copper: #ea580c;
  --accent-gold: #ffbe53;
  --color-paper: #F5F3EF;
  --color-stone: #aaa69e;

  /* Aliases to map all existing red classes to Roll Tales dark orange */
  --primary-red: #F45D22;
  --primary-red-rgb: 244, 93, 34;
  --primary-dark-red: #c2410c;
  --accent-ruby: #FF8A1F;
  --accent-blood: #c2410c;
  --accent-amber: #FF8A1F;
  --accent-gold: #FFB547;

  --text-main: #F5F3EF;
  --text-muted: #aaa69e;
  --text-dim: #78716c;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow-red: 0 0 40px -10px rgba(244, 93, 34, 0.4);
  --shadow-glow-orange: 0 0 40px -10px rgba(244, 93, 34, 0.4);
  --shadow-glow-amber: 0 0 40px -10px rgba(255, 138, 31, 0.35);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Grid & Warm Dark Orange / Ember Glows */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-1 {
  position: absolute;
  width: 700px;
  height: 700px;
  top: -150px;
  left: 5%;
  background: radial-gradient(circle, rgba(244, 93, 34, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: absolute;
  width: 700px;
  height: 700px;
  top: 45%;
  right: -100px;
  background: radial-gradient(circle, rgba(255, 138, 31, 0.06) 0%, transparent 70%);
  filter: blur(90px);
  animation: floatAmbient 22s ease-in-out infinite alternate-reverse;
}

.ambient-glow-3 {
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: 5%;
  left: 10%;
  background: radial-gradient(circle, rgba(194, 65, 12, 0.06) 0%, transparent 70%);
  filter: blur(80px);
  animation: floatAmbient 20s ease-in-out infinite alternate;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* WebGL 3D Canvas in Hero */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Cursor Glow Spotlight (Red) */
.cursor-spotlight {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 75, 0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

@media (max-width: 991px) {
  .cursor-spotlight {
    display: none;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Utility Containers & Sections */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

section {
  position: relative;
  padding: 90px 0;
  z-index: 2;
}

/* Gradient Text (Roll Tales Dark Orange & Flame) */
.gradient-text-red, .gradient-text-orange {
  background: linear-gradient(135deg, #F5F3EF 10%, #FFB547 50%, #F45D22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-amber {
  background: linear-gradient(135deg, #F5F3EF 10%, #FFB547 55%, #FF8A1F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

.badge-red, .badge-orange {
  background: rgba(244, 93, 34, 0.12);
  color: var(--primary-flame);
  border: 1px solid rgba(244, 93, 34, 0.35);
  box-shadow: 0 0 15px -3px rgba(244, 93, 34, 0.3);
}

.badge-amber {
  background: rgba(255, 138, 31, 0.12);
  color: var(--primary-flame);
  border: 1px solid rgba(255, 138, 31, 0.35);
  box-shadow: 0 0 15px -3px rgba(255, 138, 31, 0.25);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(7, 7, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-logo img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255, 42, 75, 0.35));
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: scale(1.05) rotate(-2deg);
}

.brand-dot {
  color: var(--primary-red);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  box-shadow: 0 0 10px var(--primary-red);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Toggle Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  position: relative;
  backdrop-filter: blur(10px);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-btn.active {
  background: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 42, 75, 0.6);
}

.lang-btn:not(.active):hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  color: var(--text-main);
  cursor: pointer;
}

@media (max-width: 860px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(8, 7, 10, 0.97);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary-red, .btn-primary-orange {
  background: linear-gradient(135deg, #FF8A1F 0%, #F45D22 60%, #c2410c 100%);
  color: #0B0B0D;
  font-weight: 700;
  box-shadow: 0 0 25px -5px rgba(244, 93, 34, 0.5);
}

.btn-primary-red:hover, .btn-primary-orange:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #FFB547 0%, #FF8A1F 60%, #F45D22 100%);
  box-shadow: 0 6px 30px rgba(244, 93, 34, 0.7);
  color: #0B0B0D;
}

.btn-primary-amber {
  background: linear-gradient(135deg, #FFB547 0%, #FF8A1F 100%);
  color: #0B0B0D;
  font-weight: 700;
  box-shadow: 0 0 25px -5px rgba(255, 138, 31, 0.5);
}

.btn-primary-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 138, 31, 0.7);
  color: #0B0B0D;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 93, 34, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-glow-border {
  position: relative;
}

.btn-glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, #FF8A1F, #F45D22, #FF8A1F);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-size: 200% auto;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shineBorder 4s linear infinite;
}

@keyframes shineBorder {
  to { background-position: 200% center; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 991px) {
  .hero-copy {
    align-items: center;
  }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-title em {
  font-style: normal;
  display: block;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 580px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 991px) {
  .hero-cta-group {
    justify-content: center;
  }
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 16px;
}

@media (max-width: 991px) {
  .hero-stats {
    justify-content: center;
  }
}

.stat-item h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 3D Dice / Visual Container in Hero */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}

.hero-3d-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 50%, rgba(244, 93, 34, 0.08) 0%, rgba(18, 15, 13, 0.88) 100%);
  border: 1px solid rgba(244, 93, 34, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 60px -20px rgba(244, 93, 34, 0.35);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  overflow: hidden;
}

.hero-interactive-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.hero-interactive-canvas-container.is-dragging {
  cursor: grabbing;
}

.hero-3d-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 15, 13, 0.88);
  border: 1px solid rgba(244, 93, 34, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(244, 93, 34, 0.2);
  color: #ffd6ae;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: hintFloat 3s ease-in-out infinite alternate;
}

.hero-3d-hint.interacted {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.hero-3d-hint .hint-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF8A1F;
  box-shadow: 0 0 8px #FF8A1F;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #FF8A1F; }
}

@keyframes hintFloat {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-3px); }
}

.hero-floating-badge {
  position: absolute;
  z-index: 3;
  background: rgba(14, 11, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: floatCard 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-floating-badge.badge-top {
  top: 20px;
  right: -20px;
}

.hero-floating-badge.badge-bottom {
  bottom: 20px;
  left: -20px;
  animation-delay: -3s;
}

@media (max-width: 540px) {
  .hero-floating-badge {
    padding: 8px 12px;
    gap: 8px;
  }
  .hero-floating-badge .badge-text-title {
    font-size: 0.8rem;
  }
  .hero-floating-badge .badge-text-sub {
    font-size: 0.7rem;
  }
  .hero-floating-badge.badge-top {
    right: -4px;
    top: 6px;
  }
  .hero-floating-badge.badge-bottom {
    left: -4px;
    bottom: 6px;
  }
  .hero-3d-hint {
    bottom: 12px;
    font-size: 0.72rem;
    padding: 5px 11px;
  }
}

.badge-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon-box.red {
  background: rgba(255, 42, 75, 0.15);
  color: var(--primary-red);
}

.badge-icon-box.amber {
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-amber);
}

.badge-text-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-text-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-header .badge {
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRODUCTS SHOWCASE (FLAGSHIP ROLLTALES + EXTRACTION)
   ========================================================================== */
.products-wrapper {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

/* Flagship Product Card: Roll Tales */
.flagship-card {
  position: relative;
  background: linear-gradient(145deg, rgba(22, 16, 18, 0.85) 0%, rgba(14, 11, 13, 0.95) 100%);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-xl);
  padding: 48px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 60px -20px rgba(249, 115, 22, 0.25);
  backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.flagship-card:hover {
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 80px -10px rgba(249, 115, 22, 0.4);
  border-color: rgba(249, 115, 22, 0.5);
}

.flagship-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 991px) {
  .flagship-card {
    padding: 30px 20px;
  }
  .flagship-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.product-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.product-heading {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.product-description {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.product-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 10px 0;
}

.product-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-icon-badge {
  color: var(--accent-amber);
  background: rgba(249, 115, 22, 0.12);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-badge.red {
  color: var(--primary-red);
  background: rgba(255, 42, 75, 0.12);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

/* Roll Tales Showcase Visual Side */
.rolltales-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rolltales-artwork-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 16 / 10;
  cursor: pointer;
}

.rolltales-artwork-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rolltales-artwork-card:hover img {
  transform: scale(1.05);
}

.artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 7, 10, 0.92) 0%, rgba(7, 7, 10, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.artwork-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.artwork-caption {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.rolltales-art-gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rolltales-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 10;
  cursor: pointer;
}

.rolltales-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rolltales-thumb:hover img {
  transform: scale(1.08);
}

/* Secondary Product Card: Extraction */
.extraction-card {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 14, 16, 0.8) 0%, rgba(12, 10, 12, 0.95) 100%);
  border: 1px solid rgba(255, 42, 75, 0.25);
  border-radius: var(--radius-xl);
  padding: 48px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.extraction-card:hover {
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), var(--shadow-glow-red);
  border-color: rgba(255, 42, 75, 0.45);
}

@media (max-width: 991px) {
  .extraction-card {
    padding: 30px 20px;
  }
}

.extraction-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 991px) {
  .extraction-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.extraction-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.08);
}

.gallery-hover-icon {
  position: absolute;
  inset: 0;
  background: rgba(255, 42, 75, 0.3);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #fff;
}

.gallery-thumb:hover .gallery-hover-icon {
  opacity: 1;
}

/* ==========================================================================
   ABOUT / TEAM SECTION
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 32px auto 0;
}

.dev-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 93, 34, 0.22);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
}

.dev-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(244, 93, 34, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), var(--shadow-glow-orange);
}

.dev-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.dev-avatar-glyph {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  background: radial-gradient(circle, rgba(244, 93, 34, 0.22) 0%, rgba(244, 93, 34, 0.04) 80%);
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  box-shadow: 0 0 18px -4px rgba(244, 93, 34, 0.4);
}

.dev-avatar-glyph.flame {
  border-color: var(--primary-flame);
  color: var(--primary-flame);
  background: radial-gradient(circle, rgba(255, 181, 71, 0.22) 0%, rgba(255, 181, 71, 0.04) 80%);
  box-shadow: 0 0 18px -4px rgba(255, 181, 71, 0.4);
}

.dev-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dev-name {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.dev-role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary-flame);
  margin: 0;
}

.dev-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.dev-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-link-btn:hover {
  color: #0B0B0D;
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 93, 34, 0.45);
}

/* ==========================================================================
   CONTACT SECTION (FOCUSED EMAIL CTA & QUICK LINKS)
   ========================================================================== */
.contact-main-card {
  max-width: 680px;
  margin: 32px auto 0;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(244, 93, 34, 0.12) 0%, rgba(20, 16, 14, 0.92) 85%);
  border: 1px solid rgba(244, 93, 34, 0.32);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px -15px rgba(244, 93, 34, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(244, 93, 34, 0.15);
  border: 1px solid rgba(244, 93, 34, 0.4);
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 25px -5px rgba(244, 93, 34, 0.4);
}

.contact-card-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 22px;
}

.contact-card-address {
  display: none;
}

.contact-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.contact-secondary-links {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.contact-sublink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}

.contact-sublink:hover {
  color: var(--text-main);
}

.sublink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-orange);
}
.sublink-dot.amber { background: #FF8A1F; }
.sublink-dot.flame { background: #FFB547; }
.sublink-dot.copper { background: #F45D22; }

.copy-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  padding: 12px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.copy-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-orange);
}

/* Toast Notification (Orange Theme) */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(20, 16, 14, 0.96);
  border: 1px solid var(--primary-orange);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(244, 93, 34, 0.5);
  backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* ==========================================================================
   IMAGE LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(244, 93, 34, 0.4);
  border: 1px solid var(--border-subtle);
  object-fit: contain;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 40px 0;
  background: rgba(6, 5, 8, 0.92);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.footer-social-link:hover {
  color: #fff;
  background: rgba(244, 93, 34, 0.18);
  border-color: var(--primary-orange);
  transform: translateY(-3px);
  box-shadow: 0 0 20px -5px rgba(244, 93, 34, 0.5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-orange);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Back to Top Button (Red Theme) */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 14, 16, 0.88);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-orange);
  color: #0B0B0D;
  box-shadow: 0 0 20px rgba(244, 93, 34, 0.6);
}

/* ==========================================================================
   COOKIE BANNER (ROLL TALES DARK ORANGE & GLASSMORPHISM)
   ========================================================================== */
#cookie-law {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(18, 15, 13, 0.96) !important;
  border: 1px solid rgba(244, 93, 34, 0.32) !important;
  border-radius: var(--radius-lg) !important;
  padding: 18px 24px !important;
  color: var(--text-main) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 30px -10px rgba(244, 93, 34, 0.3) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  z-index: 9999999 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: slideUpCookie 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCookie {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#cookie-law p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

#cookie-law a {
  color: var(--primary-flame);
  text-decoration: underline;
}

.cookie-accept-btn {
  background: linear-gradient(135deg, #FF8A1F, #F45D22);
  color: #0B0B0D;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cookie-accept-btn:hover {
  box-shadow: 0 0 15px rgba(244, 93, 34, 0.6);
  transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & COMPACT NO-VOID SPACING
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 36px 0;
  }

  /* Specific ultra-compact padding for about & contact to remove large voids */
  #team, #contact {
    padding: 26px 0;
  }

  .section-header {
    margin: 0 auto 16px auto;
  }

  .section-title {
    font-size: 1.85rem;
    margin-bottom: 6px;
  }

  .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  /* Team grid mobile compact layout */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .dev-card {
    padding: 18px 16px;
  }

  .dev-card-header {
    gap: 12px;
    margin-bottom: 12px;
  }

  .dev-avatar-glyph {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }

  .dev-name {
    font-size: 1.2rem;
  }

  .dev-skills {
    margin-bottom: 14px;
    gap: 5px;
  }

  .skill-tag {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .social-link-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  /* Contact main card mobile compact layout */
  .contact-main-card {
    padding: 24px 16px;
    margin-top: 12px;
  }

  .contact-card-title {
    font-size: 1.35rem;
  }

  .contact-card-address {
    font-size: 0.98rem;
    margin-bottom: 18px;
  }

  .contact-btn-group {
    flex-direction: column;
    gap: 10px;
  }

  .contact-btn-group .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 12px 20px;
  }

  .contact-secondary-links {
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
  }

  .products-wrapper {
    gap: 32px;
  }

  .flagship-card, .extraction-card {
    padding: 22px 14px;
    border-radius: var(--radius-lg);
  }

  .hero-section {
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .hero-visual-wrapper {
    min-height: 300px;
    margin-top: 10px;
  }

  .hero-3d-card {
    max-width: 310px;
    padding: 16px;
  }

  .site-footer {
    padding: 36px 0 54px 0;
  }

  .footer-links {
    gap: 16px;
    font-size: 0.84rem;
  }

  #cookie-law {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px 18px !important;
    gap: 12px;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}
