/* ═══════════════════════════════════════════
   CODEBAY.TECH — Premium Micro-SaaS Studio
   ═══════════════════════════════════════════ */

/* --- Custom Properties --- */
:root {
  /* 75% — deep base */
  --bg-deep: #22173a;
  /* 15% — neutral dark surfaces */
  --bg-surface: #1e1730;
  --bg-card: #241c3a;
  --bg-elevated: #2c2244;
  /* 8% — cyan/blue highlights */
  --cyan: #2eeed6;
  --blue: #02b8fc;
  /* 2% — purple accent (rare emphasis) */
  --purple: #7b61ff;
  --orange: #ff9211;
  --red: #ff6b6b;
  --text-primary: #ece8f3;
  --text-secondary: #9b90b3;
  --text-muted: #5f5478;
  --font-display: 'Mazzard', 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 15px;
}

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

::selection {
  background: var(--cyan);
  color: var(--bg-deep);
}

/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* --- Cursor Spotlight --- */
.cursor-spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.03), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}

.cursor-spotlight.visible {
  opacity: 1;
}

/* --- Skip Link (a11y) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 24px;
  background: var(--cyan);
  color: var(--bg-deep);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  z-index: 200;
  transition: top 0.3s;
}

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

/* --- Particles Canvas --- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(30, 23, 48, 0.9);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 101;
}

.logo-icon-img {
  height: 28px;
  width: auto;
}

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

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.logo-highlight {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 1px;
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.3s;
}

.lang-toggle:hover {
  border-color: var(--cyan);
  background: rgba(46, 238, 214, 0.08);
}

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

.lang-option { color: var(--text-muted); transition: color 0.3s; }
.lang-option.active { color: var(--cyan); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-glow--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 238, 214, 0.06), transparent 70%);
  top: -10%;
  right: -5%;
  animation: glowDrift 14s ease-in-out infinite alternate;
}

.hero-glow--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 184, 252, 0.04), transparent 70%);
  bottom: -5%;
  left: -10%;
  animation: glowDrift 12s ease-in-out infinite alternate-reverse;
}

@keyframes glowDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(46, 238, 214, 0.2);
  background: rgba(46, 238, 214, 0.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.title-line {
  display: block;
  font-size: clamp(36px, 7vw, 80px);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.4s; }
.title-line:nth-child(2) { animation-delay: 0.55s; }
.title-line:nth-child(3) { animation-delay: 0.7s; }

.title-line--accent {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: fadeInUp 0.8s var(--ease-out) 0.55s forwards, gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.85s forwards;
}

.hero-cta-group {
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease-out);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 146, 17, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 146, 17, 0.3);
}

.btn--primary:active {
  transform: translateY(0);
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

/* --- SECTION COMMON --- */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  position: relative;
  padding-left: 24px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* --- APPS SHOWCASE --- */
.apps {
  position: relative;
  padding: 100px 24px 80px;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* Carousel */
.apps-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.apps-track {
  display: flex;
  transition: transform 0.6s var(--ease-out);
  cursor: grab;
}

.apps-track.dragging {
  cursor: grabbing;
  transition: none;
}

/* App Card */
.app-card {
  min-width: 100%;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.app-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* App Store Buttons */
.app-store-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Carousel Nav */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.carousel-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(46, 238, 214, 0.06);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.3s var(--ease-out);
}

.carousel-dot.active {
  background: var(--cyan);
  width: 28px;
  border-radius: 4px;
}

.app-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(30, 23, 48, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.app-card-inner:hover {
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.app-card-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent, var(--cyan)), transparent 70%);
  opacity: 0.03;
  top: -100px;
  right: -100px;
  pointer-events: none;
  transition: opacity 0.4s;
}

.app-card-inner:hover .app-card-glow {
  opacity: 0.06;
}

/* Phone mockup */
.app-phone {
  display: flex;
  justify-content: center;
}

.app-phone {
  perspective: 1000px;
}

.phone-frame {
  width: 240px;
  height: 480px;
  background: #14101f;
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  padding: 8px;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
  transform: rotateY(-5deg) rotateX(2deg);
}

.app-card-inner:hover .phone-frame {
  transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-frame--blurred .phone-screen {
  filter: blur(3px);
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #1a1128;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: calc(100% - 24px);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  position: relative;
}

/* Mock status bar */
.mock-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  opacity: 0.7;
}

.mock-status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.mock-signal, .mock-wifi, .mock-battery {
  background: white;
  border-radius: 1px;
}

.mock-signal { width: 12px; height: 8px; border-radius: 1px; opacity: 0.8; }
.mock-wifi { width: 10px; height: 8px; border-radius: 50%; opacity: 0.8; }
.mock-battery { width: 16px; height: 8px; border-radius: 2px; opacity: 0.8; }

/* --- Coming Soon Screen --- */
.phone-screen--soon {
  background: linear-gradient(180deg, #1f1432 0%, #18102a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.soon-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.soon-icon {
  z-index: 1;
  animation: soonFloat 4s ease-in-out infinite;
}

.soon-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: -0.02em;
}

@keyframes soonFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.05); }
}

.soon-pulse {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 146, 17, 0.3);
  animation: soonPulse 3s ease-out infinite;
}

.soon-pulse--2 {
  animation-delay: 1s;
}

@keyframes soonPulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* --- App Info --- */
.app-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.app-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.feature-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.feature-chip--soon {
  background: rgba(255, 146, 17, 0.08);
  border-color: rgba(255, 146, 17, 0.15);
  color: var(--orange);
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
  transition: all 0.3s;
  width: fit-content;
}

.app-store-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.app-store-btn small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.app-store-btn span:not(.app-store-btn small) {
  font-size: 14px;
  font-weight: 700;
}


/* --- ABOUT --- */
.about {
  position: relative;
  padding: 100px 24px;
  z-index: 1;
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-code-block {
  background: #1a1128;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-filename {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

.code-content {
  padding: 16px 20px;
  line-height: 1.8;
  overflow-x: auto;
}

.code-content code {
  font-family: inherit;
}

.code-key { color: var(--cyan); }
.code-str { color: var(--orange); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan);
}

.stat-number small {
  font-size: 16px;
  opacity: 0.7;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.about-text {
  display: flex;
  flex-direction: column;
}

.about-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.pillar span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- FOOTER --- */
.footer {
  position: relative;
  padding: 64px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  z-index: 1;
}

.footer-glow {
  position: absolute;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.02), transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(46, 238, 214, 0.06);
  transform: translateY(-2px);
}

.footer-links-group h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links-group a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.3s;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .app-card-inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
  }

  .app-info {
    align-items: center;
  }

  .app-features {
    justify-content: center;
  }

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

  .about-text {
    text-align: center;
    align-items: center;
  }

  .about-pillars {
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .app-store-buttons {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(34, 23, 58, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 20px;
    letter-spacing: 0.15em;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-title .title-line {
    font-size: clamp(28px, 9vw, 50px);
  }

  .phone-frame {
    width: 200px;
    height: 400px;
  }

  .app-card-inner {
    padding: 24px 16px;
    gap: 32px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat { padding: 14px 8px; }
  .stat-number { font-size: 22px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .app-store-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .app-store-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
  }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Legal Modals --- */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.legal-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(255, 255, 255, 0.02);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-out);
}

.legal-modal.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.modal-body {
  padding: 24px 32px 32px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal-updated {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cyan);
  margin-top: 28px;
  margin-bottom: 12px;
}

.modal-body h3:first-of-type {
  margin-top: 0;
}

.modal-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 8px;
}

.modal-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.modal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.modal-body ul li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}

.modal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.5;
}

.modal-body ul li strong {
  color: var(--text-primary);
}

/* Modal mobile */
@media (max-width: 640px) {
  .modal-container {
    width: 100%;
    max-height: 100vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: auto;
    max-height: 92vh;
  }

  .modal-header {
    padding: 20px 20px;
  }

  .modal-body {
    padding: 16px 20px 32px;
  }

  .legal-modal {
    align-items: flex-end;
  }

  .legal-modal.open .modal-container {
    transform: translateY(0);
  }

  .modal-container {
    transform: translateY(100%);
  }
}

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