/* ==========================================================================
   UPLIF STUDIO DESIGN SYSTEM & TOKENS
   Modern Dual-Theme (Dark & Light) Glassmorphism System
   ========================================================================== */

:root {
  /* Common Brand Tokens */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Monaco, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --accent-rgb: 99, 102, 241; /* Indigo */
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   DARK THEME (Default: Deep Obsidian & Electric Indigo Glass)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-canvas: #090b10;
  --bg-surface: rgba(15, 18, 25, 0.75);
  --bg-surface-elevated: rgba(22, 27, 38, 0.85);
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.065);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(129, 140, 248, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.04);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --glass-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  --glass-shadow-hover: 0 24px 50px -12px rgba(99, 102, 241, 0.22), 0 0 0 1px rgba(129, 140, 248, 0.3) inset;
  
  --glow-orb-1: rgba(99, 102, 241, 0.16);
  --glow-orb-2: rgba(6, 182, 212, 0.12);
  --glow-orb-3: rgba(168, 85, 247, 0.12);
  
  --header-bg: rgba(9, 11, 16, 0.72);
  --chip-bg: rgba(255, 255, 255, 0.05);
  --chip-text: #cbd5e1;
}

/* --------------------------------------------------------------------------
   LIGHT THEME (Refined Quartz Glass & High-Contrast Graphite)
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --bg-canvas: #f6f8fb;
  --bg-surface: rgba(255, 255, 255, 0.82);
  --bg-surface-elevated: rgba(255, 255, 255, 0.95);
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(99, 102, 241, 0.45);
  --border-subtle: rgba(0, 0, 0, 0.05);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  
  --glass-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  --glass-shadow-hover: 0 20px 40px -8px rgba(99, 102, 241, 0.18), 0 0 0 1px rgba(99, 102, 241, 0.3) inset;
  
  --glow-orb-1: rgba(99, 102, 241, 0.08);
  --glow-orb-2: rgba(6, 182, 212, 0.06);
  --glow-orb-3: rgba(168, 85, 247, 0.06);
  
  --header-bg: rgba(246, 248, 251, 0.82);
  --chip-bg: rgba(15, 23, 42, 0.05);
  --chip-text: #334155;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient Animated Glow Mesh Background */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.85;
  will-change: transform;
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.orb-1 {
  top: -15%;
  left: 20%;
  width: 55vw;
  height: 55vw;
  background: var(--glow-orb-1);
  animation-duration: 24s;
}

.orb-2 {
  top: 40%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: var(--glow-orb-2);
  animation-duration: 28s;
  animation-delay: -6s;
}

.orb-3 {
  bottom: -15%;
  left: 10%;
  width: 50vw;
  height: 50vw;
  background: var(--glow-orb-3);
  animation-duration: 32s;
  animation-delay: -12s;
}

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

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.studio-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform var(--transition-fast);
}

.brand-lockup:hover {
  transform: translateY(-1px);
}

.brand-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.brand-svg rect {
  fill: #0f1219;
  stroke: rgba(99, 102, 241, 0.4);
  transition: fill var(--transition-fast), stroke var(--transition-fast);
}

.brand-svg .brand-arrow {
  stroke: #ffffff;
  transition: stroke var(--transition-fast);
}

[data-theme="light"] .brand-svg rect {
  fill: #e0e7ff;
  stroke: rgba(99, 102, 241, 0.45);
}

[data-theme="light"] .brand-svg .brand-arrow {
  stroke: #312e81 !important;
}

[data-theme="light"] .brand-svg path:first-of-type {
  stroke: #4f46e5;
}

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

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

/* Theme Toggle Button */
.btn-theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: rotate(15deg);
}

.icon-sun, .icon-moon {
  width: 18px;
  height: 18px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Language Switcher Styling */
.lang-switcher-mount {
  position: relative;
}

.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
}

.lang-globe-icon {
  font-size: 1rem;
  line-height: 1;
}

.lang-arrow {
  width: 9px;
  height: 9px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px;
  width: 270px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 150;
  display: none;
}

.lang-dropdown.open .lang-menu {
  display: block;
}

.lang-menu-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.lang-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  max-height: 320px;
  overflow-y: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.lang-option.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--accent-light);
  font-weight: 700;
}

.lang-opt-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-opt-native {
  flex: 1;
}

.lang-opt-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- RTL (Right-To-Left) Support (Arabic) --- */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .studio-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-option {
  text-align: right;
  flex-direction: row-reverse;
}

[dir="rtl"] .craft-box {
  direction: rtl;
}

[dir="rtl"] .footer-top {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-links-grid {
  flex-direction: row-reverse;
}


/* --------------------------------------------------------------------------
   HERO MANIFESTO SECTION
   -------------------------------------------------------------------------- */
.studio-hero {
  padding: 92px 0 44px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-heading {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 740px;
  margin: 0 auto 16px;
}

.hero-heading span.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Button Component Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px -4px rgba(99, 102, 241, 0.45);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   PRODUCTS SECTION (FLAGSHIP & LAB CARDS)
   -------------------------------------------------------------------------- */
.section-products {
  padding: 40px 0 70px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Flagship Card: PanoRA */
.card-flagship {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow: var(--glass-shadow);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.card-flagship::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.card-flagship:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-3px);
}

.flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.flagship-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.flagship-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

/* Feature Chips */
.chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.chip-item {
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-item svg {
  width: 13px;
  height: 13px;
  color: var(--accent-light);
}

.flagship-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Visual Media Side */
.flagship-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.15);
}

.flagship-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-smooth);
}

.card-flagship:hover .flagship-img {
  transform: scale(1.02);
}

/* Secondary Products / Lab Grid */
.secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.card-sub {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-sub:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-3px);
}

.sub-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.sub-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.sub-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   STUDIO PRINCIPLES (MANIFESTO)
   -------------------------------------------------------------------------- */
.section-principles {
  padding: 50px 0;
  border-top: 1px solid var(--border-subtle);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-fast);
}

.principle-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.principle-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.principle-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.principle-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   ENGINEERING & TECH CRAFT
   -------------------------------------------------------------------------- */
.section-craft {
  padding: 50px 0 70px;
}

.craft-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.craft-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

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

.stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.studio-footer {
  border-top: 1px solid var(--border-glass);
  padding: 40px 0 28px;
  background: var(--bg-canvas);
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-col-brand {
  max-width: 320px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links-grid {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 16px;
}

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

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

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
.mobile-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.mobile-nav-toggle:active {
  transform: scale(0.94);
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  z-index: 99;
  box-shadow: var(--glass-shadow);
}

.mobile-drawer.open {
  max-height: 360px;
  padding: 16px 0 20px;
}

.mobile-drawer-inner {
  padding: 0 20px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

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

[dir="rtl"] .mobile-nav-link {
  text-align: right;
  flex-direction: row-reverse;
}

@media (max-width: 1024px) {
  .card-flagship {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .craft-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .studio-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .nav-actions {
    gap: 8px;
  }
  .secondary-grid {
    grid-template-columns: 1fr;
  }
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .footer-links-grid {
    gap: 32px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 4px;
  }
  .nav-actions {
    gap: 6px;
  }
  .btn-theme-toggle {
    width: 34px;
    height: 34px;
  }
  .mobile-nav-toggle {
    width: 34px;
    height: 34px;
  }
  .lang-btn {
    padding: 6px 8px;
  }
  .lang-btn-name {
    display: none;
  }
  .hero-heading {
    font-size: 1.85rem;
  }
  .hero-subtext {
    font-size: 0.9rem;
  }
  .card-flagship {
    padding: 24px 18px;
  }
}

