/* ==========================================================================
   TensorDrift Studio — Core Design System & Styling
   Inspired by: High-Tech Racing Simulation, Dark Cyber-Carbon & Neon Drift Trails
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-deep: #08090b;
  --bg-surface: #0f1115;
  --bg-surface-elevated: #161920;
  --bg-glass: rgba(18, 21, 28, 0.72);
  --bg-glass-hover: rgba(26, 30, 40, 0.85);

  --accent-orange-500: #ff5722;
  --accent-orange-400: #ff7043;
  --accent-orange-600: #f4511e;
  --accent-fire-start: #ff7a00;
  --accent-fire-end: #e53935;
  --accent-glow: rgba(255, 87, 34, 0.35);
  --accent-glow-strong: rgba(255, 87, 34, 0.65);

  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-highlight: #ff8a65;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 87, 34, 0.4);
  --border-accent-active: rgba(255, 112, 67, 0.85);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Transitions & Shadows */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px var(--accent-glow);
  --shadow-glow-lg: 0 0 60px var(--accent-glow-strong);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

body.nav-open {
  overflow: hidden;
}

/* Background Atmosphere */
#speed-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 80% 15%, rgba(255, 87, 34, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(255, 69, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(15, 17, 21, 0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Wrapper */
.site-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 9, 11, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.site-header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-emblem-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 18px var(--accent-glow);
  transition: var(--transition-smooth);
  background: #121316;
  flex-shrink: 0;
}

.brand:hover .brand-emblem-wrap {
  border-color: var(--accent-orange-400);
  box-shadow: 0 0 24px var(--accent-glow-strong);
  transform: scale(1.05);
}

.brand-emblem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name span {
  color: var(--accent-orange-500);
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Nav links & Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange-500);
  box-shadow: 0 0 8px var(--accent-orange-500);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.mobile-nav-actions {
  display: none;
}

/* Backdrop overlay for mobile drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  z-index: 98;
}

.nav-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

/* Play Game Navigation Button */
.nav-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #ff7a00 0%, #ff5722 55%, #e64a19 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.nav-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: brightness(1.08);
  color: #ffffff;
  text-decoration: none;
}

.nav-play-btn svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.nav-play-btn:hover svg {
  transform: scale(1.15);
}

/* GitHub Quick Icon Link */
.github-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.github-nav-btn:hover {
  border-color: var(--accent-orange-500);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-1px);
}

.github-nav-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Nav Toggle Button */
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
  z-index: 110;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 87, 34, 0.12);
  border-color: var(--border-accent);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 200ms ease,
              background-color 300ms ease;
  transform-origin: center;
}

.menu-toggle.is-active {
  background: rgba(255, 87, 34, 0.18);
  border-color: var(--accent-orange-500);
}

.menu-toggle.is-active .hamburger-bar {
  background-color: var(--accent-orange-400);
}

.menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

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

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

.hero-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 87, 34, 0.08);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: 9999px;
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-orange-500);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange-500);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.telemetry-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-highlight);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-orange-400) 75%, var(--accent-orange-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight-orange {
  color: var(--accent-orange-500);
  position: relative;
  display: inline-block;
}

.hero-title .highlight-orange::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-orange-500);
  box-shadow: 0 0 12px var(--accent-orange-500);
  border-radius: 2px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-fire-start), var(--accent-orange-500) 60%, var(--accent-fire-end));
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 87, 34, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary svg {
  transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  padding: 14px 26px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 87, 34, 0.08);
  border-color: var(--accent-orange-500);
  color: #ffffff;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

/* Hero Badge Cards / Quick specs */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-val span {
  color: var(--accent-orange-500);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Logo Showcase Card */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-visual-card {
  position: relative;
  background: linear-gradient(145deg, rgba(22, 25, 33, 0.9), rgba(13, 15, 19, 0.95));
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 45px var(--accent-glow);
  backdrop-filter: blur(24px);
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.6), transparent 60%, rgba(255, 255, 255, 0.1));
  -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;
  pointer-events: none;
}

.hero-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.9), 0 0 60px var(--accent-glow-strong);
}

.hero-logo-img-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  background: #121316;
  border: 1px solid var(--border-subtle);
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.hero-visual-card:hover .hero-logo-img {
  transform: scale(1.04);
}

.hero-card-tag {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
}

.hero-card-subtag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-orange-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-card-spec-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.spec-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */

section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-orange-500);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.06rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   OpenRally Flagship Showcase
   ========================================================================== */

.openrally-showcase {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 87, 34, 0.03) 50%, transparent 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.project-card-hero {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  transition: var(--transition-smooth);
}

.project-card-hero:hover {
  border-color: var(--border-accent);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px var(--accent-glow);
}

/* Showcase Media Viewer */
.media-preview-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.media-viewer-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.media-viewer-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 250ms ease;
}

.media-badge-live {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #ffffff;
  z-index: 5;
}

.media-badge-live .live-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.media-thumbnails-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.thumb-btn {
  background: var(--bg-surface-elevated);
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  padding: 0;
  transition: var(--transition-fast);
  position: relative;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.65;
  transition: opacity var(--transition-fast);
}

.thumb-btn:hover img,
.thumb-btn.active img {
  opacity: 1;
}

.thumb-btn.active {
  border-color: var(--accent-orange-500);
  box-shadow: 0 0 14px var(--accent-glow);
}

/* Project Info Content */
.project-info-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent-orange-400);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
}

.badge-tag.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}

.project-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.feature-checklist li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-orange-500);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Live Web Demo Callout */
.web-demo-callout {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.15) 0%, rgba(255, 122, 0, 0.06) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0;
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.15);
}

.web-demo-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.web-demo-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.web-demo-heading svg {
  color: var(--accent-orange-500);
}

.web-demo-url {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent-orange-400);
  text-decoration: none;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.web-demo-url:hover {
  text-decoration: underline;
}

.btn-play-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-fire-start), var(--accent-orange-500));
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-play-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 87, 34, 0.6);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 10px;
}

/* Tech Stack Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
}

.tech-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.tech-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange-400);
}

.tech-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.tech-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Android Edition Spotlight Section
   ========================================================================== */

.android-section {
  position: relative;
  overflow: hidden;
}

.android-spotlight-card {
  background: radial-gradient(circle at 75% 30%, rgba(255, 87, 34, 0.15) 0%, transparent 60%),
              linear-gradient(135deg, rgba(22, 25, 34, 0.95) 0%, rgba(13, 15, 20, 0.98) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 56px 48px;
  box-shadow: var(--shadow-card), 0 0 50px var(--accent-glow);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
}

.android-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.android-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 5px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #4ade80;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.android-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
}

.android-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.android-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.android-feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.android-feature-item svg {
  color: var(--accent-orange-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.android-feature-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.android-feature-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Mock Phone Device Frame */
.android-device-mockup {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-frame {
  width: 280px;
  aspect-ratio: 9 / 18.5;
  background: #000;
  border-radius: 36px;
  border: 4px solid #2d3139;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--accent-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-camera-notch {
  width: 80px;
  height: 18px;
  background: #2d3139;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-hud-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px 18px;
  pointer-events: none;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #fff;
}

.hud-fps {
  color: #4ade80;
  font-weight: 700;
}

.hud-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-speed {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hud-speed span {
  font-size: 0.75rem;
  color: var(--accent-orange-400);
}

.hud-stage {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Studio Vision & Values
   ========================================================================== */

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
}

.vision-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 36px 30px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-subtle);
  transition: var(--transition-smooth);
}

.vision-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.vision-card:hover::before {
  background: var(--accent-orange-500);
  box-shadow: 0 0 12px var(--accent-orange-500);
}

.vision-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-orange-500);
  opacity: 0.75;
}

.vision-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.vision-text {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   CTA Banner ("To dopiero początek")
   ========================================================================== */

.cta-banner-section {
  padding: 40px 0 90px;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.12) 0%, rgba(20, 24, 32, 0.95) 50%, rgba(10, 12, 16, 0.98) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px var(--accent-glow);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.cta-banner-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
  margin-top: auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-col-links a:hover {
  color: var(--accent-orange-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #4ade80;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}


/* ==========================================================================
   Privacy Policy & Legal Subpage Styling
   ========================================================================== */

.privacy-page {
  padding: 40px 0 90px;
  position: relative;
}

/* Breadcrumbs */
.privacy-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.privacy-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.privacy-breadcrumbs a:hover {
  color: var(--accent-orange-400);
}

.privacy-breadcrumbs .crumb-sep {
  color: rgba(255, 255, 255, 0.2);
}

.privacy-breadcrumbs .crumb-current {
  color: var(--accent-orange-400);
}

/* Privacy Hero Banner */
.privacy-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(22, 25, 32, 0.95) 0%, rgba(15, 17, 21, 0.92) 100%);
  border: 1px solid rgba(255, 87, 34, 0.28);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 87, 34, 0.12);
  margin-bottom: 32px;
  overflow: hidden;
}

.privacy-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange-500), #ff9100, transparent);
}

.privacy-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.privacy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--accent-orange-400);
  text-transform: uppercase;
}

/* Language Toggle Switcher */
.privacy-lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(8, 9, 11, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.lang-btn.active {
  background: var(--accent-orange-500);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.5);
}

.privacy-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.privacy-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 860px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.privacy-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.privacy-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-meta-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.privacy-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Highlights Grid (At a glance) */
.privacy-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.privacy-highlight-card {
  background: rgba(18, 21, 28, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px 20px;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-highlight-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 87, 34, 0.1);
}

.privacy-highlight-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange-400);
}

.privacy-highlight-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.privacy-highlight-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Two-column Main Layout */
.privacy-main-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Sidebar & Sticky Table of Contents */
.privacy-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy-toc-card {
  background: rgba(18, 21, 28, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.privacy-toc-heading {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.privacy-toc-link {
  display: block;
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  line-height: 1.4;
  border-left: 2px solid transparent;
}

.privacy-toc-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--accent-orange-400);
}

.privacy-toc-link.is-active {
  color: var(--accent-orange-400);
  background: rgba(255, 87, 34, 0.08);
  border-left-color: var(--accent-orange-500);
  font-weight: 600;
}

.privacy-sidebar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.privacy-sidebar-btn:hover {
  background: rgba(255, 87, 34, 0.12);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* Article / Main Legal Content */
.privacy-article {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.privacy-section-block {
  background: rgba(18, 21, 28, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 34px 36px;
  position: relative;
  transition: border-color var(--transition-smooth);
}

.privacy-section-block:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.privacy-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.privacy-section-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange-400);
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  padding: 4px 10px;
  flex-shrink: 0;
  margin-top: 3px;
}

.privacy-section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.privacy-body {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.75;
}

.privacy-body p {
  margin-bottom: 16px;
}

.privacy-body p:last-child {
  margin-bottom: 0;
}

.privacy-body ul,
.privacy-body ol {
  margin: 14px 0 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-body li {
  line-height: 1.65;
}

.privacy-body li strong {
  color: #ffffff;
}

.privacy-body a {
  color: var(--accent-orange-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.privacy-body a:hover {
  color: #ffffff;
}

/* Callout Boxes */
.privacy-callout {
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.privacy-callout-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-callout-content {
  font-size: 0.92rem;
  line-height: 1.6;
}

.privacy-callout-content strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.privacy-callout.info {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #e0f2fe;
}
.privacy-callout.info .privacy-callout-icon {
  color: #38bdf8;
}

.privacy-callout.success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #dcfce7;
}
.privacy-callout.success .privacy-callout-icon {
  color: #4ade80;
}

.privacy-callout.play-console {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid var(--border-accent);
  color: #fff7ed;
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.12);
}
.privacy-callout.play-console .privacy-callout-icon {
  color: var(--accent-orange-400);
}

/* Permissions Table */
.privacy-table-container {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(10, 12, 16, 0.6);
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.privacy-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.privacy-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  line-height: 1.5;
  vertical-align: top;
}

.privacy-table tr:last-child td {
  border-bottom: none;
}

.privacy-table code {
  font-family: var(--font-mono);
  color: var(--accent-orange-400);
  background: rgba(255, 87, 34, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}

.badge-no-data {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
}

/* Google Play Data Safety Card */
.play-safety-cheatsheet {
  background: linear-gradient(135deg, rgba(22, 26, 35, 0.95) 0%, rgba(15, 17, 22, 0.98) 100%);
  border: 1px solid var(--accent-orange-500);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 0 35px rgba(255, 87, 34, 0.18);
  margin-top: 10px;
}

.play-safety-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.play-safety-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.play-safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.play-safety-item {
  background: rgba(8, 9, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.play-safety-q {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 6px;
}

.play-safety-a {
  font-size: 0.96rem;
  font-weight: 700;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-safety-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Language Visibility */
[data-lang="en"] {
  display: none;
}

body[data-active-lang="en"] [data-lang="pl"] {
  display: none !important;
}

body[data-active-lang="en"] [data-lang="en"] {
  display: block !important;
}

/* Inline language elements */
span[data-lang="en"], a[data-lang="en"], strong[data-lang="en"] {
  display: none;
}

body[data-active-lang="en"] span[data-lang="pl"],
body[data-active-lang="en"] a[data-lang="pl"],
body[data-active-lang="en"] strong[data-lang="pl"] {
  display: none !important;
}

body[data-active-lang="en"] span[data-lang="en"],
body[data-active-lang="en"] a[data-lang="en"],
body[data-active-lang="en"] strong[data-lang="en"] {
  display: inline !important;
}

/* Print Stylesheet for Official Records */
@media print {
  #speed-canvas,
  .bg-ambient,
  .bg-grid,
  .site-header,
  .site-footer,
  .privacy-lang-switch,
  .privacy-sidebar,
  .hero-cta-group,
  .privacy-sidebar-btn {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .site-wrapper {
    min-height: auto;
  }

  .privacy-page {
    padding: 0;
  }

  .privacy-main-layout {
    display: block !important;
  }

  .privacy-hero-card,
  .privacy-section-block,
  .play-safety-cheatsheet {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 24px;
    padding: 20px;
  }

  .privacy-title,
  .privacy-section-title,
  .play-safety-title {
    color: #111827 !important;
  }

  .privacy-body,
  .privacy-lead {
    color: #374151 !important;
  }

  .privacy-table th {
    background: #f3f4f6 !important;
    color: #111827 !important;
  }

  .privacy-table td {
    color: #374151 !important;
  }
}

/* Responsive adjustments for Legal Page */
@media (max-width: 1100px) {
  .privacy-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .privacy-main-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .privacy-sidebar {
    position: static;
  }

  .privacy-toc-card {
    display: none; /* In mobile, content is linear */
  }

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

@media (max-width: 640px) {
  .privacy-hero-card {
    padding: 24px 18px;
  }

  .privacy-title {
    font-size: 1.85rem;
  }

  .privacy-section-block {
    padding: 24px 18px;
  }

  .privacy-highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Tablet & Smaller Desktops */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-lead {
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats-row {
    justify-content: center;
  }

  .project-card-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
  }

  .android-spotlight-card {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    text-align: center;
    gap: 36px;
  }

  .android-content {
    align-items: center;
  }

  .android-features-grid {
    text-align: left;
    max-width: 540px;
  }
}

/* Mobile Devices (Smartphones & Small Tablets: <= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 38px;
  }

  .section-title {
    font-size: clamp(1.75rem, 5.2vw, 2.4rem);
    margin-bottom: 12px;
  }

  .section-desc {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  /* Header & Navigation Bar */
  .site-header .nav-container {
    height: 72px;
  }

  .github-nav-btn {
    display: none;
  }

  .nav-play-btn {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .menu-toggle {
    display: flex;
  }

  /* Glassmorphic Mobile Drawer */
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 72px);
    background: linear-gradient(180deg, rgba(16, 19, 26, 0.98) 0%, rgba(10, 11, 15, 0.99) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-accent);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9);
    flex-direction: column;
    padding: 24px 20px 32px;
    gap: 20px;
    overflow-y: auto;
    z-index: 99;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
                opacity 240ms ease;
  }

  .nav-menu.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
  }

  .nav-link::after {
    content: '→';
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    font-size: 1.15rem;
    color: var(--accent-orange-500);
    transition: transform var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link:active {
    background: rgba(255, 87, 34, 0.12);
    border-color: var(--border-accent);
    color: var(--accent-orange-400);
    transform: none;
  }

  .nav-link:hover::after,
  .nav-link:active::after {
    transform: translateX(4px);
    width: auto;
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-menu-play-btn,
  .mobile-menu-gh-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.96rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 50px 0 36px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 6.5vw, 3.2rem);
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    gap: 12px;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding-top: 18px;
    text-align: center;
  }

  .stat-val {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .hero-visual-card {
    padding: 24px 20px;
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-logo-img-wrap {
    width: min(210px, 55vw);
    height: min(210px, 55vw);
    margin-bottom: 18px;
  }

  /* OpenRally Showcase Section */
  .project-card-hero {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .project-title {
    font-size: clamp(1.45rem, 4.5vw, 1.9rem);
  }

  .media-badge-live {
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  .media-thumbnails-row {
    gap: 8px;
  }

  .web-demo-callout {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    text-align: left;
  }

  .btn-play-sm {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .project-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .project-actions .btn-primary,
  .project-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Android Release Spotlight */
  .android-spotlight-card {
    padding: 32px 20px;
    border-radius: 20px;
    text-align: center;
  }

  .android-title {
    font-size: clamp(1.6rem, 5vw, 2.3rem);
  }

  .android-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
    text-align: left;
  }

  .android-feature-item {
    padding: 14px;
  }

  .android-content .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .phone-frame {
    width: min(230px, 65vw);
    border-radius: 30px;
    border-width: 3px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 25px var(--accent-glow);
  }

  .phone-camera-notch {
    width: 65px;
    height: 14px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .hud-speed {
    font-size: 1.4rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 36px 20px;
    border-radius: 20px;
  }

  .cta-banner-title {
    font-size: clamp(1.65rem, 5vw, 2.4rem);
  }

  .cta-banner-desc {
    font-size: 0.98rem;
  }

  .cta-banner-content .hero-cta-group {
    width: 100%;
    max-width: 400px;
  }

  /* Footer */
  .site-footer {
    padding: 48px 0 28px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    width: 100%;
  }

  .footer-col:nth-child(3) {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding-top: 20px;
  }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  /* Ultra-clean Header on small screens */
  .site-header .nav-container {
    height: 66px;
  }

  .brand-emblem-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .brand-name {
    font-size: 1.05rem;
    gap: 4px;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .nav-play-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .nav-menu {
    top: 66px;
    max-height: calc(100vh - 66px);
    padding: 20px 16px 28px;
  }

  /* Hero adjustments */
  .hero-section {
    padding: 40px 0 30px;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-stats-row {
    gap: 8px;
    padding-top: 14px;
  }

  .stat-val {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }

  .hero-visual-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .hero-card-tag {
    font-size: 1.2rem;
  }

  .spec-tag {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  /* OpenRally Showcase adjustments */
  .project-card-hero {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .badge-tag {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .feature-checklist li {
    font-size: 0.88rem;
  }

  /* Android Showcase adjustments */
  .android-spotlight-card {
    padding: 24px 14px;
    border-radius: 16px;
  }

  .android-pill {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  /* CTA Banner adjustments */
  .cta-banner {
    padding: 30px 16px;
    border-radius: 16px;
  }

  /* Footer adjustments */
  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-col:nth-child(3) {
    grid-column: span 1;
  }
}

/* Very Narrow Devices (<= 360px) */
@media (max-width: 360px) {
  .brand-name {
    font-size: 0.96rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-stats-row {
    gap: 6px;
  }

  .stat-val {
    font-size: 1.05rem;
  }

  .stat-label {
    font-size: 0.56rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 16px;
    font-size: 0.92rem;
  }
}

@media (max-width: 350px) {
  .nav-play-btn {
    display: none;
  }
}
