/* ==========================================================================
   PluganApp — Design System & Styles
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #0a0e1a;
  --color-bg-elevated: #111827;
  --color-bg-card: rgba(17, 24, 39, 0.6);
  --color-surface: #1a2236;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --color-text: #f0f4f8;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;

  --color-accent: #00d4aa;
  --color-accent-secondary: #00a8ff;
  --color-accent-warm: #ff6b6b;

  --gradient-brand: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
  --gradient-text: linear-gradient(135deg, #00d4aa 0%, #00a8ff 50%, #a78bfa 100%);

  /* App-specific colors */
  --color-yuca: #4ade80;
  --color-skinerblox: #f472b6;
  --color-spinblox: #fbbf24;
  --color-bedtime: #818cf8;

  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(0, 212, 170, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-md);
}

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

/* Typography Utilities */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--color-bg);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-border-hover);
}

.btn-appstore {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  margin-top: auto;
}

.btn-appstore:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 100px;
}

/* Section Styles */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section-subtitle--left {
  text-align: left;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  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; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition-base), backdrop-filter var(--transition-base),
              box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 1001;
}

.logo-icon {
  flex-shrink: 0;
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-base);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.4) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.hero-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.3) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: float 25s ease-in-out infinite reverse;
}

.hero-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 at center, black 20%, transparent 70%);
}

.lottie-bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  overflow: hidden;
}

.lottie-bg svg {
  width: 100% !important;
  height: 100% !important;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #1a2236 0%, #0f1520 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.phone-notch {
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 16px;
}

.phone-screen {
  background: #000;
  border-radius: 28px;
  height: calc(100% - 44px);
  overflow: hidden;
  position: relative;
}

.hero-screenshots {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
}

.hero-screenshot:not(:first-child) {
  opacity: 0;
}

.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.2) 0%, transparent 70%);
  z-index: 0;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 50%, var(--color-bg) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.about-card {
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.about-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.about-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 170, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.about-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   Apps
   ========================================================================== */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  will-change: transform;
}

.app-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.app-showcase {
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) var(--space-lg);
}

.app-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: radial-gradient(circle at 30% 50%, currentColor 0%, transparent 60%);
}

.app-card-visual--yuca {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  color: var(--color-yuca);
}

.app-card-visual--skinerblox {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.15) 0%, rgba(236, 72, 153, 0.05) 100%);
  color: var(--color-skinerblox);
}

.app-card-visual--spinblox {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
  color: var(--color-spinblox);
}

.app-card-visual--bedtime {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
  color: var(--color-bedtime);
}

/* App phone mockup in cards */
.app-phone {
  position: relative;
  z-index: 1;
}

.app-phone-frame {
  width: 160px;
  background: linear-gradient(145deg, #1a2236 0%, #0f1520 100%);
  border-radius: 28px;
  padding: 8px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.app-phone-notch {
  width: 56px;
  height: 16px;
  background: #000;
  border-radius: 0 0 10px 10px;
  margin: 0 auto 6px;
}

.app-screenshots {
  position: relative;
  width: 100%;
  height: 290px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.app-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.app-screenshot:not(:first-child) {
  opacity: 0;
}

.app-screenshot-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 4px;
}

.app-screenshot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.app-screenshot-dot.active {
  background: var(--color-accent);
  width: 18px;
  border-radius: 3px;
}

.app-showcase-icon {
  position: absolute;
  bottom: -6px;
  right: -14px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--color-bg-card);
  z-index: 2;
}

.app-card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-sm);
}

.app-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.app-tagline {
  font-size: 0.9375rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.app-description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  flex: 1;
}

/* ==========================================================================
   Why Us
   ========================================================================== */

.why-us {
  background: var(--color-bg-elevated);
}

.why-us-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.why-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.why-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 170, 0.15);
  border-radius: 50%;
  color: var(--color-accent);
  margin-top: 2px;
}

.why-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.why-item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.trust-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(10px);
}

.trust-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.trust-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.trust-sublabel {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.trust-metric {
  text-align: center;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.trust-metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-metric-label {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  overflow: hidden;
  text-align: center;
}

.contact-card-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.contact-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card .section-title {
  margin-bottom: var(--space-md);
}

.contact-lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-2xl);
}

.contact-email-display {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.contact-email-display:hover {
  border-color: rgba(0, 212, 170, 0.4);
  background: rgba(0, 212, 170, 0.06);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.12);
  transform: translateY(-2px);
}

.contact-email-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 170, 0.12);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.contact-email-text {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.contact-response-note {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-xl);
}

.contact-address {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  max-width: 100%;
  line-height: 1.5;
}

.contact-address svg {
  flex-shrink: 0;
  color: var(--color-text-subtle);
  opacity: 0.7;
}

#copy-email.copied {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

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

.footer-brand {
  max-width: 280px;
}

.logo--footer {
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-links-group h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links-group a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}

.footer-made {
  font-style: italic;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.legal-page {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
  min-height: 100vh;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.legal-updated {
  color: var(--color-text-subtle);
  font-size: 0.875rem;
  margin-bottom: var(--space-2xl);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-2xl);
  transition: opacity var(--transition-fast);
}

.legal-back:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Support Page
   ========================================================================== */

.support-page {
  padding-top: var(--header-height);
}

.support-hero {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
}

.support-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.support-hero-bg .hero-orb--1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -80px;
  opacity: 0.3;
}

.support-hero-bg .hero-orb--2 {
  width: 350px;
  height: 350px;
  bottom: -80px;
  left: -60px;
  opacity: 0.25;
}

.support-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.support-hero-content .legal-back {
  margin-bottom: var(--space-xl);
}

.support-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.support-hero-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

.support-section--alt {
  background: var(--color-bg-elevated);
}

.support-section--cta {
  padding-bottom: var(--space-4xl);
}

.support-section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-3xl);
}

.nav-menu--subpage {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.support-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.support-quick-card {
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.support-quick-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.support-quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 212, 170, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.support-quick-card h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.support-quick-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.support-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.support-app-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.support-app-card:hover {
  border-color: rgba(0, 212, 170, 0.35);
  background: rgba(0, 212, 170, 0.04);
  transform: translateX(4px);
}

.support-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.support-app-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.support-app-card p {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

.support-app-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--color-text-subtle);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.support-app-card:hover .support-app-arrow {
  color: var(--color-accent);
  transform: translateX(4px);
}

.support-faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

.support-faq-item[open] {
  border-color: rgba(0, 212, 170, 0.3);
}

.support-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
}

.support-faq-item summary::-webkit-details-marker {
  display: none;
}

.support-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.support-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.support-faq-item summary:hover {
  color: var(--color-accent);
}

.support-faq-item p {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.support-faq-item a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-faq-item a:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .nav-menu--subpage {
    display: none;
  }

  .support-quick-grid {
    grid-template-columns: 1fr;
  }

  .support-apps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Marketing Page (App Store landing)
   ========================================================================== */

.marketing-page {
  background: var(--color-bg);
}

.marketing-header .nav {
  justify-content: space-between;
}

.marketing-header-link {
  font-size: 0.875rem;
}

/* Spotlight (featured app via ?app=) */
.marketing-spotlight {
  position: relative;
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  overflow: hidden;
}

.marketing-spotlight-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(0, 212, 170, 0.12) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 80%, rgba(0, 168, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.marketing-spotlight--yuca .marketing-spotlight-bg {
  background: radial-gradient(ellipse at 30% 20%, rgba(74, 222, 128, 0.15) 0%, transparent 55%);
}

.marketing-spotlight--skinerblox .marketing-spotlight-bg {
  background: radial-gradient(ellipse at 30% 20%, rgba(244, 114, 182, 0.15) 0%, transparent 55%);
}

.marketing-spotlight--spinblox .marketing-spotlight-bg {
  background: radial-gradient(ellipse at 30% 20%, rgba(251, 191, 36, 0.15) 0%, transparent 55%);
}

.marketing-spotlight--bedtime .marketing-spotlight-bg {
  background: radial-gradient(ellipse at 30% 20%, rgba(129, 140, 248, 0.15) 0%, transparent 55%);
}

.marketing-spotlight-inner {
  position: relative;
  z-index: 1;
}

.marketing-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-top: var(--space-xl);
}

.marketing-spotlight-visual {
  display: flex;
  justify-content: center;
}

.marketing-phone-frame {
  width: 260px;
  padding: 10px;
  background: linear-gradient(145deg, #1a2236 0%, #0f1520 100%);
  border-radius: 36px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.marketing-spotlight-screenshot {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

.marketing-spotlight-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.marketing-spotlight-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.marketing-spotlight-tagline {
  font-size: 1.125rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.marketing-spotlight-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 440px;
}

.btn-appstore-hero {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-appstore-hero:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

/* Default hero */
.marketing-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
  text-align: center;
  overflow: hidden;
}

.marketing-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.marketing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marketing-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.marketing-hero-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

/* Trust strip */
.marketing-trust {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.marketing-trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl) var(--space-2xl);
}

.marketing-trust-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.marketing-trust-list svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Apps list */
.marketing-apps {
  padding: var(--space-4xl) 0;
}

.marketing-section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-3xl);
}

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

.marketing-app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.marketing-app--reverse {
  direction: rtl;
}

.marketing-app--reverse > * {
  direction: ltr;
}

.marketing-app--featured {
  border-color: rgba(0, 212, 170, 0.45);
  box-shadow: 0 0 60px rgba(0, 212, 170, 0.12);
}

.marketing-app-showcase {
  display: flex;
  justify-content: center;
}

.marketing-app-phone {
  width: 220px;
  padding: 8px;
  background: linear-gradient(145deg, #1a2236 0%, #0f1520 100%);
  border-radius: 32px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.marketing-app-screenshot {
  width: 100%;
  height: auto;
  border-radius: 26px;
  display: block;
}

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

.marketing-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.marketing-app-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.marketing-app-tagline {
  font-size: 0.9375rem;
  color: var(--color-accent);
  font-weight: 500;
}

.marketing-app-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

/* CTA banner */
.marketing-cta {
  padding: 0 0 var(--space-4xl);
}

.marketing-cta-card {
  position: relative;
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.marketing-cta-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.marketing-cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  position: relative;
}

.marketing-cta-card p {
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.marketing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  position: relative;
}

/* Footer */
.marketing-footer {
  padding: var(--space-2xl) 0;
}

.marketing-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.marketing-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.marketing-footer-nav a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.marketing-footer-nav a:hover {
  color: var(--color-accent);
}

.marketing-footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

@media (max-width: 900px) {
  .marketing-spotlight-grid,
  .marketing-app {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .marketing-app--reverse {
    direction: ltr;
  }

  .marketing-spotlight-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .marketing-app-header {
    justify-content: center;
  }

  .marketing-app .btn-appstore {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .marketing-trust-list {
    flex-direction: column;
    align-items: center;
  }

  .marketing-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .marketing-cta-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: 240px;
    height: 500px;
  }

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

  .why-us-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: var(--space-2xl) var(--space-lg);
  }

  .contact-email-display {
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: var(--space-lg);
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }

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

@media (max-width: 768px) {
  :root {
    --space-4xl: 4rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

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

  .nav-menu .nav-link {
    font-size: 1.25rem;
  }

  .nav-cta {
    margin-top: var(--space-md);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .app-showcase {
    height: 280px;
  }

  .app-screenshots {
    height: 230px;
  }

  .app-phone-frame {
    width: 130px;
  }

  .trust-metrics {
    grid-template-columns: 1fr;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

.reduced-motion .lottie-bg {
  display: none;
}
