:root {
  --primary: #5db4e8;
  --primary-light: #8ecdf4;
  --primary-dark: #3a9fdb;
  --secondary: #14b8a6;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #64748b;
  --light: #f8fafc;
  --gradient-1: linear-gradient(135deg, #5db4e8 0%, #3a9fdb 100%);
  --gradient-2: linear-gradient(135deg, #8ecdf4 0%, #5db4e8 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #3a9fdb 0%,
    #5db4e8 50%,
    #8ecdf4 100%
  );
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Sora', sans-serif;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.nav-container img.logo-text {
  width: 95px;
  height: auto;
  margin-bottom: 12px;
  filter: brightness(0) saturate(100%) invert(64%) sepia(52%) saturate(2476%)
    hue-rotate(178deg) brightness(93%) contrast(91%);
}

.nav-container > a {
  display: inline-block;
  line-height: 0;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Overlay - hidden on desktop, used for drawer on mobile */
.nav-overlay {
  display: none;
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

body.nav-open .hamburger {
  background: transparent;
}

body.nav-open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-drawer {
  display: flex;
  align-items: center;
}

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

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

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s ease;
}

.hero-content img.logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100px;
  height: 100px;
  border-radius: 20px;
  margin-bottom: 28px;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.download-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s backwards;
}

.store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  min-width: 180px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 0;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.store-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: white;
  color: var(--dark);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.download-btn img {
  height: 40px;
}

.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.phone-mockup {
  position: relative;
  max-width: 350px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 48px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.06),
    0 30px 60px rgba(0, 0, 0, 0.35);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.phone-mockup img {
  width: 100%;
  border-radius: 36px;
  display: block;
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Stats Section */
.stats {
  background: white;
  padding: 3rem 2rem;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  animation: fadeIn 1s ease;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Features Section */
.features {
  padding: 6rem 2rem;
  background: var(--light);
}

.section-header {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  line-height: 1.6;
}

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

.feature-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px rgba(102, 102, 241, 0.3);
}

.feature-card:nth-child(2) .feature-icon {
  background: var(--gradient-2);
  box-shadow: 0 10px 25px rgba(240, 147, 251, 0.3);
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.feature-description {
  color: var(--gray);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Use Cases Section */
.use-cases {
  padding: 6rem 2rem;
  background: white;
}

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

.use-case {
  background: var(--light);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s;
  border: 3px solid transparent;
}

.use-case:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  background: white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.use-case-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.use-case:hover .use-case-icon {
  animation: none;
  transform: scale(1.2);
}

.use-case-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.use-case-desc {
  color: var(--gray);
  line-height: 1.6;
}

/* Video Demo Section */
.video-demo {
  padding: 6rem 2rem;
  background: var(--light);
}

.video-demo-container {
  max-width: 550px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 0 0 6px rgba(93, 180, 232, 0.15);
  background: var(--dark);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.video-wrapper:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 25px 60px rgba(0, 0, 0, 0.18),
    0 0 0 6px rgba(93, 180, 232, 0.2);
}

.demo-video {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

/* FAQ Section */
.faq {
  padding: 6rem 2rem;
  background: white;
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--light);
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 5px 20px rgba(93, 180, 232, 0.15);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker,
.faq-question::marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-question:hover {
  color: var(--primary-dark);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.faq-answer p:last-of-type {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
  color: var(--gray);
  line-height: 1.7;
}

.faq-answer li {
  margin-bottom: 0.35rem;
}

.faq-answer li:last-child {
  margin-bottom: 0;
}

/* CTA Section */
.cta {
  padding: 6rem 2rem;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: var(--gradient-1);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(100px);
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta .download-buttons {
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--dark-light);
  padding: 4rem 2rem 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer-brand img.logo-text {
  width: 95px;
  height: auto;
  margin-bottom: 12px;
}

.footer-brand p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.social-links .social-icon {
  filter: brightness(0) invert(1);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.95rem;
}

/* Page content sections (About, Privacy, etc.) - primary bg + white text */
.page-content {
  padding: 8rem 2rem 6rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.page-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.page-content .content-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  color: white;
}

.page-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2.5rem;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content h2:first-of-type {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.page-content .last-updated {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.page-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page-content li {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.page-content a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.page-content a:hover {
  opacity: 0.9;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  /* Mobile: show hamburger, hide drawer by default */
  .nav-toggle {
    display: block;
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  .nav-drawer .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-drawer .nav-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-drawer .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  /* Drawer overlay - click to close */
  .nav-overlay {
    display: none;
  }

  body.nav-open .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
  }

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

  /* Drawer open state */
  body.nav-open .nav-drawer {
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .download-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

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

  .page-content {
    padding: 6rem 1.5rem 4rem;
  }
}
