/*
 * Main Stylesheet for faceswapai.wiki
 * Modern design with teal-turquoise gradient theme
 */

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

:root {
  /* Color Scheme - Teal-Turquoise Theme */
  --primary: #3EADCF;
  --secondary: #ABE9CD;
  --dark: #18122B;
  --dark-alt: #23193D;
  --light: #F5F5F5;
  --text: #FFFFFF;
  --text-muted: #B9B4C7;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  
  /* Typography */
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2.5rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 4rem;
  --space-7: 6rem;
  
  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

ul {
  list-style: none;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--space-3);
}

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

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

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  font-size: var(--font-size-md);
}

.btn-primary {
  background: var(--gradient);
  color: var(--dark);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
}

.card {
  background: var(--dark-alt);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(24, 18, 43, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: var(--space-2) 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-weight: bold;
  font-size: var(--font-size-lg);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding-top: calc(70px + var(--space-6));
  padding-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(62, 173, 207, 0.15), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(171, 233, 205, 0.1), transparent 50%);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.hero-text {
  max-width: 540px;
}

.hero-tagline {
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-lg);
}

.hero-btns {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image svg {
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* Features Section */
.features {
  background-color: var(--dark-alt);
  position: relative;
}

.features-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-5);
}

.features-title {
  margin-bottom: var(--space-2);
}

.features-subtitle {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.feature-card {
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.feature-icon {
  margin-bottom: var(--space-2);
  width: 50px;
  height: 50px;
  background: rgba(62, 173, 207, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary);
}

.feature-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
}

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

/* How It Works Section */
.how-it-works {
  position: relative;
}

.steps-container {
  margin-top: var(--space-4);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: var(--dark);
}

.step-content h3 {
  margin-bottom: var(--space-1);
}

.step-content p {
  color: var(--text-muted);
}

/* CTA Section */
.cta {
  background: var(--dark-alt);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: var(--space-3);
}

.cta p {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
}

/* Footer */
.footer {
  background-color: var(--dark);
  padding: var(--space-5) 0 var(--space-3);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-logo img {
  width: 40px;
  height: 40px;
}

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

.footer-column h4 {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-md);
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
}

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

.footer-bottom {
  padding-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-brand {
    grid-column: span 2;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 767px) {
  :root {
    --space-6: 3rem;
    --space-7: 5rem;
  }

  .header-inner {
    height: 70px;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--dark);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--space-4);
    transition: left 0.3s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: var(--space-2);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}
