/* ==========================================================================
   ByWare – Modern Indie Developer Studio CSS
   Apple-inspired Dark Aesthetic, Glassmorphism & Fluid Responsive Scaling
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
  /* Color Palette - Sophisticated Dark Graphite/Slate */
  --bg-main: #0b0d11;
  --bg-surface: #12151c;
  --bg-surface-alt: #171b24;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --bg-glass-active: rgba(255, 255, 255, 0.09);
  --bg-card: rgba(18, 22, 29, 0.75);

  /* Subtle Glass-Morphism Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(52, 211, 153, 0.3);

  /* Unified Studio Accent Palette (ByRoutine Signature Mint & Emerald) */
  --accent-primary: #10b981;
  --accent-primary-hover: #34d399;
  --accent-primary-muted: rgba(16, 185, 129, 0.12);
  --accent-mint: #34d399;
  --accent-emerald: #10b981;
  --accent-green: #10b981;
  --accent-blue: #38bdf8;
  --accent-indigo: #10b981;
  --accent-purple: #a78bfa;
  --accent-cyan: #38bdf8;
  --accent-orange: #fb923c;
  --accent-red: #f87171;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;

  /* Font Families (Apple SF Pro Font Stack) */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid Typography Clamps */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.825rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.3vw, 0.95rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.4vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 1vw, 2rem);
  --text-3xl: clamp(1.85rem, 1.5rem + 1.75vw, 2.75rem);
  --text-hero: clamp(2.35rem, 4.5vw + 0.5rem, 4.25rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;

  /* Refined Studio Drop-Shadows & Ambient Glows (No harsh neon flares) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 48px -10px rgba(0, 0, 0, 0.55), 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --glow-primary: 0 0 35px rgba(16, 185, 129, 0.06);
  --glow-button: 0 2px 14px rgba(16, 185, 129, 0.25);

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;

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

  /* Max Widths - Balanced for indie software studio aesthetics */
  --max-width: 1160px;
  --max-width-narrow: 800px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-secondary);
  overflow-x: hidden;
  max-width: 100%;
  transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  background-color: var(--bg-main);
  color: var(--text-secondary);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
}

/* Prevent layout jump when modal locks scroll */
body.modal-open,
body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

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

button, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

ul[role="list"] {
  list-style: none;
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 3px;
}

/* Selection Highlight */
::selection {
  background-color: rgba(16, 185, 129, 0.3);
  color: #ffffff;
}

/* --- Ambient Glow Backgrounds --- */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.5;
}

.glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, 90vw);
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.02) 45%, transparent 75%);
}

.glow-right {
  top: 25%;
  right: 0;
  width: min(500px, 60vw);
  height: 600px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.05) 0%, rgba(16, 185, 129, 0.01) 45%, transparent 75%);
}

/* --- Common Layout & Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

.section {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  position: relative;
}

/* Ensure anchors and section headers are never covered by the floating navbar */
html {
  scroll-padding-top: 100px;
}

section,
[id] {
  scroll-margin-top: 100px;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Glass Panel Utility --- */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-spring), 
              border-color var(--duration-normal) ease, 
              box-shadow var(--duration-normal) ease;
}

/* --- Header & Navbar --- */
.navbar-wrapper {
  position: fixed;
  top: clamp(0.75rem, 2vw, 1.25rem);
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(14, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.brand-logo img.logo-icon {
  border-radius: var(--radius-full);
  object-fit: cover;
}

.brand-name {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
  padding: 0.35rem 0;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: background var(--duration-fast) ease, 
              color var(--duration-fast) ease, 
              border-color var(--duration-fast) ease, 
              transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--border-light);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.92);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.theme-toggle .theme-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Dark Mode: Sun visible (prompting switch to light mode), Moon hidden */
.theme-toggle .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Light Mode: Moon visible (prompting switch to dark mode), Sun hidden */
[data-theme="light"] .theme-toggle .theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 3px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  position: relative;
  flex-shrink: 0;
  gap: 2px;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) var(--ease-spring);
  user-select: none;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  font-weight: 700;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

/* Light mode for Language Switcher */
[data-theme="light"] .lang-switch {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lang-btn {
  color: var(--text-secondary);
}

[data-theme="light"] .lang-btn:hover {
  color: var(--text-primary);
}

[data-theme="light"] .lang-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

/* Prevent flicker on initial load for English users */
html[data-lang="en"]:not(.i18n-ready) body {
  opacity: 0;
}

html.i18n-ready body {
  opacity: 1;
  transition: opacity 0.15s ease-in;
}

/* Mobile drawer theme toggle row */
.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  gap: 5px;
  transition: background var(--duration-fast) ease;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-spring), opacity var(--duration-fast) ease;
}

/* Hamburger active state */
.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 85vw);
  background: rgba(12, 12, 16, 0.94);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border-left: 1px solid var(--border-light);
  z-index: 999;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-spring);
  display: flex;
  flex-direction: column;
  border-radius: 0;
}

.mobile-nav-drawer.active {
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.mobile-nav-link {
  display: block;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mobile-nav-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* --- Buttons & Action Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
  position: relative;
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: var(--text-base);
  min-height: 48px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3), 0 2px 4px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

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

.btn-arrow {
  transition: transform var(--duration-fast) ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* --- Hero Section --- */
.hero-section {
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 980px;
}

/* Sleek borderless micro-label for category headers */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  margin-bottom: 1.25rem;
  box-shadow: none;
}

.section-header .status-dot,
.status-pill .status-dot {
  display: none !important;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  max-width: 6px;
  max-height: 6px;
  border-radius: 50%;
  background-color: var(--accent-mint);
  box-shadow: none;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  box-sizing: border-box;
}

.status-dot::after {
  display: none;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

.status-dot-soon {
  background-color: var(--accent-mint);
  box-shadow: none;
}

.status-dot-soon::after {
  display: none;
}

.section-tag-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  vertical-align: middle;
}

.status-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 860px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* Hero Mockup Card */
.hero-mockup-wrapper {
  width: 100%;
  max-width: min(860px, 100%);
  perspective: 1000px;
  overflow: hidden;
}

.window-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  overflow: hidden;
  background: rgba(16, 16, 22, 0.85);
  text-align: left;
  width: 100%;
  max-width: 100%;
}

.window-header {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border-subtle);
}

.traffic-lights {
  display: flex;
  gap: 7px;
  width: 60px;
}

.light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.light.red { background-color: #ff5f56; }
.light.yellow { background-color: #ffbd2e; }
.light.green { background-color: #27c93f; }

.window-title {
  flex-grow: 1;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.window-spacer {
  width: 60px;
}

.window-body {
  padding: 1.25rem;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
}

.mockup-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-right: 1px solid var(--border-subtle);
  padding-right: 1rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-tertiary);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.sidebar-item.active {
  background: rgba(16, 185, 129, 0.15);
  color: #ffffff;
}

.mockup-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.code-snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-primary);
  font-weight: 600;
}

.badge-mini {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.badge-active {
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
}

.code-block {
  background: rgba(8, 8, 12, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: #dedee3;
  overflow-x: auto;
}

.code-kw { color: #ff7ab2; font-weight: 600; }
.code-type { color: #78c5d6; }

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.metric-val {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 0.15rem;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.text-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
  background: transparent;
  border: none;
  padding: 0;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Showcase / App Cards --- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.apps-grid.single-item {
  display: flex;
  justify-content: center;
}

.single-app-card {
  max-width: 680px;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  height: 100%;
  border-radius: var(--radius-lg);
  background: rgba(14, 17, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.08);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

/* App Icon Continuous Squircle */
.squircle {
  width: 58px;
  height: 58px;
  border-radius: 15px; /* Continuous corner curvature */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.icon-grad-1 {
  background: linear-gradient(145deg, #bf5af2, #5e5ce6);
}

.icon-grad-2 {
  background: linear-gradient(145deg, #0a84ff, #0056b3);
}

.icon-grad-3 {
  background: linear-gradient(145deg, #64d2ff, #0a84ff);
}

.squircle-svg {
  width: 30px;
  height: 30px;
}

.app-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

/* Functional status tags inside cards */
.pill-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.2;
}

.pill-purple {
  background: rgba(167, 139, 250, 0.1);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.2);
}

.pill-blue {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.2);
}

.pill-cyan {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.2);
}

.pill-green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.25);
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.tag-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.tag-chip {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.pill-status {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.app-card-body {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.app-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.app-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
}

.app-availability {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-tertiary);
}

.app-availability svg {
  color: var(--text-muted);
}

.link-arrow {
  color: var(--accent-blue);
  font-weight: 600;
  transition: transform var(--duration-fast) ease, color var(--duration-fast) ease;
}

.link-arrow:hover {
  color: var(--text-primary);
  transform: translateX(2px);
}

/* ==========================================================================
   PROJECTS SECTION (Compact Overview on Homepage)
   ========================================================================== */
.projects-section {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.status-pill-blue {
  background: transparent;
  border: none;
  margin-bottom: 0.85rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.project-teaser-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(2.25rem, 4.5vw, 3.25rem);
  border-radius: var(--radius-xl);
  background: rgba(14, 17, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  align-items: center;
  transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.project-teaser-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65), 0 0 30px rgba(16, 185, 129, 0.08);
}

.project-teaser-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, rgba(16, 185, 129, 0.02) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.project-teaser-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.project-teaser-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.project-teaser-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-teaser-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.project-teaser-tagline {
  font-size: var(--text-sm);
  color: #34d399;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.project-teaser-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 52ch;
}

.compact-chips {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.project-teaser-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
}

.project-btn {
  padding: 0.75rem 1.4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.project-teaser-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.project-teaser-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  min-width: 0;
}

.project-preview-mockup-link {
  display: block;
  text-decoration: none;
  width: min(230px, 100%);
  max-width: 230px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.project-preview-mockup-link:hover {
  transform: translateY(-4px);
}

.mini-iphone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 470 / 1024;
  background: #0e1117;
  border-radius: 32px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.project-preview-mockup-link:hover .mini-iphone-frame {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 24px 54px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.12);
}

.mini-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 27px;
  display: block;
}

.mini-iphone-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, transparent 60%);
}

.preview-badge-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 14, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.project-preview-mockup-link:hover .preview-badge-overlay {
  background: #10b981;
  color: #ffffff;
  border-color: #34d399;
}

/* ==========================================================================
   SUBPAGE & DEDICATED BYROUTINE PAGE STYLES
   ========================================================================== */
.subpage-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.subpage-back-link:hover {
  color: var(--text-primary);
  transform: translateX(-3px);
}

.brand-subpage-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-left: 0.6rem;
  letter-spacing: 0.02em;
}

.subpage-hero {
  padding-top: clamp(6.5rem, 11vw, 9.5rem) !important;
}

.nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--duration-fast) ease;
}

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

.nav-back-link svg {
  transition: transform var(--duration-fast) ease;
}

.nav-back-link:hover svg {
  transform: translateX(-3px);
}

.byroutine-deepdive {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
}

.deepdive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.deepdive-card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: rgba(18, 22, 26, 0.6);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) ease;
}

.deepdive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.08);
}

.deepdive-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deepdive-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.deepdive-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- ByRoutine Sneak Peek Showcase --- */
.status-pill-green {
  background: transparent;
  border: none;
  margin-bottom: 0.85rem;
}

.text-green {
  color: rgba(255, 255, 255, 0.6);
}

.icon-grad-routine {
  background: linear-gradient(145deg, #10b981 0%, #047857 100%);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.sneak-peek-showcase {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2rem, 4.5vw, 3.25rem);
  border-radius: var(--radius-xl);
  background: rgba(14, 17, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.sneak-peek-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.sneak-peek-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-title-sub {
  display: inline;
  font-size: 0.88em;
  font-weight: 500;
  color: var(--text-secondary);
}

.sneak-peek-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.feature-icon-bullet {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.feature-text span {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Routine Release Callout --- */
.routine-release-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.routine-release-callout .callout-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.routine-release-callout .callout-content {
  flex: 1;
  min-width: 0;
}

.routine-release-callout .callout-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #34d399;
  margin-bottom: 0.2rem;
}

.routine-release-callout .callout-text {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.routine-release-callout .callout-text strong {
  color: #ffffff;
}

.sneak-peek-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.mockup-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 90%);
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, rgba(16, 185, 129, 0.02) 55%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.devices-display {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  position: relative;
  z-index: 1;
}

.iphone-frame-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(220px, 48%);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.iphone-frame-wrapper:hover {
  transform: translateY(-4px);
}

.iphone-caption-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  white-space: nowrap;
}

.caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: none;
}

.badge-garden .caption-dot {
  background: #38bdf8;
  box-shadow: none;
}

.iphone-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 470 / 1024;
  background: #0e1117;
  border-radius: 34px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  overflow: hidden;
  outline: none;
  transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal) ease, border-color var(--duration-normal) ease;
}

.iphone-mockup:hover,
.iphone-mockup:focus-visible {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 24px 54px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.12);
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  background: #0e1117;
  position: relative;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-normal) ease;
}

.iphone-mockup:hover .screenshot-img {
  transform: scale(1.02);
}

.iphone-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 40%, transparent 60%);
  z-index: 2;
}

.zoom-indicator {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(14, 17, 23, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

.iphone-mockup:hover .zoom-indicator,
.iphone-mockup:focus-visible .zoom-indicator {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sneak-peek-hint {
  margin-top: 1.15rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* Lightbox Modal for Screenshots */
.modal-screenshot {
  max-width: 460px;
  background: rgba(14, 17, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.08);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.modal-screenshot-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.85rem;
}

.screenshot-preview-container {
  max-height: 68vh;
  width: auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e1117;
}

.modal-screenshot-image {
  max-height: 68vh;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.modal-screenshot-caption {
  font-size: 0.825rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.45;
}

/* --- Philosophy / Pillars --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.pillar-icon-emerald {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(52, 211, 153, 0.2) !important;
  color: #34d399 !important;
}

.pillar-card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: rgba(14, 17, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.pillar-card:hover {
  border-color: rgba(52, 211, 153, 0.25);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.05);
  transform: translateY(-3px);
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #34d399;
}

.pillar-svg {
  width: 24px;
  height: 24px;
}

.pillar-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* --- Waitlist / Newsletter Section --- */
.waitlist-section {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.waitlist-card {
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.06) 0%, rgba(14, 17, 23, 0.85) 60%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.04);
}

.waitlist-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.waitlist-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.input-wrapper {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
}

.form-input {
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0 1.25rem 0 2.85rem;
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus {
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.form-input.is-invalid {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.2);
}

.input-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.form-submit {
  height: 50px;
  padding: 0 1.75rem;
  flex-shrink: 0;
}

/* Spinner inside button */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s infinite linear;
}

.btn.is-loading .btn-text,
.btn.is-loading .btn-arrow {
  display: none;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

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

/* Consent Checkbox */
.form-checkbox-wrapper {
  text-align: left;
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.custom-checkbox:checked + .checkbox-box {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.check-icon {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--duration-fast) var(--ease-spring);
}

.custom-checkbox:checked + .checkbox-box .check-icon {
  opacity: 1;
  transform: scale(1);
}

.checkbox-text {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.5;
}

.inline-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration-fast) ease;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.inline-link:hover {
  text-decoration-color: #ffffff;
}

/* Feedback message */
.form-feedback {
  margin-top: 1rem;
  font-size: var(--text-xs);
  min-height: 1.25rem;
}

.form-feedback.error {
  color: var(--accent-red);
}

.form-feedback.success {
  color: var(--accent-green);
}

.form-feedback.info {
  color: var(--text-secondary);
}

/* --- Coming Soon Waitlist State --- */
.coming-soon-box {
  margin-top: 1rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2.25rem);
  background: rgba(18, 18, 24, 0.55);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-mint);
  margin-bottom: 0.85rem;
}

.coming-soon-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.55;
}

.form-input-disabled,
.form-input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.coming-soon-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.note-lock {
  font-size: 0.85rem;
}

/* Success Box */
.waitlist-success {
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius-md);
  border-color: rgba(48, 209, 88, 0.3);
  background: rgba(48, 209, 88, 0.06);
  animation: fade-in-up 0.4s var(--ease-spring);
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.success-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.success-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 8, 12, 0.85);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  font-size: var(--text-sm);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) ease;
  text-align: left;
}

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

.platform-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.platform-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-indigo);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  max-width: 700px;
  line-height: 1.6;
}

.footer-meta {
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- DSGVO Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, calc(100% - 2rem));
  z-index: 990;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  background: rgba(14, 14, 20, 0.92);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.6);
  animation: banner-slide-up 0.4s var(--ease-spring);
}

@keyframes banner-slide-up {
  from {
    transform: translate(-50%, 40px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-text-wrapper {
  flex: 1;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.cookie-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.cookie-description {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* --- Modals (Legal & Cookie Settings) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: rgba(18, 22, 29, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-lg {
  max-width: 760px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-intro {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 14, 18, 0.5);
}

/* Cookie Category Toggles */
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.category-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.category-info {
  flex: 1;
}

.category-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.category-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.category-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}



/* Legal Modals Content Styling */
.legal-text-content {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #c5c5cb;
}

.legal-text-content h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-text-content h4:first-child {
  margin-top: 0;
}

.legal-text-content h5 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.legal-text-content p {
  margin-bottom: 0.85rem;
}

.legal-text-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-text-content li {
  margin-bottom: 0.4rem;
}

.legal-lead {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-indigo);
}

/* --- Micro-Animations --- */
.animate-fade-in {
  animation: fade-in 0.8s var(--ease-spring) both;
}

.animate-fade-up {
  animation: fade-in-up 0.9s var(--ease-spring) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN & MEDIA QUERIES (Mobile-First & Breakpoints)
   ========================================================================== */

/* Tablet & Smaller Desktops (<= 1100px) */
@media (max-width: 1100px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .sneak-peek-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .apps-grid,
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-links-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small Desktops & Tablets Landscape (<= 960px) */
@media (max-width: 960px) {
  .project-teaser-card {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding: clamp(2rem, 4vw, 2.75rem);
  }

  .project-teaser-actions {
    margin-bottom: 0.5rem;
  }

  .project-preview-mockup-link {
    width: min(230px, 60%);
    margin: 0 auto;
  }
}

/* Tablet Portrait & Large Phones (<= 834px) */
@media (max-width: 834px) {
  .nav-links,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mockup-grid {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    display: none;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .project-teaser-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-preview-mockup-link {
    width: min(220px, 65%);
    margin: 0 auto;
  }

  .deepdive-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  .apps-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .form-submit {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .modal-dialog {
    max-height: 92vh;
    border-radius: var(--radius-md);
  }

  .metrics-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Global Overflow Containment (prevent horizontal scroll on all screen sizes) --- */
html, body {
  overflow-x: clip;
}

main, header, footer, section {
  overflow-x: clip;
}

.navbar-wrapper {
  overflow-x: clip;
}

.cookie-banner {
  max-width: calc(100vw - 2rem);
  left: 50%;
  transform: translateX(-50%);
}

/* Mobile: ensure all widths stay within viewport */
@media (max-width: 640px) {
  .navbar-wrapper {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar {
    width: 100%;
    border-radius: var(--radius-full);
  }

  .code-block {
    font-size: 0.72rem;
    overflow-x: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .mockup-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .code-snippet-header {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .badge-mini {
    max-width: 50%;
    text-align: right;
    white-space: normal;
  }

  .window-body {
    padding: 0.85rem;
  }

  .window-title {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }

  .hero-mockup-wrapper {
    border-radius: var(--radius-md);
  }

  .modal-backdrop {
    padding: 0.75rem;
  }

  .sneak-peek-showcase {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  .devices-display {
    gap: 0.65rem;
    width: 100%;
  }

  .iphone-frame-wrapper {
    width: calc(50% - 0.35rem);
    max-width: 155px;
  }

  .iphone-mockup {
    border-radius: 24px;
    padding: 4px;
    border-width: 1.5px;
  }

  .iphone-screen {
    border-radius: 20px;
  }

  .iphone-caption-badge {
    font-size: 0.62rem;
    padding: 0.2rem 0.45rem;
    gap: 0.3rem;
  }

  .zoom-indicator {
    display: none;
  }
}

/* Product introduction and release status */
:where(section[id], main[id], .anchor-alias) { scroll-margin-top: 110px; }
.anchor-alias { display: block; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 2000; padding: .75rem 1rem; background: #fff; color: #111; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.hero-section { padding-top: clamp(7.5rem, 11vw, 10rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero-container { display: grid; grid-template-columns: 1.35fr 0.95fr; gap: clamp(2.5rem, 5vw, 4rem); max-width: var(--max-width); align-items: center; text-align: left; }
.hero-copy { min-width: 0; }
.hero-copy .hero-title { font-size: clamp(2.2rem, 3.8vw, 3.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
.hero-copy .hero-subtitle { margin: 1.5rem 0; max-width: 48ch; line-height: 1.65; font-size: clamp(1rem, 1.1vw, 1.15rem); color: var(--text-secondary); }
.hero-copy .hero-actions { justify-content: flex-start; gap: 0.85rem; margin-top: 1.75rem; }
.hero-preview { display: flex; align-items: center; flex-direction: column; gap: 0.85rem; color: var(--text-tertiary); font-size: var(--text-sm); text-align: center; }
.hero-preview img { width: min(250px, 100%); height: auto; aspect-ratio: 470 / 1024; object-fit: cover; background: #0e1117; padding: 5px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 30px; box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease; }
.hero-preview:hover img { transform: translateY(-4px); border-color: rgba(52, 211, 153, 0.35); box-shadow: 0 24px 54px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.12); }
.hero-preview span { font-size: 0.825rem; font-weight: 500; color: var(--text-tertiary); transition: color var(--duration-fast) ease; }
.hero-preview:hover span { color: var(--accent-mint); }
.release-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; text-align: left; }
.release-steps li { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02); border-radius: var(--radius-md); transition: transform var(--duration-fast) ease, border-color var(--duration-fast) ease; }
.release-steps li:hover { transform: translateY(-2px); border-color: rgba(52, 211, 153, 0.25); }
.release-steps strong { color: var(--text-primary); font-size: 1rem; }
.release-steps span { font-size: var(--text-sm); color: var(--text-secondary); }
.release-step-label { color: #34d399; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.release-note { margin: 0 0 1.5rem; }
.waitlist-card > .btn { white-space: normal; }
.footer-list { list-style: none; }
.sneak-peek-grid { grid-template-columns: 1fr 1fr; }
.sneak-peek-info .app-card-top { margin-bottom: 1rem; }
.sneak-peek-info .app-card-footer { flex-wrap: wrap; gap: 1rem; }
.subpage-hero .section-header { margin-bottom: 2rem; }
@media (max-width: 1024px) {
  .sneak-peek-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-container { gap: 2rem; }
  .hero-copy .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-copy .hero-subtitle { margin: 1rem auto; font-size: 1rem; }
  .hero-copy .hero-actions { margin-top: 1.25rem; justify-content: center; flex-direction: column; }
  .hero-copy .status-pill { margin-bottom: 1rem; justify-content: center; }
  .hero-preview img { width: 190px; }
  .release-steps { grid-template-columns: 1fr; }
  .status-text { letter-spacing: .04em; }
  .brand-subpage-badge { margin-left: .2rem; }
}

/* ==========================================================================
   White Mode / Light Mode Theme Styles
   ========================================================================== */
[data-theme="light"] {
  color-scheme: light;

  /* Color Palette */
  --bg-main: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-surface-alt: #ebebf0;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);
  --bg-glass-active: rgba(235, 235, 240, 0.95);
  --bg-card: rgba(255, 255, 255, 0.85);

  /* Glass Borders */
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.22);
  --border-accent: rgba(16, 185, 129, 0.4);

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;

  /* Brand Accents adjusted for light mode contrast (Unified Mint/Emerald) */
  --accent-indigo: #059669;
  --accent-blue: #0284c7;
  --accent-purple: #7c3aed;
  --accent-cyan: #0284c7;
  --accent-green: #10b981;
  --accent-emerald: #10b981;
  --accent-mint: #059669;
  --accent-orange: #ea580c;
  --accent-red: #dc2626;

  /* Shadows & Glows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --glow-primary: 0 0 35px rgba(16, 185, 129, 0.05);
  --glow-button: 0 2px 10px rgba(16, 185, 129, 0.2);
}

/* Ambient Glows in light mode */
[data-theme="light"] .glow-top {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(52, 211, 153, 0.02) 50%, transparent 75%);
  opacity: 0.8;
}

[data-theme="light"] .glow-right {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.04) 0%, rgba(16, 185, 129, 0.01) 50%, transparent 75%);
  opacity: 0.8;
}

/* Selection highlight in light mode */
[data-theme="light"] ::selection {
  background-color: rgba(16, 185, 129, 0.25);
  color: #047857;
}

/* Navbar in light mode */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Theme toggle in light mode */
[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.09);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.18);
}

/* Mobile toggle & drawer in light mode */
[data-theme="light"] .mobile-toggle {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-nav-backdrop {
  background: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .mobile-nav-drawer {
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-nav-link:hover,
[data-theme="light"] .mobile-nav-link:active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

[data-theme="light"] .mobile-theme-row {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Buttons in light mode */
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(5, 150, 105, 0.4);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.18);
  color: #0f172a;
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

/* Sleek borderless micro-labels in light mode */
[data-theme="light"] .status-pill,
[data-theme="light"] .section-tag {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 0.85rem;
  color: rgba(0, 0, 0, 0.55) !important;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

[data-theme="light"] .status-dot {
  background-color: var(--accent-emerald);
  box-shadow: none;
}

[data-theme="light"] .status-text {
  color: rgba(0, 0, 0, 0.55);
}

/* Softened text gradient in light mode */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0f172a 35%, #1e293b 70%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Code window mockup in light mode */
[data-theme="light"] .window-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.07), 0 0 30px rgba(16, 185, 129, 0.05);
}

[data-theme="light"] .window-header {
  background: #f7f7fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .mockup-sidebar {
  border-right: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .sidebar-item.active {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

[data-theme="light"] .code-block {
  background: #1e1e24;
  color: #f1f1f6;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .metric-card {
  background: #f7f7fa;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .badge-mini {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
}

[data-theme="light"] .badge-active {
  background: rgba(48, 209, 88, 0.15);
  color: #15803d;
}

/* Cards & Bento Grid in light mode */
[data-theme="light"] .app-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .app-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 0 25px rgba(16, 185, 129, 0.08);
  transform: translateY(-4px);
}

[data-theme="light"] .tag-chip {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.07);
  color: var(--text-secondary);
}

[data-theme="light"] .pill-purple {
  background: rgba(191, 90, 242, 0.12);
  color: #7c22b8;
}

[data-theme="light"] .pill-blue {
  background: rgba(10, 132, 255, 0.12);
  color: #0066cc;
}

[data-theme="light"] .pill-cyan {
  background: rgba(0, 160, 220, 0.12);
  color: #007799;
}

[data-theme="light"] .pill-green {
  background: rgba(48, 209, 88, 0.14);
  color: #15803d;
}

[data-theme="light"] .project-teaser-card {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05), 0 0 30px rgba(16, 185, 129, 0.05);
}

[data-theme="light"] .project-teaser-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 40px rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .project-teaser-tagline {
  color: #059669;
}

[data-theme="light"] .project-teaser-glow {
  opacity: 0.35;
}

/* ByRoutine Subpage elements in light mode */
[data-theme="light"] .brand-subpage-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .deepdive-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .deepdive-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09), 0 0 25px rgba(16, 185, 129, 0.08);
  transform: translateY(-4px);
}

[data-theme="light"] .deepdive-icon-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #059669;
}

[data-theme="light"] .status-pill-green {
  background: transparent !important;
  border: none !important;
  color: #059669 !important;
  padding: 0 !important;
}

[data-theme="light"] .text-green {
  color: #059669;
}

[data-theme="light"] .pill-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .sneak-peek-showcase {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06), 0 0 35px rgba(16, 185, 129, 0.06);
}

[data-theme="light"] .feature-icon-bullet {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #059669;
}

[data-theme="light"] .routine-release-callout {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .routine-release-callout .callout-text strong {
  color: #065f46;
}

/* Phone Mockup Frames in light mode */
[data-theme="light"] .mini-iphone-frame,
[data-theme="light"] .iphone-mockup {
  background: #181b22;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 0 20px rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .project-preview-mockup-link:hover .mini-iphone-frame,
[data-theme="light"] .mini-iphone-frame:hover,
[data-theme="light"] .iphone-mockup:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2), 0 0 30px rgba(16, 185, 129, 0.18);
}

[data-theme="light"] .hero-preview img {
  border-color: #d2d2d7;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .hero-preview {
  color: var(--text-secondary);
}

[data-theme="light"] .hero-preview:hover {
  color: var(--text-primary);
}

[data-theme="light"] .preview-badge-overlay {
  background: rgba(255, 255, 255, 0.94);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .zoom-indicator {
  background: rgba(255, 255, 255, 0.94);
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Philosophy Pillars in light mode */
[data-theme="light"] .pillar-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pillar-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 0 20px rgba(16, 185, 129, 0.08);
  transform: translateY(-4px);
}

[data-theme="light"] .pillar-title {
  color: var(--text-primary);
}

[data-theme="light"] .pillar-desc {
  color: var(--text-secondary);
}

[data-theme="light"] .pillar-icon-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #059669;
}

[data-theme="light"] .pillar-icon-emerald {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  color: #059669 !important;
}

/* Release Status Card (#status) in light mode */
[data-theme="light"] .waitlist-card {
  background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.06) 0%, #ffffff 70%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05), 0 0 40px rgba(16, 185, 129, 0.05);
}

[data-theme="light"] .waitlist-card .section-tag {
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  border: none !important;
  color: #059669 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .waitlist-title {
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

[data-theme="light"] .waitlist-subtitle {
  color: var(--text-secondary);
}

[data-theme="light"] .release-note {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Three Roadmap Phases: Step 1 (Green / Active), Step 2 (Blue / Next), Step 3 (Purple / Future) */
[data-theme="light"] .release-steps li {
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

[data-theme="light"] .release-steps li:hover {
  transform: translateY(-3px);
}

/* Step 1: Jetzt (Android in Entwicklung) */
[data-theme="light"] .release-steps li:nth-child(1) {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, #ffffff 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .release-steps li:nth-child(1):hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
}

[data-theme="light"] .release-steps li:nth-child(1) .release-step-label {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

[data-theme="light"] .release-steps li:nth-child(1) strong {
  color: #065f46;
}

[data-theme="light"] .release-steps li:nth-child(1) span:not(.release-step-label) {
  color: #2e604d;
}

/* Step 2: Als Nächstes (Android-Vorabversion) */
[data-theme="light"] .release-steps li:nth-child(2) {
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.08) 0%, #ffffff 100%);
  border: 1.5px solid rgba(10, 132, 255, 0.3);
  box-shadow: 0 4px 18px rgba(10, 132, 255, 0.08);
}

[data-theme="light"] .release-steps li:nth-child(2):hover {
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.18);
  border-color: rgba(10, 132, 255, 0.45);
}

[data-theme="light"] .release-steps li:nth-child(2) .release-step-label {
  background: rgba(10, 132, 255, 0.12);
  color: #0066cc;
  border: 1px solid rgba(10, 132, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

[data-theme="light"] .release-steps li:nth-child(2) strong {
  color: #0056b3;
}

[data-theme="light"] .release-steps li:nth-child(2) span:not(.release-step-label) {
  color: #2b578a;
}

/* Step 3: Danach (Version für iOS) */
[data-theme="light"] .release-steps li:nth-child(3) {
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.06) 0%, #ffffff 100%);
  border: 1.5px solid rgba(100, 116, 139, 0.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .release-steps li:nth-child(3):hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(100, 116, 139, 0.35);
}

[data-theme="light"] .release-steps li:nth-child(3) .release-step-label {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  width: fit-content;
}

[data-theme="light"] .release-steps li:nth-child(3) strong {
  color: #334155;
}

[data-theme="light"] .release-steps li:nth-child(3) span:not(.release-step-label) {
  color: #64748b;
}

/* Contact Button in light mode */
[data-theme="light"] .waitlist-card .btn-secondary {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.06);
  transition: all var(--duration-fast) ease;
}

[data-theme="light"] .waitlist-card .btn-secondary:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

/* Modals & Dialogs in light mode */
[data-theme="light"] .modal-backdrop {
  background: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .modal-dialog {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(16, 185, 129, 0.06);
}

[data-theme="light"] .modal-screenshot {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15), 0 0 35px rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .screenshot-preview-container {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .modal-close-btn {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

[data-theme="light"] .modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

[data-theme="light"] .category-item {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .legal-text-content {
  color: var(--text-secondary);
}

[data-theme="light"] .legal-lead {
  background: rgba(16, 185, 129, 0.05);
  border-left-color: #10b981;
}

/* Footer in light mode */
[data-theme="light"] .site-footer {
  background: #f0f0f4;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

[data-theme="light"] .footer-brand .brand-name {
  color: var(--text-primary);
}

[data-theme="light"] .footer-tagline {
  color: var(--text-tertiary);
}

[data-theme="light"] .footer-col-title {
  color: var(--text-primary);
}

[data-theme="light"] .footer-link {
  color: var(--text-secondary);
}

[data-theme="light"] .footer-link:hover {
  color: var(--text-primary);
}

[data-theme="light"] .platform-item {
  color: var(--text-secondary);
}

[data-theme="light"] .footer-copy {
  color: var(--text-muted);
}

[data-theme="light"] .footer-meta {
  color: var(--text-secondary);
}

[data-theme="light"] .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-link[style*="color"],
[data-theme="light"] .mobile-nav-link[style*="color"] {
  color: #059669 !important;
}

