/* Finora Website - Framer-inspired Design */

/* CSS Variables - Finora Brand Colors & Dark Theme */
:root {
  /* Colors */
  --color-background: #0a0f0f;
  --color-surface: #1a2323;
  --color-surface-elevated: #243333;
  --color-primary: #4ECDC4;
  --color-primary-dark: #45B7B8;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A0B0B0;
  --color-text-tertiary: #6B7B7B;
  --color-success: #34C759;
  --color-warning: #FF9F0A;
  --color-error: #FF453A;
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-display: 'Inter Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  --text-8xl: 6rem;        /* 96px */
  --text-9xl: 8rem;        /* 128px */
  
  /* Spacing */
  --space-xs: 0.5rem;      /* 8px */
  --space-sm: 0.75rem;     /* 12px */
  --space-md: 1rem;        /* 16px */
  --space-lg: 1.5rem;      /* 24px */
  --space-xl: 2rem;        /* 32px */
  --space-2xl: 3rem;       /* 48px */
  --space-3xl: 4rem;       /* 64px */
  --space-4xl: 6rem;       /* 96px */
  --space-5xl: 8rem;       /* 128px */
  
  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Animations */
  --transition-fast: 0.15s ease-out;
  --transition-base: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* Typography System - Framer Inspired */
.text-display-1 {
  font-family: var(--font-family-display);
  font-size: clamp(var(--text-6xl), 8vw, var(--text-9xl));
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.text-display-2 {
  font-family: var(--font-family-display);
  font-size: clamp(var(--text-5xl), 6vw, var(--text-7xl));
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.text-display-3 {
  font-family: var(--font-family-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-heading-1 {
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.text-heading-2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.4;
}

.text-body-large {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.text-body {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.text-caption {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.section-large {
  padding: var(--space-5xl) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

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

/* Button System - Framer Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  transform: translateY(0);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-background);
  box-shadow: 0 4px 20px rgba(78, 205, 196, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-surface-elevated);
}

.btn-secondary:hover {
  background: var(--color-surface-elevated);
}

.btn-large {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-lg);
}

/* Card System */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--color-surface-elevated);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Hero Section Specific */
.hero-gradient {
  background: radial-gradient(ellipse at center top, 
    rgba(78, 205, 196, 0.1) 0%, 
    transparent 50%);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Stagger animations for multiple elements */
.animate-stagger > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 15, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-surface);
  z-index: 1000;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none;
  }
  
  .text-display-1 {
    font-size: var(--text-6xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .btn-large {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
  }
}

/* Special Effects */
.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark));
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
  filter: blur(10px);
}

.glow-effect:hover::before {
  opacity: 0.3;
}

/* Phone Mockup Styles */
.phone-mockup {
  position: relative;
  display: inline-block;
}

.phone-container {
  position: relative;
  display: inline-block;
  transition: all var(--transition-base);
}

.phone-image {
  width: 220px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-base);
}

.phone-overlay {
  position: absolute;
  inset: -10px;
  background: radial-gradient(ellipse at center, rgba(78, 205, 196, 0.2) 0%, transparent 70%);
  border-radius: 30px;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.phone-container:hover .phone-overlay {
  opacity: 1;
}

.phone-container:hover .phone-image {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Feature Showcase */
.feature-showcase {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.feature-showcase.animate {
  opacity: 1;
  transform: translateY(0);
}

.feature-point {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
}

/* Responsive adjustments for phone mockups */
@media (max-width: 768px) {
  .feature-showcase {
    flex-direction: column !important;
  }
  
  .feature-showcase > div {
    flex: none !important;
  }
  
  .phone-image {
    width: 180px;
  }
  
  .feature-showcase div[style*="flex-direction: row-reverse"] {
    flex-direction: column !important;
  }
}

/* Privacy Cards */
.privacy-card {
  background: var(--color-surface-elevated);
  border: 1px solid rgba(78, 205, 196, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.privacy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.privacy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 205, 196, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.privacy-card:hover::before {
  opacity: 1;
}

.privacy-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-base);
}

.privacy-card:hover .privacy-card-icon {
  transform: scale(1.1);
}