/* ===================================
   quiXzoom Landing Page — styles.css
   =================================== */

:root {
  --qz-dark: #0A0A1B;
  --qz-dark-2: #0F0F24;
  --qz-dark-3: #16162E;
  --qz-blue: #2563EB;
  --qz-blue-light: #3B82F6;
  --qz-accent: #7C3AED;
  --qz-accent-light: #8B5CF6;
  --qz-text: #E2E8F0;
  --qz-text-muted: #94A3B8;
  --qz-text-dim: #64748B;
  --qz-border: rgba(255, 255, 255, 0.08);
  --qz-card: rgba(255, 255, 255, 0.04);
  --qz-card-hover: rgba(255, 255, 255, 0.07);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background-color: var(--qz-dark);
  color: var(--qz-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* === NAV === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(10, 10, 27, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qz-border);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--qz-text);
}

.nav-logo span {
  color: var(--qz-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--qz-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--qz-blue);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--qz-blue-light) !important;
  transform: translateY(-1px);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--qz-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--qz-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--qz-text-muted);
  border: 1px solid var(--qz-border);
}

.btn-ghost:hover {
  color: var(--qz-text);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--qz-card);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--qz-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--qz-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

/* === HERO === */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    var(--qz-dark);
}

/* Subtle map grid texture */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

/* Glow orbs */
.hero-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--qz-blue-light);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--qz-blue);
  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-title {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--qz-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--qz-text);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--qz-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* === HOW IT WORKS === */
#how-it-works {
  background: var(--qz-dark-2);
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qz-blue);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--qz-text-muted);
  max-width: 520px;
  font-size: 1.05rem;
}

.section-header {
  margin-bottom: 4rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
}

/* Connector line on desktop */
@media (min-width: 768px) {
  .steps::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: calc(16.66% + 0.75rem);
    right: calc(16.66% + 0.75rem);
    height: 1px;
    background: linear-gradient(90deg, var(--qz-blue) 0%, var(--qz-accent) 100%);
    opacity: 0.3;
    z-index: 0;
  }
}

.step-card {
  background: var(--qz-card);
  border: 1px solid var(--qz-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.step-card:hover {
  background: var(--qz-card-hover);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
}

.step-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--qz-text-dim);
  margin-bottom: 1rem;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.step-card h3 {
  margin-bottom: 0.5rem;
  color: var(--qz-text);
}

.step-card p {
  color: var(--qz-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* === SPLIT SECTIONS === */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split-visual {
  background: var(--qz-card);
  border: 1px solid var(--qz-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.split-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.visual-icon {
  font-size: 4rem;
  position: relative;
  z-index: 1;
}

.visual-label {
  font-size: 0.85rem;
  color: var(--qz-text-dim);
  margin-top: 1rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
}

/* Photographer section */
#photographers {
  background: var(--qz-dark);
}

#photographers .split-visual {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(10, 10, 27, 0.9) 100%);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Organizations section */
#organizations {
  background: var(--qz-dark-2);
}

#organizations .split-visual {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(15, 15, 36, 0.9) 100%);
  border-color: rgba(124, 58, 237, 0.2);
}

.split-content .section-label {
  margin-bottom: 0.5rem;
}

.split-content h2 {
  margin-bottom: 1rem;
}

.split-content p {
  color: var(--qz-text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-list {
  margin-bottom: 2.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--qz-text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--qz-border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  color: var(--qz-blue);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

#organizations .feature-list li::before {
  color: var(--qz-accent);
}

/* === CTA BAND === */
#cta-band {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-top: 1px solid var(--qz-border);
  border-bottom: 1px solid var(--qz-border);
  text-align: center;
}

#cta-band h2 {
  margin-bottom: 1rem;
}

#cta-band p {
  color: var(--qz-text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* === FOOTER === */
footer {
  background: var(--qz-dark-2);
  border-top: 1px solid var(--qz-border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-logo span {
  color: var(--qz-blue);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--qz-text-dim);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--qz-text-dim);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--qz-text-dim);
}

/* === MAP DOTS ANIMATION (decorative) === */
.map-dots {
  position: relative;
  width: 200px;
  height: 160px;
}

.map-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--qz-blue);
  border-radius: 50%;
  animation: dot-pulse 3s infinite;
}

.map-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--qz-blue);
  animation: ripple 3s infinite;
}

.map-dot:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.map-dot:nth-child(2) { top: 60%; left: 70%; animation-delay: 0.8s; background: var(--qz-accent); }
.map-dot:nth-child(2)::after { border-color: var(--qz-accent); }
.map-dot:nth-child(3) { top: 75%; left: 20%; animation-delay: 1.6s; }
.map-dot:nth-child(4) { top: 35%; left: 80%; animation-delay: 2.2s; background: var(--qz-accent); }
.map-dot:nth-child(4)::after { border-color: var(--qz-accent); }

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

@keyframes ripple {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.5); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }

  .nav-links { display: none; }

  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split.reverse {
    direction: ltr;
  }

  .split-visual {
    min-height: 200px;
    order: -1;
  }

  section { padding: 4rem 0; }

  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
