/* ============================================================
   FormuVet Marketing Website — Design System
   Light theme: white, medical green, blue, purple accents
   ============================================================ */

/* ---- Google Font ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Primary Colors — Medical Green + Blue */
  --color-green: #10B981;
  --color-green-dark: #059669;
  --color-green-light: #34D399;
  --color-blue: #3B82F6;
  --color-blue-dark: #2563EB;
  --color-blue-light: #60A5FA;
  --color-purple: #8B5CF6;
  --color-purple-dark: #7C3AED;
  --color-purple-light: #A78BFA;

  /* Backgrounds */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-section: #F1F5F9;
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-hover: rgba(241, 245, 249, 1);

  /* Borders */
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;

  /* Text */
  --color-text: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
  --gradient-accent: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  --gradient-hero: linear-gradient(135deg, #ECFDF5 0%, #EFF6FF 50%, #F5F3FF 100%);
  --gradient-surface: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
  --gradient-warm: linear-gradient(135deg, #10B981 0%, #8B5CF6 100%);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-hero: clamp(2.5rem, 6vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-green: 0 4px 20px rgba(16, 185, 129, 0.2);
  --shadow-blue: 0 4px 20px rgba(59, 130, 246, 0.2);
  --shadow-purple: 0 4px 20px rgba(139, 92, 246, 0.2);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 8px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(16,185,129,0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index */
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;

}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden !important;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

/* Subtle geometric medical SVG background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M38 38V28h4v10h10v4H42v10h-4V42H28v-4h10zM16 16h3v3h-3v-3zM61 61h3v3h-3v-3zM16 61h3v3h-3v-3zM61 16h3v3h-3v-3z' fill='%2310B981' fill-opacity='0.025' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Animated mesh gradient blob overlays */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(139, 92, 246, 0.04) 0%, transparent 40%);
  animation: bgMeshFloat 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bgMeshFloat {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(2%, 3%); }
  100% { transform: scale(1) translate(-2%, -2%); }
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

/* ---- Background Ambient Effects ---- */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: orbFloat 20s ease-in-out infinite;
}

.ambient-orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(16, 185, 129, 0.15);
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

.ambient-orb--2 {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.12);
  top: 40%;
  right: -15%;
  animation-delay: -7s;
  animation-duration: 25s;
}

.ambient-orb--3 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.1);
  bottom: -10%;
  left: 30%;
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.02); }
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: var(--space-4) var(--space-6);
  transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
  padding: var(--space-3) var(--space-6);
}

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

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.nav__brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1);
}

.nav__link {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link--active {
  color: white;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-green);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: var(--space-2);
  z-index: var(--z-overlay);
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

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

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: var(--z-nav);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.nav__mobile-menu--open {
  display: flex;
}

.nav__mobile-link {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover,
.nav__mobile-link--active {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Main Content ---- */
.main-content {
  position: relative;
  z-index: 2;
}

/* ---- Section Base ---- */
.section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  overflow-x: hidden;
}

.section--active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.section--animating-in {
  animation: sectionFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-32) var(--space-6) var(--space-16);
  position: relative;
  background: var(--gradient-hero);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
  animation: fadeSlideUp 0.8s ease-out both;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero__title {
  font-size: var(--font-size-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: var(--space-6);
  color: var(--color-text);
  animation: fadeSlideUp 0.8s ease-out 0.1s both;
}

.hero__title-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--space-10);
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-16);
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

/* Google Play Button */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  background: #111;
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-store:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 0, 0, 0.15);
}

.btn-store svg {
  width: 28px;
  height: 28px;
}

.btn-store__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-store__label {
  font-size: var(--font-size-xs);
  font-weight: 400;
  opacity: 0.7;
}

.btn-store__name {
  font-size: var(--font-size-base);
  font-weight: 700;
}

/* App Store "Coming Soon" */
.btn-store--coming-soon {
  background: #1a1a2e;
  opacity: 0.8;
  cursor: default;
  position: relative;
}

.btn-store--coming-soon:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.btn-store--coming-soon .btn-store__label {
  font-size: var(--font-size-xs);
  opacity: 0.6;
}

/* Secondary CTA */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-spring), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Trust Stats */
.hero__stats {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideUp 0.8s ease-out 0.5s both;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: var(--space-1);
}

/* Hero decorative grid */
.hero__grid {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(0,0,0,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ---- Features Section ---- */
.features {
  padding: var(--space-32) var(--space-6) var(--space-20);
  max-width: 1200px;
  margin: 0 auto;
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-20);
}

.features__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.features__title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.features__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

/* Feature Card */
.feature-card {
  --card-color: var(--color-green);
  --card-color-light: rgba(16, 185, 129, 0.05);
  --card-color-hover: rgba(16, 185, 129, 0.3);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  transition: transform var(--transition-spring), border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);

  /* Scroll animation initial state */
  opacity: 0;
  transform: translateY(40px);
}

/* Feature Card Themes */
.feature-card--green { --card-color: #10B981; --card-color-light: rgba(16, 185, 129, 0.1); --card-color-hover: rgba(16, 185, 129, 0.4); }
.feature-card--blue { --card-color: #3B82F6; --card-color-light: rgba(59, 130, 246, 0.1); --card-color-hover: rgba(59, 130, 246, 0.4); }
.feature-card--red { --card-color: #EF4444; --card-color-light: rgba(239, 68, 68, 0.1); --card-color-hover: rgba(239, 68, 68, 0.4); }
.feature-card--yellow { --card-color: #F59E0B; --card-color-light: rgba(245, 158, 11, 0.1); --card-color-hover: rgba(245, 158, 11, 0.4); }
.feature-card--orange { --card-color: #F97316; --card-color-light: rgba(249, 115, 22, 0.1); --card-color-hover: rgba(249, 115, 22, 0.4); }
.feature-card--purple { --card-color: #8B5CF6; --card-color-light: rgba(139, 92, 246, 0.1); --card-color-hover: rgba(139, 92, 246, 0.4); }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity var(--transition-base), transform var(--transition-spring);
  z-index: 2;
}

/* Glass swipe reflection */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.7), transparent);
  transform: skewX(-25deg);
  opacity: 0;
  z-index: 1;
}

.feature-card:hover, .feature-card.is-active {
  border-color: var(--card-color-hover);
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.06), 0 0 30px var(--card-color-light), inset 0 0 0 1px var(--card-color-hover);
  background: linear-gradient(to bottom, var(--card-color-light) 0%, white 25%);
}

.feature-card:hover::before, .feature-card.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}

.feature-card:hover::after, .feature-card.is-active::after {
  animation: glassSwipe 0.8s ease-out;
}

@keyframes glassSwipe {
  0% { left: -100%; opacity: 0; }
  50% { opacity: 0.6; }
  100% { left: 200%; opacity: 0; }
}

.feature-card--visible {
  animation: cardSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, white, var(--card-color-light));
  color: var(--card-color);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), 0 4px 15px var(--card-color-light);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
  z-index: 2;
  position: relative;
}

.feature-card:hover .feature-card__icon, .feature-card.is-active .feature-card__icon {
  transform: scale(1.1) translateY(-4px) rotate(5deg);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 8px 25px var(--card-color-hover);
}

.feature-card__content {
  flex: 1;
}

.feature-card__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.feature-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto var(--space-6);
}

/* ---- 3D Phone Mockup (Hyper-Realistic) ---- */
.phone-mockup {
  width: 250px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  /* The overarching float animation goes here */
  animation: phoneFloat 6s ease-in-out infinite;
  perspective: 1200px; /* High perspective for subtle 3D */
  z-index: 2;
}

/* Pause idle float while interacting */
.phone-mockup--interacting {
  animation-play-state: paused;
}

/* ---- Hardware Frame (Single Plane) ---- */
.phone-mockup__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #09090b; /* Very dark grey/black titanium */
  border-radius: 40px;
  padding: 10px; /* The bezel thickness */
  /* This creates the ultra-realistic solid body and floating depth */
  box-shadow: 
    inset 0 0 0 2px #333336, /* Inner titanium reflection */
    inset 0 0 0 4px #18181b, /* Dark edge */
    inset 0 2px 4px rgba(255,255,255,0.1), /* Top light catch */
    0 40px 80px rgba(0, 0, 0, 0.4), /* Deep disconnected shadow */
    0 15px 35px rgba(0, 0, 0, 0.2); /* Base shadow */
  transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.1s ease;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

/* Side button accents (Power + Volume) rendered completely flat on the sides */
.phone-mockup__frame::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 100px;
  width: 2px;
  height: 45px;
  background: #333336;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 60px 0 #333336, inset 1px 0 1px rgba(255,255,255,0.2);
}
.phone-mockup__frame::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 120px;
  width: 2px;
  height: 60px;
  background: #333336;
  border-radius: 0 2px 2px 0;
  box-shadow: inset -1px 0 1px rgba(255,255,255,0.2);
}

/* Dynamic notch / Dynamic Island */
.phone-mockup__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.1);
}

/* Camera dot */
.phone-mockup__notch::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 35% 35%, #2a3a5c 30%, #000 90%);
  border-radius: 50%;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Screen */
.phone-mockup__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #111;
  /* Mask to prevent corner bleed over rounded borders */
  mask-image: radial-gradient(white, black);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(1px);
}

.phone-mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Home bar indicator */
.phone-mockup__home-bar {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  z-index: 10;
  mix-blend-mode: overlay;
}

/* Glass reflection overlay */
.phone-mockup__reflection {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 30px;
  pointer-events: none;
  z-index: 15;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.0) 40%
  );
  transition: background 0.1s ease;
  transform: translateZ(2px);
}

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

/* ---- Contact Section ---- */
.contact {
  padding: var(--space-32) var(--space-6) var(--space-20);
  max-width: 900px;
  margin: 0 auto;
}

.contact__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.contact__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.contact__title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.contact__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: transform var(--transition-spring), box-shadow var(--transition-base), opacity var(--transition-fast);
  box-shadow: var(--shadow-green);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-green), var(--shadow-lg);
}

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

.btn-primary--loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-primary__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Contact Info Panel */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info__text h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.contact-info__text p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Success message */
.contact-form__success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #ECFDF5;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  color: var(--color-green-dark);
  font-size: var(--font-size-sm);
  font-weight: 500;
  animation: fadeSlideUp 0.4s ease-out both;
}

.contact-form__success--visible {
  display: flex;
}

/* ---- Privacy Policy Section ---- */
.privacy {
  padding: var(--space-32) var(--space-6) var(--space-20);
  max-width: 800px;
  margin: 0 auto;
}

.privacy__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.privacy__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.privacy__title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.privacy__date {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.privacy__content {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-card);
}

.privacy__content h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.privacy__content h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.privacy__content p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.privacy__content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.privacy__content ul li {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

.privacy__content strong {
  color: var(--color-text);
}

/* Sub-navigation for Privacy/Indemnity */
.privacy__tabs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.privacy__tab {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.privacy__tab:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

.privacy__tab--active {
  color: white;
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: var(--shadow-purple);
}

.privacy__doc {
  display: none;
}

.privacy__doc--active {
  display: block;
  animation: fadeSlideUp 0.4s ease-out both;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) var(--space-6);
  margin-top: var(--space-20);
  background: var(--color-bg-alt);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__brand {
  font-size: var(--font-size-base);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__copy {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__link {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer__link:hover {
  color: var(--color-text);
}

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

.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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---- Utility Animations ---- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .features__grid {
    gap: var(--space-6);
  }

  .feature-card {
    padding: var(--space-8);
  }

  .phone-mockup {
    width: 210px;
  }
}

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

  .nav__hamburger {
    display: flex;
  }

  .hero {
    padding: var(--space-20) var(--space-4) var(--space-12);
  }

  .nav {
    padding: var(--space-3) var(--space-4);
  }

  .nav--scrolled {
    padding: var(--space-2) var(--space-4);
  }

  .hero__title {
    font-size: var(--font-size-4xl);
  }

  .hero__stats {
    gap: var(--space-6);
  }

  .hero__stat-value {
    font-size: var(--font-size-2xl);
  }

  .features {
    padding: var(--space-20) var(--space-4) var(--space-12);
  }

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

  .features__title {
    font-size: var(--font-size-3xl);
  }

  .feature-card {
    padding: var(--space-6);
  }

  .phone-mockup {
    width: 190px;
  }

  .phone-mockup__frame {
    border-radius: 28px;
    padding: 10px;
  }

  .phone-mockup__screen {
    border-radius: 18px;
  }

  .phone-mockup__notch {
    width: 70px;
    height: 18px;
    top: 10px;
  }

  .phone-mockup__reflection {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 18px;
  }

  .contact {
    padding: var(--space-20) var(--space-4) var(--space-12);
  }

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

  .contact__title,
  .features__title,
  .privacy__title {
    font-size: var(--font-size-3xl);
  }

  .privacy {
    padding: var(--space-20) var(--space-4) var(--space-12);
  }

  .privacy__content {
    padding: var(--space-6);
  }

  .privacy__tabs {
    flex-wrap: wrap;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .hero__cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-store,
  .btn-store--coming-soon,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .nav {
    padding: var(--space-2) var(--space-3);
  }

  .nav__brand {
    font-size: var(--font-size-base);
    gap: var(--space-2);
  }

  .nav__brand-logo {
    width: 32px;
    height: 32px;
  }

  .phone-mockup {
    width: 160px;
  }

  .phone-mockup__frame {
    border-radius: 24px;
    padding: 8px;
  }

  .phone-mockup__screen {
    border-radius: 16px;
  }

  .phone-mockup__notch {
    width: 60px;
    height: 16px;
    top: 8px;
  }

  .phone-mockup__home-bar {
    width: 70px;
    height: 3px;
    bottom: 12px;
  }

  .phone-mockup__reflection {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 16px;
  }
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Selection */
::selection {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-text);
}
