/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --purple:       #6C47FF;
  --purple-light: #EDE9FF;
  --purple-dark:  #4A2FCC;
  --orange:       #FF6B35;
  --green:        #10B981;
  --amber:        #F59E0B;
  --gray-100:     #F5F5F5;
  --gray-200:     #E5E7EB;
  --gray-600:     #6B7280;
  --gray-900:     #111827;

  --bg:      #ffffff;
  --bg2:     #F8F7FF;
  --surface: #f8f7ff;
  --text:    #0a0a0a;
  --text2:   #4B5563;
  --border:  #E5E7EB;
  --card-shadow: 0 4px 24px rgba(108, 71, 255, 0.08);

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  --radius-card:   20px;
  --radius-btn:    10px;
  --radius-badge:  6px;

  --nav-h: 64px;
}

html.dark {
  --bg:      #0a0a0a;
  --bg2:     #0f0f1a;
  --surface: #1a1a2e;
  --text:    #f0f0f0;
  --text2:   #9CA3AF;
  --border:  #2a2a3e;
  --card-shadow: 0 4px 32px rgba(108, 71, 255, 0.18);
  --purple-light: #2a1f4e;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 600; line-height: 1.2; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
small { font-size: 13px; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-pad {
  padding: var(--space-xl) 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: var(--space-sm);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   DOT GRID BACKGROUND
   ============================================================ */
.dot-grid {
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-bottom 0.3s ease, background 0.3s ease;
}

html.dark .navbar {
  background: rgba(10,10,10,0.85);
}

.navbar.scrolled {
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  height: 50px;
  width: auto;
  flex-shrink: 0;
  border-radius: 0;
  object-fit: contain;
}

.navbar .logo-mark {
  width: auto;
  height: 32px;
  border-radius: 0;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--purple);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Dark mode toggle */
.dark-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: background 0.2s, color 0.2s;
}
.dark-toggle:hover { background: var(--purple-light); color: var(--purple); }
.dark-toggle .icon-sun { display: none; }
.dark-toggle .icon-moon { display: block; }
html.dark .dark-toggle .icon-sun { display: block; }
html.dark .dark-toggle .icon-moon { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 8px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--surface); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--purple); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
  padding: var(--space-xl) 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: var(--space-md);
}

.hero-tag::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

.hero-headline {
  margin-bottom: var(--space-md);
}

.hero-headline .accent { color: var(--purple); }

.hero-subtext {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text2);
  font-size: 12px;
  animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

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

.hero-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(108,71,255,0.25), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-phone {
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

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

.phone-large {
  width: 200px;
  height: 400px;
  border: 3px solid #1a1a1a;
  border-radius: 36px;
  overflow: hidden;
  background: #111;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
}

html.dark .phone-large { border-color: #333; }

.phone-large::before {
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 14px;
  background: #1a1a1a;
  border-radius: 7px;
  z-index: 2;
}

html.dark .phone-large::before { background: #333; }

.phone-large-screen {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #6C47FF 0%, #9B7BFF 50%, #C4AFFF 100%);
  position: relative;
  overflow: hidden;
}

.phone-screen-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px 20px;
  z-index: 0;
}

#heroPhoneImg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  display: none;
}

#heroPhoneImg.loaded {
  display: block;
}

.phone-ui-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}
.phone-ui-bar.w-full { width: 100%; }
.phone-ui-bar.w-75  { width: 75%; }
.phone-ui-bar.w-50  { width: 50%; }
.phone-ui-bar.w-60  { width: 60%; }
.phone-ui-card {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,71,255,0.35);
}

.btn-primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 8px 24px rgba(108,71,255,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* Store buttons */
.btn-store {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
}
.btn-store:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-light);
  transform: translateY(-1px);
}

/* ============================================================
   APPS SECTION
   ============================================================ */
.apps-section {
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header p {
  color: var(--text2);
  max-width: 520px;
  margin: var(--space-sm) auto 0;
  font-size: 17px;
}

.apps-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* App Card */
.app-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(108,71,255,0.14);
}

.app-card-body {
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.app-info { min-width: 0; }

.app-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.app-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  overflow: hidden;
  position: relative;
}
.app-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.app-icon[data-show-letter="1"]::after {
  content: attr(data-letter);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff;
}

.app-title-group h3 {
  font-size: 22px;
  margin-bottom: 2px;
}

.app-tagline {
  color: var(--text2);
  font-size: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-badge);
  margin-bottom: var(--space-sm);
}

.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
}

.status-live    { background: rgba(16,185,129,0.12); color: #059669; }
.status-live::before    { background: #10B981; }
.status-dev     { background: rgba(245,158,11,0.12); color: #B45309; }
.status-dev::before     { background: #F59E0B; }
.status-soon    { background: var(--gray-100); color: var(--gray-600); }
.status-soon::before    { background: var(--gray-600); }
html.dark .status-soon  { background: #2a2a3e; }

.app-desc {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  overflow-wrap: break-word;
  word-break: break-word;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.tech-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 40px;
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid rgba(108,71,255,0.2);
}

html.dark .tech-badge {
  background: rgba(108,71,255,0.15);
  border-color: rgba(108,71,255,0.3);
}

.app-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.app-legal-links {
  display: flex;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
}

.app-legal-links a {
  font-size: 12px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.app-legal-links a:hover { color: var(--purple); }

/* Screenshots side */
.app-screenshots { min-width: 0; }

.screenshots-featured {
  margin-bottom: var(--space-sm);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 9/18;
  max-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshots-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-wrap {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 12px;
}

.carousel-arrow:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.carousel-arrow.prev { left: -14px; }
.carousel-arrow.next { right: -14px; }

/* Phone frame (carousel thumbnails) */
.phone-frame {
  width: 90px;
  height: 180px;
  border: 2.5px solid #1a1a1a;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

html.dark .phone-frame { border-color: #444; }

.phone-frame:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(108,71,255,0.2);
}

.phone-frame.active-thumb {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(108,71,255,0.35);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 8px;
  background: #1a1a1a;
  border-radius: 4px;
  z-index: 2;
}

html.dark .phone-frame::before { background: #444; }

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 16px;
  gap: 6px;
}

.sp-bar {
  border-radius: 3px;
  background: rgba(255,255,255,0.3);
  height: 6px;
}

/* Ghost card */
.app-card-ghost {
  border: 2px dashed var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-sm);
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
  min-height: 180px;
}

.app-card-ghost:hover {
  opacity: 1;
  border-color: var(--purple);
}

.ghost-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--text2);
}

.app-card-ghost p {
  color: var(--text2);
  font-size: 14px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--bg2); }

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-text { min-width: 0; overflow-wrap: break-word; word-break: break-word; }

.about-text h2 {
  margin-bottom: var(--space-md);
}

.about-text p {
  color: var(--text2);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-sm);
}

.skill-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--text2);
  transition: all 0.2s;
}
.skill-chip:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }

.stat-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section { background: var(--bg); }

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner h2 { margin-bottom: var(--space-sm); }

.contact-inner > p {
  color: var(--text2);
  font-size: 17px;
  margin-bottom: var(--space-lg);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.social-link {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: all 0.2s;
}
.social-link:hover {
  border-color: var(--purple);
  background: var(--purple-light);
  color: var(--purple);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  text-align: left;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108,71,255,0.1);
}

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

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

.footer-copy {
  font-size: 14px;
  color: var(--text2);
}

.footer-legal {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
}

.footer-legal-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-legal-col a {
  display: block;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 6px;
  transition: color 0.2s;
}
.footer-legal-col a:hover { color: var(--purple); }

.footer-made {
  font-size: 13px;
  color: var(--text2);
  text-align: right;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text2);
}

/* ============================================================
   IDEAS LAB
   ============================================================ */
.ideas-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(16,185,129,.12), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.idea-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: 0 24px 70px rgba(17,24,39,.08);
}

.idea-feature + .idea-feature { margin-top: 28px; }

.idea-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.idea-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(16,185,129,.28);
  border-radius: 999px;
  color: #059669;
  background: rgba(16,185,129,.09);
}

.idea-feature h3 {
  margin-bottom: 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -.04em;
}

.idea-kicker {
  max-width: 650px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.45;
}

.idea-feature-copy > p:not(.idea-kicker) {
  max-width: 650px;
  color: var(--text2);
}

.idea-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
}

.idea-tags span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text2);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.idea-visual {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(108,71,255,.18);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(108,71,255,.09), transparent 46%),
    #111827;
}

.idea-road-lines {
  position: absolute;
  inset: 50% 0 auto;
  height: 4px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(255,255,255,.35) 26px 70px);
}

.idea-car {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 122px;
  height: 76px;
  transform: translateY(-50%);
  border-radius: 24px 34px 17px 17px;
  color: #fff;
  box-shadow: 0 18px 30px rgba(0,0,0,.3);
}

.idea-car i { font-size: 42px; line-height: 1; }
.idea-car span { font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.idea-car-donor { left: 8%; background: linear-gradient(135deg,#10B981,#047857); }
.idea-car-receiver { right: 8%; background: linear-gradient(135deg,#6C47FF,#4A2FCC); }

.idea-energy-link {
  position: absolute;
  top: 50%;
  left: calc(8% + 122px);
  right: calc(8% + 122px);
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  color: #FBBF24;
}

.idea-energy-link span {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,#10B981,#FBBF24,#6C47FF);
  box-shadow: 0 0 18px rgba(251,191,36,.8);
}

.idea-energy-link i {
  position: absolute;
  left: 50%;
  padding: 8px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: #111827;
  font-size: 24px;
}

.idea-flow-label {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 88%;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}

.ideas-more {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 8px 0;
  color: var(--text2);
  font-size: 13px;
}

.ideas-more a { color: var(--purple); font-weight: 700; }
.ideas-more a:hover { text-decoration: underline; }
.footer-bottom a { color: var(--purple); }
.skano-home-links { grid-column:1/-1; font-size:12px; line-height:2; color:var(--text2); }
.skano-home-links a:hover { color:var(--purple); text-decoration:underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }
  .hero-subtext { margin: 0 auto var(--space-lg); max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-large { width: 160px; height: 320px; }

  .app-card-body {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-md);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .idea-feature { grid-template-columns: 1fr; }
  .idea-visual { min-height: 300px; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }
  .footer-legal { flex-wrap: wrap; gap: var(--space-md); justify-content: center; }
  .footer-made { text-align: center; }
}

@media (max-width: 640px) {
  :root {
    --space-xl: 56px;
    --space-2xl: 80px;
    --space-lg: 36px;
    --space-md: 20px;
  }

  .container { padding: 0 16px; }

  /* Ensure description text wraps and never overflows */
  .app-desc { word-break: break-word; overflow-wrap: break-word; }
  .app-info { min-width: 0; }
  .app-card-body { min-width: 0; }

  /* Navbar */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-tag { font-size: 12px; padding: 5px 12px; max-width: 100%; white-space: normal; text-align: center; }
  .hero-subtext { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-phone-wrap { transform: scale(0.85); }

  /* App cards */
  .app-header { flex-wrap: wrap; }
  .app-card-body { padding: 16px; gap: 16px; }
  .app-actions { flex-direction: column; }
  .app-actions .btn-store { justify-content: center; }
  .screenshots-featured { max-height: 260px; }

  /* Ideas Lab */
  .idea-feature { padding: 20px; border-radius: 20px; }
  .idea-visual { min-height: 250px; }
  .idea-car { width: 88px; height: 62px; }
  .idea-car i { font-size: 32px; }
  .idea-car span { font-size: 7px; }
  .idea-car-donor { left: 5%; }
  .idea-car-receiver { right: 5%; }
  .idea-energy-link { left: calc(5% + 88px); right: calc(5% + 88px); }
  .idea-flow-label { bottom: 34px; }
  .ideas-more { flex-direction: column; }

  /* About */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px 12px; }
  .stat-number { font-size: 32px; }
  .stat-label { font-size: 12px; }
  .skills-chips { gap: 6px; }

  /* Contact */
  .social-links { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .social-link { width: 44px; height: 44px; }
  .contact-form { padding: 16px; }

  /* Footer */
  .footer-inner { gap: 16px; }
  .footer-legal { flex-direction: column; align-items: center; gap: 24px; }
  .footer-legal-col { text-align: center; }
  .footer-bottom { font-size: 12px; padding: 0 8px; padding-top: var(--space-md); }
}

@media (max-width: 400px) {
  :root { --space-xl: 44px; }

  .hero-tag { font-size: 11px; padding: 4px 10px; }
  .app-icon { width: 52px; height: 52px; font-size: 22px; border-radius: 12px; }
  .app-title-group h3 { font-size: 18px; }
  .app-tagline { font-size: 13px; }
  .stat-number { font-size: 28px; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 12px 8px; }
  .btn { font-size: 14px; padding: 11px 20px; }
  .section-header p { font-size: 15px; }
}

/* ============================================================
   LEGAL PAGES  (shared via legal-template.css import too)
   ============================================================ */
.legal-page {
  padding-top: var(--nav-h);
}

.legal-hero {
  background: var(--bg2);
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}

.legal-hero .updated {
  font-size: 14px;
  color: var(--text2);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--purple);
  margin-bottom: var(--space-md);
  transition: gap 0.2s;
}
.legal-back:hover { gap: 10px; }

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.legal-content h2 {
  font-size: 20px;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--purple-light);
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p {
  color: var(--text2);
  margin-bottom: var(--space-sm);
  font-size: 15px;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  color: var(--text2);
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 15px;
  line-height: 1.8;
}

.legal-content li { margin-bottom: 6px; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }

.legal-content a { color: var(--purple); text-decoration: underline; }

.legal-notice {
  background: var(--purple-light);
  border-left: 4px solid var(--purple);
  border-radius: 0 8px 8px 0;
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
}

.legal-notice p {
  color: var(--purple);
  margin: 0;
  font-weight: 500;
  font-size: 14px;
}

html.dark .legal-notice { background: rgba(108,71,255,0.12); }
html.dark .legal-notice p { color: #A78BFA; }

/* Delete account form */
.delete-steps {
  counter-reset: steps;
}
.delete-steps li {
  counter-increment: steps;
  padding-left: 16px;
  position: relative;
}
.delete-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  margin: var(--space-md) 0;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: var(--space-md);
}
.form-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--purple); }
.form-check label { font-size: 14px; color: var(--text2); }
