/* ============================================
   Uain - Main Stylesheet
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

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

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

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #f5f5f4;
  background-color: #0a0a0b;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background-color: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(39, 39, 42, 0.4);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #f5f5f4;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: #a1a1aa;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #f5f5f4;
}

.nav-links a.active {
  color: #f5f5f4;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #f5f5f4;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(39, 39, 42, 0.15) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(39, 39, 42, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f5f5f4;
  margin-bottom: 24px;
}

.hero h1 .reveal-line {
  display: block;
  overflow: hidden;
}

.hero h1 .reveal-line span {
  display: block;
  transform: translateY(100%);
  animation: reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 .reveal-line:nth-child(2) span {
  animation-delay: 0.15s;
}

.hero h1 .reveal-line:nth-child(3) span {
  color: #f59e0b;
  animation-delay: 0.3s;
}

@keyframes reveal-up {
  to {
    transform: translateY(0);
  }
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: #a1a1aa;
  max-width: 560px;
  margin: 0 0 40px;
  line-height: 1.7;
  opacity: 0;
  animation: fade-in 0.8s ease 0.5s forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-in 0.8s ease 0.7s forwards;
}

/* --- Hero Visual / Phone Mockup --- */
.hero-visual {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 35%;
  max-width: 400px;
}

.phone-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #141416;
  border-radius: 40px;
  border: 6px solid #3f3f46;
  overflow: hidden;
  box-shadow: 0 60px 120px -20px rgba(0, 0, 0, 0.5);
}

.phone-carousel {
  position: absolute;
  inset: 0;
}

.phone-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.phone-screen.active {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background: #f59e0b;
  transform: scale(1.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  background-color: #f59e0b;
  color: #0a0a0b;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background-color: #d97706;
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.4);
}

.btn-primary svg {
  flex-shrink: 0;
}

.btn-secondary {
  background-color: #1a1a1d;
  color: #f5f5f4;
  border: 1px solid #27272a;
}

.btn-secondary:hover {
  background-color: #27272a;
  border-color: #3f3f46;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- App Store Badge --- */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-store-badge img {
  display: block;
}

.app-store-badge:hover {
  transform: scale(1.03);
}

/* --- Section Shared --- */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f5f5f4;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: #a1a1aa;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Features Section --- */
.features {
  background-color: #0a0a0b;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: #141416;
  border: 1px solid #27272a;
  border-radius: 24px;
  padding: 40px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #3f3f46;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: #f59e0b;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #f5f5f4;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 15px;
  color: #a1a1aa;
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta {
  background-color: #0a0a0b;
  text-align: center;
}

.cta-card {
  background: linear-gradient(135deg, #141416 0%, #1a1a1d 100%);
  border: 1px solid #27272a;
  border-radius: 24px;
  padding: 80px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f5f5f4;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 18px;
  color: #a1a1aa;
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid #27272a;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #f5f5f4;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: #71717a;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #a1a1aa;
}

.footer-copyright {
  font-size: 14px;
  color: #52525b;
}

/* --- Support Page --- */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f5f5f4;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  color: #a1a1aa;
  max-width: 560px;
  margin: 0 auto;
}

/* --- FAQ --- */
.faq-section {
  padding-bottom: 120px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #141416;
  border: 1px solid #27272a;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #3f3f46;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #f5f5f4;
  text-align: left;
  gap: 16px;
}

.faq-question:hover {
  color: #f59e0b;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: #71717a;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: #f59e0b;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: #a1a1aa;
  line-height: 1.7;
}

/* --- Contact Section --- */
.contact-section {
  padding-bottom: 120px;
}

.contact-card {
  background: linear-gradient(135deg, #141416 0%, #1a1a1d 100%);
  border: 1px solid #27272a;
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5f5f4;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 16px;
  color: #a1a1aa;
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  color: #f59e0b;
  padding: 12px 28px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
  background-color: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.contact-email svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #141416;
    border-left: 1px solid #27272a;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 8px;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 17px;
  }

  .nav-hamburger {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section {
    padding: 80px 0;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .footer .container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 140px 24px 80px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 60px auto 0;
    right: auto;
    top: auto;
    transform: none;
    pointer-events: auto;
  }

  .hero-glow {
    width: 400px;
    height: 400px;
    top: -100px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .feature-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .btn {
    width: 100%;
  }

  .cta-card {
    padding: 40px 20px;
    border-radius: 20px;
  }

  .page-header {
    padding: 130px 0 60px;
  }

  .contact-card {
    padding: 40px 24px;
  }

  .faq-question {
    font-size: 15px;
    padding: 16px 20px;
  }

  .faq-answer p {
    padding: 0 20px 16px;
    font-size: 14px;
  }
}

/* Overlay when mobile nav open */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-overlay.open {
  display: block;
}
