@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette */
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --primary-dark: #4834D4;
  --secondary: #FF7675;
  --secondary-light: #FD79A8;
  --accent-gold: #FDCB6E;
  --accent-teal: #00CEC9;
  --accent-green: #00B894;
  
  --bg-main: #F9FAFE;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #FFFFFF;
  --text-main: #2D3436;
  --text-muted: #636E72;
  --border-light: rgba(108, 92, 231, 0.12);

  --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #8C7Ae6 50%, #A29BFE 100%);
  --gradient-fun: linear-gradient(135deg, #FF7675 0%, #FD79A8 50%, #FDCB6E 100%);
  --gradient-pro: linear-gradient(135deg, #0984E3 0%, #00CEC9 100%);

  --shadow-sm: 0 4px 12px rgba(108, 92, 231, 0.08);
  --shadow-md: 0 10px 30px rgba(108, 92, 231, 0.12);
  --shadow-lg: 0 20px 50px rgba(108, 92, 231, 0.18);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-main: #0F0F1A;
  --bg-card: rgba(24, 24, 42, 0.85);
  --bg-card-hover: rgba(32, 32, 56, 0.95);
  --text-main: #F1F2F6;
  --text-muted: #A4B0BE;
  --border-light: rgba(162, 155, 254, 0.2);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* Header Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(249, 250, 254, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 15, 26, 0.85);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

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

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

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

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

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

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.2rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* Play Store Badge Container */
.badge-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-label-caption {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-left: 4px;
}

.caption-free {
  color: var(--accent-green);
}

.caption-pro {
  color: #D97706;
}

/* Highly Distinctive Official Google Play Badges */
.play-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #111827;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 16px;
  transition: var(--transition);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.play-store-badge:hover {
  transform: translateY(-4px) scale(1.02);
}

.play-store-badge-free {
  border: 2px solid var(--accent-green);
  box-shadow: 0 8px 24px rgba(0, 184, 148, 0.22);
}

.play-store-badge-free:hover {
  background: #064E3B;
  box-shadow: 0 14px 32px rgba(0, 184, 148, 0.38);
}

.tag-pill-free {
  background: var(--accent-green);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
  text-transform: uppercase;
}

.play-store-badge-pro {
  border: 2px solid #F59E0B;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), #111827 75%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.play-store-badge-pro:hover {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.3), #1F2937 75%);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.45);
}

.tag-pill-pro {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
  text-transform: uppercase;
}

.play-store-badge-colorsorter {
  border: 2px solid #6C5CE7;
  background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.3), #111827 75%);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.25);
}

.play-store-badge-colorsorter:hover {
  background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.4), #1F2937 75%);
  box-shadow: 0 14px 34px rgba(108, 92, 231, 0.45);
}

.tag-pill-colorsorter {
  background: linear-gradient(135deg, #6C5CE7 0%, #8C7AE6 100%);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
  text-transform: uppercase;
}

.caption-colorsorter {
  color: #A29BFE;
}

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

.play-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.play-badge-sub {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9CA3AF;
}

.play-badge-main {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}

.shape-blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.5;
  border-radius: 50%;
}

.shape-1 {
  width: 450px;
  height: 450px;
  background: #A29BFE;
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #FD79A8;
  bottom: -50px;
  left: -100px;
}

/* HERO GRID - EQUAL MATCHED COLUMNS (50% - 50%) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

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

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

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

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* FULL-WIDTH FULL-HEIGHT MATCHED COLLAGE CONTAINER */
.mockup-container {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  height: 580px !important;
  border-radius: 36px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-lg) !important;
  border: 12px solid var(--bg-card) !important;
  background: var(--bg-card) !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: 1fr 1fr !important;
  gap: 16px !important;
  padding: 16px !important;
}

.mockup-container:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: var(--shadow-lg);
}

.grid-screenshot-tile {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid var(--border-light) !important;
  background: #FFFFFF !important;
  transition: var(--transition);
}

.grid-screenshot-tile img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease;
}

.grid-screenshot-tile:hover img {
  transform: scale(1.08);
}

.floating-badge {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.badge-top-right {
  top: 14px;
  right: -14px;
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: 24px;
  left: -14px;
  animation-delay: 2s;
}

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

/* Apps Showcase Section & Real Screenshot Gallery */
.section-padding {
  padding: 100px 0;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.app-card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-free {
  background: rgba(0, 184, 148, 0.15);
  color: var(--accent-green);
}

.badge-pro {
  background: rgba(245, 158, 11, 0.18);
  color: #D97706;
}

.badge-colorsorter {
  background: rgba(108, 92, 231, 0.18);
  color: var(--primary);
}

.app-card-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.app-card-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.app-card-dev {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.app-card-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

/* Real Screenshots Gallery Grid inside App Cards */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.gallery-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: #FFFFFF;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

.app-features-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Feature Comparison Table */
.comparison-container {
  margin-top: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.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-light);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-main);
}

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

/* Interactive Canvas Demo Section */
.demo-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(108, 92, 231, 0.05) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.canvas-wrapper {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.canvas-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.color-swatch:hover, .color-swatch.active {
  transform: scale(1.18);
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px var(--primary);
}

.brush-size-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brush-btn {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.brush-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.canvas-area {
  position: relative;
  width: 100%;
  height: 420px;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: crosshair;
  touch-action: none;
}

canvas#paintCanvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

/* Privacy & Legal View Switcher */
.privacy-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.privacy-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.privacy-tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  border: 1px solid var(--border-light);
  background: var(--bg-main);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.privacy-tab-btn.active {
  background: var(--gradient-primary);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.privacy-content h3 {
  font-size: 1.5rem;
  margin: 28px 0 12px 0;
  color: var(--primary);
}

.privacy-content p, .privacy-content ul {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.privacy-content ul {
  padding-left: 24px;
}

.privacy-content li {
  margin-bottom: 8px;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

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

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  display: none;
  font-size: 1rem;
}

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

.faq-icon {
  transition: transform 0.3s ease;
}

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

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 36px auto;
  }

  .hero-buttons {
    justify-content: center;
  }

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

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

  .mockup-container {
    height: 480px !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .mockup-container {
    height: 380px !important;
  }
}
