/* ==========================================================================
   DELEIX PHOTO EDITOR — OFFICIAL DESIGN SYSTEM & STYLESHEET
   Brand Colors: Deep Space (#060814, #0A0E1A), Electric Cyan (#00E5FF),
   Royal Blue (#2979FF), Neon Violet (#8C52FF), Hot Magenta (#E040FB)
   ========================================================================== */

:root {
  /* Dynamic Active Brand Colors (Defaults to Electric Cyan #00E5FF) */
  --accent: #00E5FF;
  --accent-secondary: #2979FF;
  --accent-tertiary: #7C4DFF;
  --accent-glow: rgba(0, 229, 255, 0.35);
  --accent-border: rgba(0, 229, 255, 0.25);
  --accent-bg-subtle: rgba(0, 229, 255, 0.08);

  /* Core Brand Gradients */
  --gradient-brand: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
  --gradient-glow: radial-gradient(circle at 50% 30%, rgba(0, 229, 255, 0.15) 0%, rgba(124, 77, 255, 0.05) 50%, transparent 80%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-card-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* Neutrals & Surfaces */
  --bg-deep: #060814;
  --bg-surface: #0A0E1A;
  --bg-surface-elevated: #10162A;
  --bg-surface-card: #141B33;
  --bg-surface-hover: #1A2342;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-glass: rgba(255, 255, 255, 0.12);

  /* Typography */
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #060814;

  /* Typography Scale */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* Layout */
  --max-width: 1240px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 8 Dynamic Accent Themes matching Deleix AccentPalette enum */
[data-theme-palette="cyan"] {
  --accent: #00E5FF;
  --accent-secondary: #2979FF;
  --accent-tertiary: #7C4DFF;
  --accent-glow: rgba(0, 229, 255, 0.35);
  --accent-border: rgba(0, 229, 255, 0.3);
  --accent-bg-subtle: rgba(0, 229, 255, 0.08);
}

[data-theme-palette="violet"] {
  --accent: #8C52FF;
  --accent-secondary: #E040FB;
  --accent-tertiary: #2979FF;
  --accent-glow: rgba(140, 82, 255, 0.35);
  --accent-border: rgba(140, 82, 255, 0.3);
  --accent-bg-subtle: rgba(140, 82, 255, 0.08);
}

[data-theme-palette="coral"] {
  --accent: #FF6D00;
  --accent-secondary: #FFAB00;
  --accent-tertiary: #FF3D00;
  --accent-glow: rgba(255, 109, 0, 0.35);
  --accent-border: rgba(255, 109, 0, 0.3);
  --accent-bg-subtle: rgba(255, 109, 0, 0.08);
}

[data-theme-palette="emerald"] {
  --accent: #00E676;
  --accent-secondary: #00B0FF;
  --accent-tertiary: #1DE9B6;
  --accent-glow: rgba(0, 230, 118, 0.35);
  --accent-border: rgba(0, 230, 118, 0.3);
  --accent-bg-subtle: rgba(0, 230, 118, 0.08);
}

[data-theme-palette="magenta"] {
  --accent: #FF1744;
  --accent-secondary: #7C4DFF;
  --accent-tertiary: #FF4081;
  --accent-glow: rgba(255, 23, 68, 0.35);
  --accent-border: rgba(255, 23, 68, 0.3);
  --accent-bg-subtle: rgba(255, 23, 68, 0.08);
}

[data-theme-palette="gold"] {
  --accent: #FFD600;
  --accent-secondary: #FF6D00;
  --accent-tertiary: #FF9100;
  --accent-glow: rgba(255, 214, 0, 0.35);
  --accent-border: rgba(255, 214, 0, 0.3);
  --accent-bg-subtle: rgba(255, 214, 0, 0.08);
}

[data-theme-palette="indigo"] {
  --accent: #3D5AFE;
  --accent-secondary: #00E5FF;
  --accent-tertiary: #651FFF;
  --accent-glow: rgba(61, 90, 254, 0.35);
  --accent-border: rgba(61, 90, 254, 0.3);
  --accent-bg-subtle: rgba(61, 90, 254, 0.08);
}

[data-theme-palette="crimson"] {
  --accent: #FF3366;
  --accent-secondary: #FF9100;
  --accent-tertiary: #C2185B;
  --accent-glow: rgba(255, 51, 102, 0.35);
  --accent-border: rgba(255, 51, 102, 0.3);
  --accent-bg-subtle: rgba(255, 51, 102, 0.08);
}

/* Light Minimal Mode Toggle Support */
[data-theme-mode="light"] {
  --bg-deep: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-surface-card: #FFFFFF;
  --bg-surface-hover: #E2E8F0;

  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-glass: rgba(0, 0, 0, 0.08);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;

  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 229, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(124, 77, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(41, 121, 255, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 99999;
  padding: 12px 20px;
  background: var(--accent);
  color: #060814;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
}

/* Focus visibility for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

[data-theme-mode="light"] .site-header {
  background: rgba(255, 255, 255, 0.85);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  pointer-events: none;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--accent-glow);
  object-fit: cover;
  flex-shrink: 0;
}

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

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

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

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #060814;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.mobile-nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0 clamp(60px, 7vw, 100px);
  overflow: hidden;
}

.hero-glow-orb {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(124, 77, 255, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

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

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  width: fit-content;
  border-radius: var(--radius-full);
  background: var(--accent-bg-subtle);
  border: 1px solid var(--accent-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

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

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

.hero-headline {
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 580px;
}

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

.app-store-btn {
  display: inline-flex;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.app-store-btn:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 24px var(--accent-glow));
}

.app-store-badge-img {
  height: 52px;
  width: auto;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Hero Visual Showcase */
.hero-visual-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame-mockup {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 18.5;
  background: #0A0D18;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.8),
    0 0 60px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-slow);
}

.device-frame-mockup:hover {
  transform: translateY(-6px);
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #060812;
  display: flex;
  flex-direction: column;
}

.device-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #000000;
  border-radius: 14px;
  z-index: 50;
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 16px 10px;
  background: rgba(10, 14, 26, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
}

.mockup-canvas-area {
  position: relative;
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mockup-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--transition-normal);
}

.mockup-floating-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(6, 8, 20, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-tool-drawer {
  background: #0B0F20;
  border-top: 1px solid var(--border-subtle);
  padding: 12px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.mockup-slider-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  position: relative;
}

.mockup-slider-fill {
  width: 72%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.mockup-tool-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.mockup-tool-pills::-webkit-scrollbar {
  display: none;
}

.mockup-pill {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
}

.mockup-pill.active {
  background: var(--accent-bg-subtle);
  color: var(--accent);
  border-color: var(--accent-border);
}

/* Floating feature chips around mockup */
.hero-chip-badge {
  position: absolute;
  background: rgba(16, 22, 42, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.hero-chip-left {
  top: 15%;
  left: -20px;
  animation-delay: 0s;
}

.hero-chip-right {
  bottom: 20%;
  right: -25px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.hero-chip-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-chip-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STATISTICS & VERIFIED SPECS STRIP
   ========================================================================== */
.specs-strip {
  padding: 36px 0;
  background: rgba(16, 22, 42, 0.5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

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

.spec-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
}

.spec-stat-number {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.spec-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.spec-stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   INTERACTIVE THEME PALETTE PREVIEWER
   ========================================================================== */
.palette-preview-section {
  padding: 80px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.section-category {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.palette-picker-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.5vw, 32px);
  box-shadow: var(--shadow-lg);
}

.palette-swatches-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.palette-swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  min-height: 0;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.palette-swatch-btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.palette-swatch-btn.active {
  border-color: var(--accent);
  background: var(--accent-bg-subtle);
  box-shadow: 0 0 16px var(--accent-glow);
}

.swatch-color-disc {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  position: relative;
  flex-shrink: 0;
}

.palette-swatch-btn.active .swatch-color-disc::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
}

.swatch-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.15;
  white-space: normal;
  max-width: 100%;
}

.swatch-tag {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  line-height: 1;
  white-space: nowrap;
}

.swatch-tag.pro {
  background: rgba(224, 64, 251, 0.15);
  color: #E040FB;
}

.palette-demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border);
}

.palette-banner-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.palette-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060814;
  font-weight: 800;
  font-size: 1.2rem;
}

/* ==========================================================================
   FEATURE DEEP-DIVES
   ========================================================================== */
.feature-section {
  padding: clamp(52px, 8vw, 100px) 0;
  position: relative;
}

.feature-section:nth-child(even) {
  background: rgba(10, 14, 26, 0.4);
}

.feature-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.feature-split-grid.reversed {
  grid-template-columns: 1fr 1fr;
}

.feature-split-grid.reversed .feature-text-block {
  order: 2;
}

.feature-split-grid.reversed .feature-visual-block {
  order: 1;
}

.feature-text-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
}

.feature-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.feature-checklist-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.checklist-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Interactive Filter Comparison Container */
.filter-comparison-container {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  cursor: ew-resize;
  container-type: inline-size;
}

.comparison-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.comparison-img.before {
  z-index: 1;
  filter: none;
}

.comparison-clip-box {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--slider-pos, 50%);
  height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  contain: paint layout;
}

.comparison-clip-box .comparison-img.after {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--canvas-width, 100cqw);
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  filter: contrast(1.15) saturate(1.25) brightness(1.05);
  transition: filter var(--transition-normal);
}

.comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos, 50%);
  width: 3px;
  background: #FFFFFF;
  z-index: 10;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  cursor: ew-resize;
  transform: translateX(-50%);
  touch-action: none;
  pointer-events: none;
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  color: #060814;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.comparison-label {
  position: absolute;
  top: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(6, 8, 20, 0.75);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  z-index: 5;
  pointer-events: none;
}

.comparison-label.left {
  left: 14px;
}

.comparison-label.right {
  right: 14px;
}

.filter-preset-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
}

.filter-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.filter-chip-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.filter-chip-btn.active {
  background: var(--accent-bg-subtle);
  color: var(--accent);
  border-color: var(--accent-border);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Interactive Adjustments Card */
.adjustments-interactive-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.adj-sliders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adj-slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adj-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.adj-val {
  color: var(--accent);
  font-family: var(--font-mono);
}

.adj-range-input {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 32px;
  background: transparent;
  outline: none;
  cursor: pointer;
  touch-action: pan-x;
}

.adj-range-input::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.adj-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  cursor: pointer;
  margin-top: -8px;
  transition: transform var(--transition-fast);
}

.adj-range-input::-webkit-slider-thumb:hover,
.adj-range-input::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

.adj-range-input::-moz-range-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.adj-range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  cursor: pointer;
  border: none;
}

/* 1:1 Square Blur Creator Showcase */
.square-preview-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.square-bg-blur-layer {
  position: absolute;
  inset: -20px;
  background-image: url('../images/sample.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.75);
  transform: scale(1.1);
  transition: filter var(--transition-normal);
}

.square-foreground-photo {
  position: relative;
  z-index: 5;
  width: 78%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

.square-controls-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Typography, Shapes & Overlays Showcase */
.typography-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.typography-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-fast);
}

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

.typography-sample {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.typography-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}



/* Stickers showcase strip */
.stickers-gallery-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}

.sticker-item-card {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: transform var(--transition-fast);
}

.sticker-item-card:hover {
  transform: scale(1.1) rotate(4deg);
  border-color: var(--accent-border);
}

.sticker-item-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Blank Canvas Graphic */
.blank-canvas-mockup {
  position: relative;
  background: #10162A;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkerboard-stage {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background-color: #1e2538;
  background-image: 
    linear-gradient(45deg, #2b334c 25%, transparent 25%),
    linear-gradient(-45deg, #2b334c 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2b334c 75%),
    linear-gradient(-45deg, transparent 75%, #2b334c 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blank-artwork-element {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.canvas-specs-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-bg-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Converter Flow Graphic */
.converter-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}

.converter-format-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: all var(--transition-fast);
}

.converter-format-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.format-extension-badge {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-bg-subtle);
  border: 1px solid var(--accent-border);
}

.format-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.format-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   USE CASES SECTION
   ========================================================================== */
.use-cases-section {
  padding: 100px 0;
  background: var(--bg-surface);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.use-case-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.use-case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.use-case-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.use-case-card:hover::before {
  opacity: 1;
}

.use-case-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-bg-subtle);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.use-case-icon-box svg {
  width: 26px;
  height: 26px;
}

.use-case-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.use-case-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   PRO VS FREE COMPARISON TABLE
   ========================================================================== */
.pricing-section {
  padding: 100px 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(124, 77, 255, 0.08) 0%, transparent 60%);
}

.plans-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.plan-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: all var(--transition-normal);
}

.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.05) 0%, var(--bg-surface-elevated) 100%);
  box-shadow: 0 12px 40px var(--accent-glow);
  transform: scale(1.03);
}

.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #060814;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-currency {
  font-size: 1.5rem;
  font-weight: 700;
}

.plan-amount {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.plan-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-savings-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00E676;
  background: rgba(0, 230, 118, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features-list svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--bg-surface-elevated);
}

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

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: rgba(0, 0, 0, 0.2);
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table td:nth-child(2), .comparison-table th:nth-child(2) {
  text-align: center;
}

.comparison-table td:nth-child(3), .comparison-table th:nth-child(3) {
  text-align: center;
  background: rgba(0, 229, 255, 0.03);
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   PRIVACY & ON-DEVICE PILLARS
   ========================================================================== */
.privacy-highlight-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.privacy-banner-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 40px;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06) 0%, rgba(124, 77, 255, 0.06) 100%);
  border: 1px solid var(--border-glass);
}

.privacy-banner-title {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  line-height: 1.2;
}

.privacy-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.privacy-point-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privacy-point-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-point-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  padding: 100px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item.open {
  border-color: var(--accent-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   CALL TO ACTION BANNER
   ========================================================================== */
.cta-banner-section {
  padding: 80px 0;
}

.cta-banner-card {
  position: relative;
  background: linear-gradient(135deg, #0D1426 0%, #151A33 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 60px);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-glow-decor {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  max-width: 700px;
}

.cta-subtext {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: clamp(30px, 5vw, 60px);
  margin-bottom: 50px;
}

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

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

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

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ==========================================================================
   CONTACT PAGE & FORM STYLES
   ========================================================================== */
.page-hero {
  padding: clamp(60px, 8vw, 90px) 0 40px;
  text-align: center;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 70px);
  padding: 30px 0 100px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-email-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-surface-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
}

.copy-email-btn {
  background: var(--accent-bg-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-email-btn:hover {
  background: var(--accent);
  color: #060814;
}

/* Form Styles */
.contact-form-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: clamp(30px, 5vw, 44px);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-label .required {
  color: var(--accent);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  outline: none;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-help-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-status-alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
}

.form-status-alert.error {
  display: block;
  background: rgba(255, 23, 68, 0.15);
  border: 1px solid rgba(255, 23, 68, 0.4);
  color: #FF1744;
}

/* ==========================================================================
   PRIVACY POLICY DOCUMENT STYLES
   ========================================================================== */
.policy-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.policy-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-meta-bar {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.policy-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.policy-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.policy-section h2 {
  font-size: 1.6rem;
  margin-top: 10px;
  color: var(--text-primary);
}

.policy-section h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.policy-section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.policy-section ul {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-secondary);
}

.policy-highlight-box {
  background: rgba(0, 229, 255, 0.05);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 10px 0;
}

.policy-highlight-box p {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   THANK YOU / 404 PAGE STYLES
   ========================================================================== */
.centered-message-stage {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  gap: 24px;
}

.status-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-bg-subtle);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.status-icon-circle svg {
  width: 40px;
  height: 40px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES & MOBILE REDESIGN
   ========================================================================== */

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

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

  .hero-subhead {
    margin: 0 auto;
  }

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

  .hero-trust-list {
    justify-content: center;
  }

  .feature-split-grid,
  .feature-split-grid.reversed {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-split-grid.reversed .feature-text-block {
    order: 1;
  }

  .feature-split-grid.reversed .feature-visual-block {
    order: 2;
  }

  .privacy-banner-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .plans-cards-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto 40px;
  }

  .plan-card.featured {
    transform: none;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .palette-swatches-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

/* Tablets & Mobile Phones (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Safe area padding */
  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .header-inner {
    padding: 0 4px;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }

  .header-actions .btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    min-height: 40px;
  }

  /* Accessible touch-friendly hamburger toggle */
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-toggle:active {
    background: var(--accent-bg-subtle);
    border-color: var(--accent-border);
  }

  /* Mobile full-width slide-out drawer */
  .nav-links {
    position: fixed;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(6, 8, 20, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
    flex-direction: column;
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }

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

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

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link:active,
  .nav-link.active {
    background: var(--accent-bg-subtle);
    border-color: var(--accent-border);
    color: var(--accent);
  }

  .nav-link.active::after {
    display: none;
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding: clamp(36px, 6vw, 60px) 0 40px;
  }

  .hero-headline {
    font-size: clamp(2.1rem, 7vw, 3.2rem);
    line-height: 1.15;
  }

  .hero-subhead {
    font-size: 0.98rem;
    line-height: 1.6;
  }

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

  .app-store-btn {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .app-store-badge-img {
    height: 48px;
  }

  .hero-cta-group .btn-secondary {
    width: 100%;
    min-height: 48px;
  }

  .hero-trust-list {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    padding-top: 18px;
  }

  .hero-chip-badge {
    display: none;
  }

  /* Mobile-proportioned iPhone Mockup Frame */
  .device-frame-mockup {
    max-width: min(290px, 82vw);
    aspect-ratio: 9 / 18.5;
    border-radius: 38px;
    padding: 10px;
    margin: 10px auto 0;
    box-shadow: 
      0 0 0 2px rgba(255, 255, 255, 0.12),
      0 16px 50px rgba(0, 0, 0, 0.9),
      0 0 40px var(--accent-glow);
  }

  .mockup-header-bar {
    padding: 10px 12px 6px;
    font-size: 0.72rem;
  }

  .mockup-tool-drawer {
    padding: 10px 12px 14px;
    gap: 8px;
  }

  /* Specs Grid - Balanced 2x2 grid */
  .specs-strip {
    padding: 24px 0;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .spec-card {
    padding: 16px 12px;
  }

  .spec-stat {
    font-size: 2rem;
  }

  .spec-label {
    font-size: 0.75rem;
  }

  /* Palette Swatches - 4x2 on tablets & phones */
  .palette-swatches-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }

  .palette-swatch-btn {
    padding: 8px 3px;
    gap: 5px;
  }

  .swatch-color-disc {
    width: 24px;
    height: 24px;
  }

  .swatch-name {
    font-size: 0.68rem;
  }

  .palette-demo-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
    padding: 18px;
  }

  .palette-banner-info {
    flex-direction: column;
    gap: 10px;
  }

  /* Feature Grids */
  .feature-section {
    padding: clamp(48px, 7vw, 68px) 0;
  }

  .feature-title {
    font-size: clamp(1.8rem, 5.5vw, 2.3rem);
  }

  .feature-description {
    font-size: 0.96rem;
  }

  .feature-checklist-item {
    font-size: 0.9rem;
    gap: 10px;
  }

  /* Comparison Component on Mobile */
  .filter-comparison-container {
    padding: 14px;
    border-radius: var(--radius-lg);
  }

  .comparison-label {
    top: 10px;
    padding: 3px 10px;
    font-size: 0.68rem;
  }

  .comparison-label.left {
    left: 10px;
  }

  .comparison-label.right {
    right: 10px;
  }

  .comparison-handle {
    width: 36px;
    height: 36px;
  }

  /* Adjustments Demo Card */
  .adjustments-interactive-card {
    padding: 16px;
    gap: 16px;
  }

  /* Square Social Creator */
  .square-preview-stage {
    max-width: 320px;
    border-radius: var(--radius-lg);
  }

  /* Typography Cards */
  .typography-stage-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .typography-card {
    padding: 16px;
  }

  .typography-sample {
    font-size: 1.35rem;
  }

  /* Blank Canvas Mockup */
  .blank-canvas-mockup {
    padding: 16px;
  }

  /* Converter Grid */
  .converter-visual-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .converter-format-card {
    padding: 16px 10px;
  }

  .format-extension-badge {
    font-size: 0.95rem;
    padding: 4px 10px;
  }

  /* Use Cases Grid */
  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .use-case-card {
    padding: 24px 20px;
  }

  /* Pricing / Pro Table */
  .pricing-section {
    padding: clamp(50px, 7vw, 70px) 0;
  }

  .plans-cards-grid {
    max-width: 100%;
  }

  .plan-card {
    padding: 28px 20px;
  }

  .comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }

  .comparison-table {
    min-width: 520px;
    font-size: 0.88rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
  }

  /* Privacy Highlight Banner */
  .privacy-highlight-section {
    padding: 50px 0;
  }

  .privacy-banner-card {
    padding: 24px 18px;
  }

  .privacy-banner-title {
    font-size: 1.6rem;
  }

  .privacy-points-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* FAQ Accordion */
  .faq-section {
    padding: 60px 0;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.98rem;
    min-height: 48px;
  }

  .faq-answer {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }

  /* CTA Banner */
  .cta-banner-section {
    padding: 50px 0;
  }

  .cta-banner-card {
    padding: 36px 20px;
    gap: 20px;
  }

  .cta-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .cta-subtext {
    font-size: 1rem;
  }

  /* Footer */
  .site-footer {
    padding: 50px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  /* Contact Page */
  .contact-layout-grid {
    padding: 20px 0 60px;
  }

  .contact-form-card {
    padding: 24px 18px;
  }

  .form-input,
  .form-textarea {
    font-size: 16px !important; /* Prevents iOS Safari auto-zoom on focus */
    min-height: 48px;
    padding: 12px 14px;
  }

  .contact-email-badge {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
  }

  .copy-email-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Policy Page */
  .policy-container {
    padding: 24px 16px calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .policy-meta-bar {
    flex-direction: column;
    gap: 6px;
  }

  .policy-section h2 {
    font-size: 1.35rem;
  }
}

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

  .hero-headline {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .spec-card {
    padding: 14px 10px;
  }

  .spec-stat {
    font-size: 1.75rem;
  }

  .spec-label {
    font-size: 0.7rem;
  }

  /* Color Palettes: 4 columns on phones */
  .palette-swatches-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .palette-swatch-btn {
    padding: 6px 2px;
    border-radius: var(--radius-sm);
  }

  .swatch-color-disc {
    width: 22px;
    height: 22px;
  }

  .swatch-name {
    font-size: 0.65rem;
  }

  .swatch-tag {
    font-size: 0.55rem;
    padding: 1px 4px;
  }

  .comparison-label {
    font-size: 0.62rem;
    padding: 2px 8px;
  }

  .comparison-handle {
    width: 32px;
    height: 32px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .plan-card {
    padding: 24px 16px;
  }

  .plan-amount {
    font-size: 2.3rem;
  }
}

/* Ultra-compact Phones (<= 360px, e.g. iPhone SE 1st gen) */
@media (max-width: 360px) {
  .brand-tagline {
    display: none;
  }

  .header-actions .btn-sm span {
    font-size: 0.75rem;
  }

  .palette-swatches-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .swatch-color-disc {
    width: 18px;
    height: 18px;
  }

  .swatch-name {
    font-size: 0.6rem;
  }

  .converter-visual-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Accessibility: User Prefers 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;
  }

  .hero-badge-dot {
    animation: none;
  }
}
