/* Audio Studio Premium Apple-Like Styling System */

/* Font Stack prioritized by Apple System Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-pure-black: #000000;
  --bg-apple-dark: #070709;
  --bg-card: rgba(18, 18, 22, 0.45);
  --bg-card-hover: rgba(26, 26, 32, 0.6);
  
  /* Apple Pro Color Palette */
  --apple-blue: #0071e3;
  --apple-indigo: #5e5ce6;
  --apple-gray-text: #86868b;
  --apple-border: rgba(255, 255, 255, 0.06);
  --apple-border-hover: rgba(255, 255, 255, 0.15);
  --apple-reflection: linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 30%);
  
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-dim: #3e3e42;
  
  /* Fonts */
  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-fancy: 'Plus Jakarta Sans', var(--font-apple);
  
  /* Transitions: Buttery Smooth iOS Ease-Out Curve */
  --transition-apple: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  
  --radius-pro: 22px;
  --radius-md: 14px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-pure-black);
  color: var(--text-primary);
  font-family: var(--font-apple);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  scroll-behavior: smooth;
}

/* Elegant Muted Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-pure-black);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Dynamic Radial Mesh Backdrops - Organic Fluid Morphing */
.background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.mesh-glow-1 {
  position: absolute;
  top: -15%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(94, 92, 230, 0.08) 0%, rgba(0,0,0,0) 70%);
  filter: blur(100px);
  animation: float-and-morph-1 22s infinite alternate ease-in-out;
}

.mesh-glow-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.06) 0%, rgba(0,0,0,0) 70%);
  filter: blur(100px);
  animation: float-and-morph-2 28s infinite alternate ease-in-out;
}

/* Layout Utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Sticky Minimal Apple Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px; /* Sleek, minimal Apple-like navbar height */
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--apple-border);
  z-index: 1000;
  transition: var(--transition-apple);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1024px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-apple);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.brand-img {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Navbar indicators & links styling */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  position: relative;
  z-index: 5;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-apple);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  padding: 6px 10px;
  position: relative;
  z-index: 10;
}

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

.nav-indicator-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.38s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-btn {
  text-decoration: none;
  padding: 5px 12px;
  background: var(--apple-blue);
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.75rem;
  color: white;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  background: #0077ed;
  transform: scale(1.02);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Apple Premium Typography */
.apple-title-gradient {
  background: linear-gradient(180deg, #ffffff 30%, #d2d2d7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS (Spring Ease-Out)
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(6px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: transform, opacity, filter;
}

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

/* Glassmorphism Bento Card base with sweep sheen shine & spotlight flashlight tracking */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-pro);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-apple);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255, 255, 255, 0.04), transparent 80%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: none;
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--apple-border-hover);
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.glass-panel:hover::before {
  opacity: 1;
}

.glass-panel:hover::after {
  left: 150%;
  transition: left 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium App Store Badge styling */
.store-badge {
  display: inline-block;
  height: 48px;
  transition: var(--transition-apple);
}

.store-badge img {
  height: 100%;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--apple-border);
  transition: var(--transition-apple);
}

.store-badge:hover img {
  border-color: var(--apple-border-hover);
  transform: scale(1.03);
}

/* Hero Section */
.hero {
  padding: 130px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--bg-pure-black);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge {
  align-self: flex-start;
  font-family: var(--font-apple);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--apple-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-apple);
  font-size: 3.4rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.hero-metrics {
  display: flex;
  gap: 36px;
  margin-top: 16px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-val {
  font-family: var(--font-apple);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Premium iPhone Device Mockup & 3D Tilt Parallax animations */
.iphone-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px; /* Space between the 3D iPhone and the control console below */
  perspective: 1000px; /* Essential for 3D depth tilt! */
}

.iphone-device {
  width: 272px; /* Sleek realistic width */
  background: #000;
  border-radius: 42px;
  border: 8px solid #1c1c1e; /* Clean thin Apple-like bezels */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95),
              inset 0 0 3px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Screen shine reflection */
.iphone-device::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: var(--apple-reflection);
  z-index: 10;
  pointer-events: none;
}

.iphone-notch {
  position: absolute;
  top: 7px; /* Pixel-perfect top alignment matching real 1.25% screen height offset */
  left: 50%;
  transform: translateX(-50%);
  width: 70px; /* Precise scale matching real 25.5% screen width ratio */
  height: 20px; /* Proportional real 3:1 rounded pill aspect ratio */
  background: #000;
  border-radius: 10px; /* Perfectly rounded pill edges */
  z-index: 20;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.iphone-screen {
  width: 100%;
  aspect-ratio: 1290 / 2796; /* EXACT aspect ratio of the 1290x2796 screenshots! */
  background: #000;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
}

.iphone-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.iphone-slide {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: var(--transition-apple);
}

.iphone-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* Use fill or cover since aspect ratio is 100% identical! Fill guarantees 1-to-1 visual fit without a single pixel cropped! */
  display: block;
}

/* Carousel Console (safely positioned below the 3D iPhone) */
.carousel-console {
  width: 100%;
  max-width: 272px; /* Perfectly aligned with the 3D iPhone width */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-top: 16px; /* Elegant breathing space below the physical device frame */
}

.carousel-tag-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 68px; /* Fixed height eliminates layout shifts when sliding between descriptions */
  justify-content: center;
}

#screenshot-tag {
  font-family: var(--font-apple);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

#screenshot-desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.45;
  padding: 0 10px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.slider-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  width: 16px;
  border-radius: 3px;
  background: white;
}

.carousel-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* Sections Headers */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--apple-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.4;
}

/* ==========================================
   BENTO GRID LAYOUT (Premium & Modern)
   ========================================== */
.features {
  padding: 80px 0;
  position: relative;
  background-color: var(--bg-pure-black);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

/* Apple Bento Specific Sizing overrides */
.card-wide-3 {
  grid-column: span 3;
}

.card-wide-2 {
  grid-column: span 2;
}

.card-full-6 {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.card-full-6 .feature-card-content {
  flex: 1.2;
}

.card-full-6 .feature-card-list {
  flex: 0.8;
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feature-icon-wrapper {
  align-self: flex-start;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--apple-blue);
  color: white;
  transform: scale(1.05);
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
}

.feature-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.feature-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.feature-card-list li::before {
  content: '・';
  color: var(--apple-blue);
  font-weight: 900;
}

/* Studio Tools Pipeline section styling */
.pipeline-section {
  padding: 80px 0;
  background-color: var(--bg-apple-dark);
}

.pipeline-diagram {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 50px auto 0;
  position: relative;
  gap: 20px;
}

/* Apple styled line pipeline - Pulsing moving light loops */
.pipeline-diagram::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--apple-blue), transparent);
  background-size: 200% 100%;
  animation: flow-light 4s infinite linear;
  z-index: 1;
  opacity: 0.35;
}

@keyframes flow-light {
  0% { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}

.pipeline-node {
  background: rgba(25, 25, 28, 0.6);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 140px;
  text-align: center;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  transition: var(--transition-apple);
}

.pipeline-node::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--apple-blue);
  opacity: 0;
  pointer-events: none;
}

.pipeline-node.revealed::after {
  animation: sonar-pulse 4s infinite;
}

.pipeline-node:nth-child(1)::after { animation-delay: 0s; }
.pipeline-node:nth-child(2)::after { animation-delay: 0.8s; }
.pipeline-node:nth-child(3)::after { animation-delay: 1.6s; }
.pipeline-node:nth-child(4)::after { animation-delay: 2.4s; }
.pipeline-node:nth-child(5)::after { animation-delay: 3.2s; }

@keyframes sonar-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

.pipeline-node:hover {
  transform: translateY(-5px);
  border-color: var(--apple-border-hover);
  background: rgba(30, 30, 35, 0.8);
}

.pipeline-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: inline-block;
}

.pipeline-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.pipeline-meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
  display: block;
}

/* Gesture Interaction shortcuts styling */
.gestures-section {
  padding: 80px 0;
  background-color: var(--bg-pure-black);
}

.gestures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.gesture-card {
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gesture-visual {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition-fast);
  position: relative;
}

/* circular gestural triggers */
.gesture-card:hover .gesture-visual {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--apple-border-hover);
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Minimal pulsing rings and arrow pointers for gestures */
.gesture-arrow-up::after {
  content: '↑';
  position: absolute;
  font-size: 0.9rem;
  color: var(--apple-blue);
  top: -6px;
  transition: var(--transition-fast);
}

.gesture-card:hover .gesture-arrow-up::after {
  animation: pulse-arrow-v 0.8s infinite ease-in-out;
}

.gesture-arrow-down::after {
  content: '↓';
  position: absolute;
  font-size: 0.9rem;
  color: var(--apple-blue);
  bottom: -6px;
  transition: var(--transition-fast);
}

.gesture-card:hover .gesture-arrow-down::after {
  animation: pulse-arrow-v 0.8s infinite alternate ease-in-out;
}

.gesture-arrow-left::after {
  content: '←';
  position: absolute;
  font-size: 0.9rem;
  color: var(--apple-blue);
  left: -6px;
  transition: var(--transition-fast);
}

.gesture-card:hover .gesture-arrow-left::after {
  animation: pulse-arrow-h 0.8s infinite ease-in-out;
}

.gesture-pulse::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--apple-indigo);
  opacity: 0;
  transition: var(--transition-fast);
}

.gesture-card:hover .gesture-pulse::after {
  animation: pulse-ring 0.8s infinite ease-out;
}

.gesture-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.gesture-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.35;
}

/* Call to Action Section */
.cta-section {
  padding: 100px 0;
  background-color: var(--bg-apple-dark);
}

.cta-box {
  padding: 70px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--apple-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-title {
  font-size: 2.8rem;
  font-weight: 700;
  max-width: 600px;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.4;
}

.cta-badges {
  margin-top: 4px;
}

/* Minimalist Footer */
.footer {
  background: var(--bg-pure-black);
  border-top: 1px solid var(--apple-border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 280px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

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

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  text-decoration: none;
  color: var(--text-dim);
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* Legal sheets layout styles */
.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 80vh;
}

.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 50px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-sidebar-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 8px;
  padding-left: 8px;
}

.legal-side-link {
  text-decoration: none;
  padding: 8px 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.legal-side-link:hover {
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
}

.legal-side-link.active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--apple-blue);
  font-weight: 600;
}

.legal-body {
  padding: 40px;
}

.legal-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--apple-border);
  padding-bottom: 20px;
}

.legal-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.legal-content ul {
  list-style-type: none;
  margin-bottom: 20px;
  padding-left: 0;
}

.legal-content ul li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.legal-content ul li::before {
  content: '・';
  color: var(--apple-blue);
  font-weight: 900;
}

/* ANIMATIONS DEF */
@keyframes float-slow {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(10px) rotate(3deg) scale(1.03); }
  100% { transform: translateY(-8px) rotate(-2deg) scale(0.98); }
}

@keyframes float-and-morph-1 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  50% {
    transform: translate(80px, 60px) scale(1.15) rotate(180deg);
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
  }
  100% {
    transform: translate(-40px, 80px) scale(0.9) rotate(360deg);
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
  }
}

@keyframes float-and-morph-2 {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
  }
  50% {
    transform: translate(-100px, -50px) scale(1.2) rotate(-180deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  100% {
    transform: translate(60px, -90px) scale(0.95) rotate(-360deg);
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
  }
}

@keyframes pulse-arrow-v {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pulse-arrow-h {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-description {
    margin: 0 auto;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .card-wide-3, .card-wide-2, .card-full-6 {
    grid-column: span 2;
  }
  
  .card-full-6 {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .card-full-6 .feature-card-list {
    grid-template-columns: 1fr;
  }
  
  .pipeline-diagram {
    flex-direction: column;
    gap: 24px;
  }
  
  .pipeline-diagram::before {
    display: none;
  }
  
  .gestures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .legal-grid {
    grid-template-columns: 1fr;
  }
  
  .legal-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  
  .hero-ctas .store-badge {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .hero-metrics {
    gap: 20px;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .card-wide-3, .card-wide-2, .card-full-6 {
    grid-column: span 1;
  }
  
  .gestures-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .legal-body {
    padding: 24px;
  }
}
