/* ============================================
   AMILLY Performance Deck
   Bright, clean, Apple iPhone-style aesthetic
   ============================================ */

:root {
  --bg-white: #ffffff;
  --bg-light: #f8f8fa;
  --bg-warm: #faf9f7;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent-gold: #c9a84c;
  --accent-blue: #0071e3;
  --border-light: rgba(0, 0, 0, 0.06);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --content-width: 1200px;
  --section-padding: clamp(80px, 12vh, 140px);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Sections */
.section {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding) 40px;
}

.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Typography */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  opacity: 0.4;
}

.headline {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.subheadline {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 700px;
}

.body-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 24px;
}

.pull-quote {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 800px;
  letter-spacing: -0.01em;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 48px 0;
}

.stat-block {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--bg-white);
}

.stat-value {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.feature-card {
  padding: 32px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--bg-white);
}

.feature-card .feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card .feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Full Bleed Photo */
.photo-full {
  width: 100%;
  height: clamp(300px, 50vh, 600px);
  overflow: hidden;
  position: relative;
}

.photo-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* Hero with photo background */
.hero-photo {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-photo .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.95) 70%, rgba(255,255,255,1) 100%);
}

.hero-photo .section-inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
}

/* Side by side layout */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-section .split-image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split-section .split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0;
}

.photo-grid .grid-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}

.photo-grid .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-grid .grid-item:hover img {
  transform: scale(1.05);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 120px 40px;
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: var(--text-primary);
  color: var(--bg-white);
  border: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 113, 227, 0.3);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--border-light);
}

.footer-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* GSAP initial states */
.gsap-fade { opacity: 0; transform: translateY(30px); }
.gsap-stat { opacity: 0; transform: scale(0.85); }
.gsap-card { opacity: 0; transform: translateY(20px); }
.gsap-photo { opacity: 0; }
.gsap-word { opacity: 0; transform: translateY(20px); display: inline-block; }

/* Letterbox photo */
.photo-letterbox {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  margin: 48px 0;
}

.photo-letterbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .section { padding: var(--section-padding) 24px; }
  .nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-full { height: 300px; }
  .hero-photo { min-height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  .gsap-fade, .gsap-stat, .gsap-card, .gsap-photo, .gsap-word {
    opacity: 1 !important;
    transform: none !important;
  }
}
