/* ==========================================================================
   TAKSAL STUDIO - OFFICIAL DESIGN SYSTEM & STYLESHEET
   Version: 3.1.0 (Silicon Valley Enterprise Edition)
   Architecture: Jetpack Compose Design System to Modern CSS Custom Properties
   Inspired by: Stripe, Linear, Vercel & Apple Design Language
   ========================================================================== */

/* --- Root & Color Tokens (Matching TaksalDesignSystem.kt) --- */
:root {
  /* Brand Palette */
  --brand-deep-purple: #4A148C;
  --brand-purple: #7B1FA2;
  --brand-indigo: #3730A3;
  --brand-blue: #1565C0;
  --brand-teal: #00838F;
  --brand-violet: #7C3AED;
  --brand-violet-glow: rgba(124, 58, 237, 0.35);
  --brand-pink: #DB2777;
  --brand-pink-light: #F472B6;
  --brand-magenta: #6200EA;

  /* Semantic Colors */
  --success: #059669;
  --success-light: #10B981;
  --warning: #EA580C;
  --warning-amber: #F59E0B;
  --error: #DC2626;
  --info: #2563EB;
  --info-cyan: #06B6D4;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing Scale (TaksalSpacing) */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Shape & Radius (TaksalShape) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #4A148C 0%, #1565C0 50%, #00838F 100%);
  --grad-brand-hover: linear-gradient(135deg, #5B1B9D 0%, #1976D2 50%, #0097A7 100%);
  --grad-hero-aurora: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.22) 0%, rgba(55, 48, 163, 0.12) 40%, rgba(0, 0, 0, 0) 80%);
  --grad-creative: linear-gradient(135deg, #4A148C 0%, #7B1FA2 100%);
  --grad-finance: linear-gradient(135deg, #3730A3 0%, #1565C0 100%);
  --grad-success: linear-gradient(135deg, #059669 0%, #10B981 100%);
  --grad-analytics: linear-gradient(135deg, #1565C0 0%, #06B6D4 100%);
  --grad-accent: linear-gradient(135deg, #7C3AED 0%, #DB2777 100%);
  --grad-glass-border: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables (Default) */
:root, [data-theme="light"] {
  --bg-page: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-subtle: #F8FAFC;
  --bg-surface-variant: #F1F5F9;
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(74, 20, 140, 0.12);
  --nav-bg: rgba(250, 250, 250, 0.88);
  --code-bg: #F1F5F9;
  --spotlight-glow: rgba(124, 58, 237, 0.06);
  --kbd-bg: #E2E8F0;
  --kbd-text: #334155;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-page: #09090B;
  --bg-surface: #141417;
  --bg-surface-elevated: #1F1F24;
  --bg-surface-subtle: #18181C;
  --bg-surface-variant: #222228;
  --border-color: #27272E;
  --border-subtle: #1E1E24;
  --text-primary: #F4F4F5;
  --text-secondary: #D4D4D8;
  --text-muted: #A1A1AA;
  --text-faint: #71717A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(124, 58, 237, 0.22);
  --nav-bg: rgba(9, 9, 11, 0.85);
  --code-bg: #141417;
  --spotlight-glow: rgba(124, 58, 237, 0.12);
  --kbd-bg: #27272E;
  --kbd-text: #A1A1AA;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* --- Accessibility Focus Rings & Skip Link --- */
:focus-visible {
  outline: 2px solid var(--brand-violet) !important;
  outline-offset: 3px !important;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--brand-violet);
  color: #FFFFFF;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: var(--shadow-xl);
  transition: top var(--transition-fast) ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

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

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

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

.text-muted {
  color: var(--text-secondary);
}

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  position: relative;
}

.section-sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-3xl) auto;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-surface-variant);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--brand-violet);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Silicon Valley Dynamic Cursor Spotlight Card --- */
.spotlight-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--spotlight-glow), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(74, 20, 140, 0.2);
  object-fit: contain;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--grad-brand);
  color: #FFFFFF;
  margin-left: -4px;
}

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

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

.nav-link:hover, .nav-link.active {
  color: var(--brand-indigo);
}

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: #BABEFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

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

/* Command Palette Trigger Button */
.cmd-palette-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-variant);
  border: 1px solid var(--border-color);
  font-size: 0.825rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-palette-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.cmd-kbd {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--kbd-bg);
  color: var(--kbd-text);
  border: 1px solid var(--border-color);
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-variant);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: scale(1.06);
  background: var(--border-color);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--grad-brand);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(55, 48, 163, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(55, 48, 163, 0.35);
  color: #FFFFFF;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-surface-variant);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.hamburger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-page);
  padding: var(--space-xl) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-slow), opacity var(--transition-base);
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
  overflow-y: auto;
}

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

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

/* --- Hero Section --- */
.hero-section {
  padding-top: calc(var(--space-3xl) + 20px);
  padding-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
  background: var(--grad-hero-aurora);
}

.hero-content {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-violet);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .hero-pill-badge {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.5);
  color: #BABEFF;
}

.hero-pill-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-light);
  box-shadow: 0 0 8px var(--success-light);
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
}

.hero-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto var(--space-2xl) auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: var(--grad-brand);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(74, 20, 140, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(74, 20, 140, 0.45);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface-variant);
  border-color: var(--text-faint);
  transform: translateY(-2px);
}

.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #09090B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 10px 22px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  text-align: left;
}

[data-theme="dark"] .play-store-btn {
  background: #18181B;
  border-color: #27272A;
}

.play-store-btn:hover {
  transform: translateY(-2px);
  border-color: #7C3AED;
  color: #FFFFFF;
}

.play-store-btn .play-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.play-store-btn .btn-text-small {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.play-store-btn .btn-text-large {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}

/* Trust Badges Row */
.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

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

.trust-item svg {
  color: var(--success);
  width: 18px;
  height: 18px;
}

/* Hero Showcase Graphic */
.hero-showcase {
  margin-top: var(--space-3xl);
  position: relative;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.hero-mockup-frame {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 10px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(0, 131, 143, 0.2), rgba(255, 255, 255, 0.1));
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), var(--shadow-glow);
}

[data-theme="dark"] .hero-mockup-frame {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(0, 131, 143, 0.3), rgba(39, 39, 42, 0.5));
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.hero-mockup-img {
  border-radius: var(--radius-xl);
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Floating Badges on Hero */
.floating-chip {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  animation: float 4s ease-in-out infinite alternate;
  z-index: 10;
}

.chip-left {
  top: 15%;
  left: -20px;
}

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

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

/* --- Stats Row --- */
.stats-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-2xl) 0;
}

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

.stat-card {
  text-align: center;
  padding: var(--space-md);
}

.stat-value {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   INTERACTIVE LIVE PRODUCT PLAYGROUNDS (SILICON VALLEY SUITE)
   ========================================================================== */

/* 1. Interactive Business Card Studio */
.interactive-studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.card-perspective-container {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.business-card-3d {
  width: 100%;
  max-width: 440px;
  height: 250px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  user-select: none;
}

.business-card-3d.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  padding: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.card-face-back {
  transform: rotateY(180deg);
}

/* Card Themes */
.theme-midnight {
  background: linear-gradient(135deg, #18181B 0%, #27272A 100%);
  color: #FFFFFF;
}

.theme-royal {
  background: linear-gradient(135deg, #4A148C 0%, #7B1FA2 100%);
  color: #FFFFFF;
}

.theme-emerald {
  background: linear-gradient(135deg, #064E3B 0%, #059669 100%);
  color: #FFFFFF;
}

.theme-minimal {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.card-brand-tagline {
  font-size: 0.75rem;
  opacity: 0.8;
}

.card-chip-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
}

.card-user-info {
  margin-top: auto;
}

.card-user-name {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.card-user-title {
  font-size: 0.825rem;
  opacity: 0.85;
  margin-bottom: 12px;
}

.card-contact-row {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  opacity: 0.9;
  flex-wrap: wrap;
}

.card-contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-back-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  text-align: center;
}

.card-qr-box {
  background: #FFFFFF;
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Studio Editor Panel */
.studio-control-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.theme-swatches {
  display: flex;
  gap: 10px;
  margin: 12px 0 20px 0;
}

.swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.swatch-btn.active {
  transform: scale(1.15);
  border-color: var(--brand-violet);
}

/* 2. Interactive GST Invoice Calculator & POS Simulator */
.calculator-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.tax-slab-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.slab-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-variant);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slab-chip.active {
  background: var(--brand-indigo);
  color: #FFFFFF;
  border-color: var(--brand-indigo);
}

.invoice-preview-slip {
  background: #FAFAFA;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 20px;
  font-family: var(--font-mono);
  color: #0F172A;
  box-shadow: var(--shadow-md);
  position: relative;
}

[data-theme="dark"] .invoice-preview-slip {
  background: #18181B;
  border-color: #27272A;
  color: #F4F4F5;
}

.invoice-header-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.invoice-calc-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.15rem;
  border-top: 2px solid var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
}

/* Thermal Paper Tear Simulator */
.thermal-tear {
  position: relative;
  background: #FFFDF9;
  color: #1A1A1A;
  border: 1px solid #E6E1DA;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 24px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-family: var(--font-mono);
}

.thermal-tear::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: radial-gradient(circle, transparent, transparent 50%, #FFFDF9 50%, #FFFDF9 100%);
  background-size: 16px 20px;
}

/* 3. Live Feature Search & Filter */
.feature-search-bar-wrap {
  max-width: 680px;
  margin: 0 auto var(--space-2xl) auto;
  position: relative;
}

.feature-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.feature-search-input:focus {
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 4px var(--brand-violet-glow);
}

.search-input-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.category-filter-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.filter-chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-variant);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip.active, .filter-chip:hover {
  background: var(--brand-violet);
  color: #FFFFFF;
  border-color: var(--brand-violet);
}

/* ==========================================================================
   GLOBAL COMMAND PALETTE (CMD+K / CTRL+K)
   ========================================================================== */
.cmd-palette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  padding-left: 16px;
  padding-right: 16px;
}

.cmd-palette-overlay.open {
  display: flex;
  animation: fadeIn 0.15s ease-out;
}

.cmd-palette-modal {
  width: 100%;
  max-width: 620px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cmd-search-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.cmd-search-input {
  width: 100%;
  font-size: 1.1rem;
  color: var(--text-primary);
  background: transparent;
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
}

.cmd-result-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 12px 4px 12px;
}

.cmd-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cmd-result-item:hover, .cmd-result-item.selected {
  background: var(--bg-surface-variant);
  color: var(--brand-violet);
}

.cmd-result-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmd-palette-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-color);
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FLOATING TOAST NOTIFICATION STACK
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-item.success svg { color: var(--success); }
.toast-item.info svg { color: var(--info); }

/* --- Feature Grid (Bento Grid) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-indigo);
}

.bento-8 { grid-column: span 8; }
.bento-4 { grid-column: span 4; }
.bento-6 { grid-column: span 6; }
.bento-12 { grid-column: span 12; }

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: #FFFFFF;
}

.icon-purple { background: var(--grad-creative); }
.icon-indigo { background: var(--grad-finance); }
.icon-teal { background: var(--grad-brand); }
.icon-emerald { background: var(--grad-success); }
.icon-blue { background: var(--grad-analytics); }
.icon-pink { background: var(--grad-accent); }

.bento-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.bento-preview-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-top: auto;
  object-fit: cover;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-md);
}

.tag-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-surface-variant);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* --- Interactive Showcase Tabs --- */
.tab-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background: var(--bg-surface-variant);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--grad-brand);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(55, 48, 163, 0.25);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
  display: block;
}

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

.tab-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.tab-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: var(--space-lg) 0;
}

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

.tab-feature-item svg {
  color: var(--brand-indigo);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Comparison Table --- */
.comparison-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

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

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--bg-surface-variant);
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table td:first-child {
  font-weight: 600;
}

.highlight-col {
  background: rgba(124, 58, 237, 0.05);
  font-weight: 600;
  color: var(--brand-violet);
}

[data-theme="dark"] .highlight-col {
  background: rgba(124, 58, 237, 0.12);
  color: #BABEFF;
}

.check-icon {
  color: var(--success);
  font-weight: bold;
}

.cross-icon {
  color: var(--error);
  font-weight: bold;
}

/* --- Screenshot Gallery & Lightbox --- */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screenshot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.screenshot-card-body {
  padding: 14px 16px;
}

.screenshot-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.screenshot-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Modal Lightbox */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: #FFFFFF;
  font-size: 2rem;
  background: none;
  cursor: pointer;
  line-height: 1;
}

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

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

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

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

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base) ease-out, padding var(--transition-base) ease-out;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

/* --- Download CTA Banner --- */
.cta-banner {
  background: var(--grad-brand);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl) var(--space-2xl);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  color: #FFFFFF;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto var(--space-2xl) auto;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-specs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
  font-size: 0.85rem;
  opacity: 0.85;
}

/* --- Contact & Forms --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-variant);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 3px rgba(55, 48, 163, 0.15);
  background: var(--bg-surface);
}

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

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  display: none;
  font-size: 0.9rem;
}

.form-status.success {
  display: block;
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.3);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--space-4xl) 0 var(--space-2xl) 0;
  margin-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

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

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

.footer-links a:hover {
  color: var(--brand-indigo);
}

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

/* --- Back To Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--brand-indigo);
  color: #FFFFFF;
  border-color: transparent;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .bento-8, .bento-4, .bento-6 {
    grid-column: span 12;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tab-content-grid {
    grid-template-columns: 1fr;
  }
  .interactive-studio-grid, .calc-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .cmd-palette-btn {
    display: none;
  }
  .floating-chip {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
