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

:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121217;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a8;
  --accent-color: #ff3b30;
  --accent-gradient: linear-gradient(135deg, #ff3b30, #ff9500);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

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

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* --- Navbar --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6rem;
  overflow: hidden;
}

/* Background blob */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: var(--accent-color);
  filter: blur(150px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: -1;
  animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { transform: translate(-50%, 0) scale(1); opacity: 0.15; }
  100% { transform: translate(-50%, 50px) scale(1.2); opacity: 0.25; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 1.5rem 0 2.5rem;
  max-width: 500px;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.store-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.store-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* --- Carousel --- */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 580px;
  margin: 0 auto;
  perspective: 1000px;
}

.carousel {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-radius: 40px;
  border: 8px solid #222;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  backface-visibility: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.8) translateZ(-200px);
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1) translateZ(0);
  z-index: 10;
}

.carousel-item.prev {
  opacity: 0.6;
  transform: scale(0.85) translateX(-60%) translateZ(-100px) rotateY(15deg);
  z-index: 5;
}

.carousel-item.next {
  opacity: 0.6;
  transform: scale(0.85) translateX(60%) translateZ(-100px) rotateY(-15deg);
  z-index: 5;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.3rem;
}

.control-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  transition: transform 0.4s ease, background 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

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

.feature-card p {
  color: var(--text-secondary);
}

/* --- Contact --- */
.contact-section {
  text-align: center;
  background: var(--bg-secondary);
  border-radius: 32px;
  padding: 5rem 2rem;
  margin: 4rem auto;
  max-width: 800px;
  border: 1px solid var(--glass-border);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.email-link:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

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

/* --- Content Pages (Privacy/Terms) --- */
.content-page {
  padding-top: 8rem;
  max-width: 800px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 1.8rem;
  margin: 3rem 0 1rem;
  color: var(--text-primary);
}

.content-page p, .content-page li {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.content-page ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content p {
    margin: 1.5rem auto 2.5rem;
  }
  
  h1 {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  
  .carousel-container {
    height: 550px;
    max-width: 250px;
  }

  .hero-carousel {
    padding: 0 2rem;
  }

  .email-link {
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    word-break: break-all;
  }

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