/* Base Styles */
:root {
  --primary: #ff4d00;
  --primary-dark: #cc3d00;
  --secondary: #ff9e00;
  --secondary-light: #ffb700;
  --dark: #18181b;
  --gray-dark: #27272a;
  --gray: #71717a;
  --gray-light: #d4d4d8;
  --light: #fafafa;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

.highlight {
  color: var(--primary);
}

/* Layout */
header, section, footer {
  padding: 1.5rem;
}

section {
  padding: 4rem 1.5rem;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  display: inline;
}

.logo h1 span {
  color: var(--primary);
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #ffedd5, #fff7ed);
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--gray);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.face-swap-graphic {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.face {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 15px -3px rgba(255, 77, 0, 0.3);
}

.face::before,
.face::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: white;
}

.face::before {
  width: 25px;
  height: 25px;
  top: 40px;
  left: 25px;
}

.face::after {
  width: 25px;
  height: 25px;
  top: 40px;
  right: 25px;
}

.face.left {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.face.right {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.swap-icon {
  width: 50px;
  height: 50px;
  position: relative;
}

.swap-icon::before,
.swap-icon::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 4px;
  background: var(--primary);
  top: 50%;
  left: 50%;
}

.swap-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.swap-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-button, .cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.primary-button:hover, .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(255, 77, 0, 0.3);
  color: white;
}

.secondary-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-light);
}

.secondary-button:hover {
  background: var(--gray-light);
}

.cta-button.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Features Section */
.features {
  background-color: white;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--gray-light);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

/* Swap Demo Section */
.swap-demo {
  background: linear-gradient(135deg, #ffedd5, #fff7ed);
  text-align: center;
}

.swap-container {
  max-width: 800px;
  margin: 0 auto;
}

.swap-container p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

/* How It Works Section */
.how-it-works {
  background-color: white;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* Tags Section */
.tags {
  background-color: var(--light);
  padding: 3rem 1.5rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.tag {
  background: rgba(255, 77, 0, 0.1);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-section h2 {
  color: white;
}

.cta-section .highlight {
  color: white;
  text-decoration: underline;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo span {
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-links-group h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-links-group ul {
  list-style: none;
}

.footer-links-group li {
  margin-bottom: 0.5rem;
}

.footer-links-group a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    padding: 4rem 1.5rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content h2 {
    font-size: 2.5rem;
    text-align: center;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 101;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    justify-content: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  h2 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .features-container {
    grid-template-columns: 1fr;
  }
}
