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

:root {
  --bg-color: #F4F2F8;
  --bg-gradient: radial-gradient(circle at 50% -10%, #efe9fb 0%, #F4F2F8 55%);

  --panel-bg: #ffffff;
  --panel-border: rgba(123, 77, 224, 0.10);

  --text-primary: #1f1633;
  --text-secondary: #5f5773;
  --text-muted: #8a839c;

  --brand: #7B4DE0;
  --brand-deep: #6A34D0;
  --brand-muted: #6F5B9E;
  --brand-soft: #efe9fb;
  --brand-gradient: linear-gradient(135deg, #7B4DE0 0%, #6A34D0 100%);

  --accent-red: #e23b5a;
  --accent-blue: #2f7bd6;
  --accent-green: #2fa562;
  --accent-orange: #e08a1e;
  --star: #f5a623;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-speed: 0.3s;
  --border-radius: 20px;

  --shadow-sm: 0 4px 16px rgba(74, 46, 140, 0.06);
  --shadow-md: 0 12px 32px rgba(74, 46, 140, 0.10);
  --shadow-lg: 0 25px 60px -15px rgba(74, 46, 140, 0.28);
  --shadow-brand: 0 12px 28px rgba(123, 77, 224, 0.35);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(123, 77, 224, 0.2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(123, 77, 224, 0.4);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

/* Generic card panel */
.card-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-sm);
}

.card-panel:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(244, 242, 248, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: var(--shadow-brand);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-item a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-speed) ease;
}

.nav-item a:hover {
  color: var(--brand);
}

.btn-download-nav {
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: all var(--transition-speed) ease;
}

.btn-download-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(123, 77, 224, 0.45);
}

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

/* Hero Section */
.hero-section {
  padding: 10rem 0 5rem 0;
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 90vh;
  position: relative;
}

.hero-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.badge-glowing {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-soft);
  border: 1px solid rgba(123, 77, 224, 0.2);
  color: var(--brand-deep);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  align-self: flex-start;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

.hero-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 540px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.app-store-btn {
  background: #1f1633;
  border: 1px solid #1f1633;
  border-radius: 14px;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  color: #ffffff;
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-store-btn.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.btn-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.btn-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-details .small-txt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
}

.btn-details .bold-txt {
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Device Mockup Graphic */
.hero-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(123, 77, 224, 0.35) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.phone-mockup {
  width: 290px;
  height: 590px;
  background: #ffffff;
  border: 12px solid #241a3d;
  border-radius: 44px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.phone-notch {
  width: 130px;
  height: 26px;
  background: #241a3d;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #F4F2F8;
  overflow: hidden;
  position: relative;
}

.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.6s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.mockup-img.active {
  opacity: 1;
  position: relative;
}

.floating-stats-pill {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 0.65rem 0.95rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 15;
  box-shadow: var(--shadow-md);
  animation: float-slow 4s ease-in-out infinite;
}

.floating-stats-pill strong {
  color: var(--text-primary);
}

.floating-stats-pill.left {
  bottom: 90px;
  left: -30px;
}

.floating-stats-pill.right {
  top: 110px;
  right: -40px;
  animation-delay: 2s;
}

.pill-glow-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(123, 77, 224, 0.6);
}

.pill-icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

/* Sections General */
section.py-section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-header .eyebrow {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.feature-icon-box i {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* App Showcase Gallery */
.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  overflow: hidden;
}

.gallery-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  background: var(--brand-soft);
  border: 1px solid var(--panel-border);
  display: flex;
  justify-content: center;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-speed) ease;
}

.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.04);
}

.gallery-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--brand-deep);
}

.gallery-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* How it works / Levels */
.levels-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.level-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.level-row:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.level-badge {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: var(--shadow-brand);
}

.level-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.level-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.level-tag {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
}

@media (max-width: 600px) {
  .level-row { flex-wrap: wrap; gap: 1rem; }
  .level-tag { margin-left: 0; }
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.stars-row {
  color: var(--star);
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.6;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.user-avatar-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-details .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-details .location {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Download CTA Banner */
.cta-banner {
  background: var(--brand-gradient);
  border-radius: 28px;
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 70%);
}

.cta-banner-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.cta-banner-content h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.cta-banner-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.cta-banner-actions {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  min-width: 250px;
  position: relative;
  z-index: 1;
}

.cta-banner .app-store-btn {
  width: 100%;
  background: #ffffff;
  border-color: #ffffff;
  color: #1f1633;
}

.cta-banner .app-store-btn .small-txt {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 2.5rem 1.5rem;
    text-align: center;
    justify-content: center;
  }
  .cta-banner-content h2 { font-size: 2rem; }
  .cta-banner-actions { align-items: center; }
}

/* Footer layout */
.footer-bar {
  background: #1f1633;
  color: #fff;
  padding: 4rem 0 2rem 0;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-bar .logo-text {
  color: #fff;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-speed) ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Document & Policy layouts */
.policy-page-header {
  padding: 10rem 0 3rem 0;
  text-align: center;
  background: linear-gradient(to bottom, var(--brand-soft) 0%, transparent 100%);
}

.policy-page-header h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.policy-page-header p {
  color: var(--text-secondary);
}

.policy-content-box {
  max-width: 800px;
  margin: 0 auto 5rem auto;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .policy-content-box { padding: 1.5rem; }
}

.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--brand-deep);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.5rem;
}

.policy-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.policy-section a {
  color: var(--brand);
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
}

.policy-section ul {
  list-style-type: none;
  padding-left: 0.5rem;
}

.policy-section li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.6;
}

.policy-section li::before {
  content: "•";
  color: var(--brand);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.policy-section li strong {
  color: var(--text-primary);
}

/* Animations */
@keyframes float-slow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
    gap: 3rem;
  }
  .hero-content { align-items: center; }
  .hero-title { font-size: 2.75rem; }
  .hero-description { max-width: 100%; }
  .badge-glowing { align-self: center; }
  .cta-group { justify-content: center; }
  .floating-stats-pill.left { left: -10px; }
  .floating-stats-pill.right { right: -10px; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.25rem; }
  .section-header h2 { font-size: 1.9rem; }
  .navbar { padding: 0.85rem 1.5rem; }
  .nav-links { display: none; }
  .container { padding: 0 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
