/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --secondary-color: #06b6d4;
  --dark-bg: #f8fafc;
  --darker-bg: #f1f5f9;
  --light-bg: #ffffff;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.98);
}

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

.nav-brand h2 {
  color: var(--primary-color);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-brand {
  text-decoration: none;
}

.nav-brand sup {
  font-size: 0.6em;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

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

.nav-link.active {
  color: var(--primary-dark);
}

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

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.particle {
  position: absolute;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.breathe-text {
  display: block;
  font-size: 2rem;
  font-weight: 300;
  color: var(--primary-light);
  margin-bottom: 1rem;
  font-style: italic;
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.main-title {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-lighter);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 4px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

/* Section Styles */
section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

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

.section-label {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.2;
}

/* About Section */
.about {
  background: var(--light-bg);
}

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

.about-content .lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-image {
  display: flex;
  justify-content: center;
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

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

.feature-card.highlight {
  background: var(--gradient-1);
  color: white;
  border: none;
}

.feature-card.highlight .icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.feature-card.highlight h3 {
  color: white;
}

.feature-card.highlight p {
  color: rgba(255, 255, 255, 0.9);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--light-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

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

/* Mobile App Section */
.mobile-app {
  background: var(--dark-bg);
  color: var(--text-dark);
}

.mobile-app .section-label {
  color: var(--primary-light);
}

.mobile-app .section-title {
  color: var(--primary-color);
}

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

.app-content .lead-text {
  font-size: 1.125rem;
  color: var(--text-lighter);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.app-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-lighter);
}

.app-feature svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

.phone-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.phone-frame {
  width: 300px;
  height: 600px;
  background: #1e293b;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
  position: relative;
  transform: rotateY(-15deg);
  transition: transform 0.3s ease;
}

.phone-frame:hover {
  transform: rotateY(0deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--darker-bg);
  border-radius: 30px;
  overflow: hidden;
}

/* .app-preview {
  padding: 10px;
} */

.preview-header h3 {
  color: var(--text-dark);
  margin-bottom: 20px;
}

.chart-placeholder {
  background: rgba(14, 165, 233, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Video Section */
.video-section {
  background: var(--light-bg);
}

.video-card {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.video-card h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.video-link {
  text-decoration: none;
  color: var(--text-dark);
}

.video-thumbnail {
  /* removed heavy dark frame: use transparent background with a subtle border */
  background: transparent;
  border-radius: 16px;
  padding: 12px; /* minimal padding */
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative; /* allow absolute positioning of play button */
  border: 1px solid rgba(2, 6, 23, 0.06);
}

.video-thumbnail:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  max-width: 850px;
  border-radius: 12px;
  display: block;
  box-shadow: var(--shadow-lg);
}

.play-button {
  cursor: pointer;
  transition: transform 0.25s ease;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.95);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35);
}

.play-button svg {
  width: 36px;
  height: 36px;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

/* App preview image inside the phone mockup */
.app-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.gallery-item img {
  width: auto;
  height: 420px; /* portrait height for mobile screenshots */
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.06);
}

.gallery-item:hover img,
.gallery-item:focus img {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.08);
}

/* Vertical gallery helper */
.vertical-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: start;
}

/* Lightbox / Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(2, 6, 23, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--primary-color);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.lightbox-close {
  right: 16px;
  top: 16px;
  transform: none;
  width: 44px;
  height: 44px;
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

@media (max-width: 768px) {
  .gallery-item img {
    height: 360px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-close {
    right: 12px;
    top: 12px;
  }
}

/* Contact Section */
.contact {
  background: var(--light-bg);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Privacy Policy Page */
.policy-page {
  background: var(--dark-bg);
}

.policy-hero {
  padding: 150px 0 70px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.12) 100%),
    var(--gradient-2);
}

.policy-hero h1 {
  color: var(--primary-color);
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.policy-hero p {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 780px;
}

.policy-section {
  padding: 0 0 90px;
  background: var(--dark-bg);
}

.policy-content {
  max-width: 940px;
  margin: 0 auto;
  padding: 48px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.policy-content p,
.policy-content li {
  color: var(--text-light);
  line-height: 1.8;
}

.policy-content p {
  margin-bottom: 1rem;
}

.policy-content a {
  color: var(--primary-dark);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.policy-content h2,
.policy-content h3 {
  color: var(--text-dark);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.25;
}

.policy-content h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.policy-content h3 {
  font-size: 1.1rem;
  margin: 1.8rem 0 0.75rem;
}

.policy-content ul {
  margin: 0 0 1.25rem 1.25rem;
}

.policy-meta {
  padding: 1.25rem;
  background: var(--dark-bg);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
}

.policy-rights {
  columns: 2;
}

.policy-source,
.policy-copyright {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.policy-copyright {
  color: var(--text-dark);
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--text-lighter);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand h3 {
  color: var(--primary-color);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-lighter);
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-small {
  font-size: 0.875rem;
  color: var(--text-lighter);
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .about-grid,
  .app-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

  .policy-hero {
    padding: 120px 0 50px;
  }

  .policy-hero h1 {
    font-size: 2.25rem;
  }

  .policy-content {
    padding: 32px 24px;
  }

  .policy-rights {
    columns: 1;
  }
}

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

  .breathe-text {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: 250px;
    height: 500px;
    transform: none;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth Transitions */
a,
button,
.feature-card,
.gallery-item {
  transition: all 0.3s ease;
}
