/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  /* Brand gradient from logo SVG */
  --gradient-brand: linear-gradient(135deg, #4f7dbf, #4a58a3, #826aad);
  --gradient-dark: linear-gradient(135deg, #0f1124, #1a1a3e, #0f1124);
  --gradient-accent: linear-gradient(135deg, #4f7dbf, #826aad);

  /* Colors */
  --color-primary: #4a58a3;
  --color-primary-light: #4f7dbf;
  --color-primary-dark: #3a4583;
  --color-accent: #826aad;
  --color-dark: #0f1124;
  --color-dark-surface: #1a1a3e;
  --color-text: #444;
  --color-text-light: #666;
  --color-text-muted: #999;
  --color-bg: #fff;
  --color-bg-alt: #f7f8fc;
  --color-border: #e8e9f0;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 17, 36, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 17, 36, 0.1);
  --shadow-lg: 0 8px 32px rgba(15, 17, 36, 0.12);
  --shadow-xl: 0 16px 48px rgba(15, 17, 36, 0.16);
}


/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
  font-family: "Jost", sans-serif;
  color: var(--color-text);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.3s;
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  color: var(--color-dark);
  font-weight: 600;
  line-height: 1.3;
}


/* ==========================================================================
   Preloader
   ========================================================================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--color-dark);
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--color-primary);
  border-top-color: #fff;
  border-bottom-color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ==========================================================================
   Back to Top
   ========================================================================== */

.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--gradient-brand);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.4s;
  box-shadow: var(--shadow-md);
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}


/* ==========================================================================
   Shared Button Styles
   ========================================================================== */

.btn-primary-gradient {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 50px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s;
  border: none;
}

.btn-primary-gradient:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s;
}

.btn-outline-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light i {
  font-size: 20px;
}

.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s;
}

.btn-outline-brand:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-outline-brand i {
  font-size: 18px;
}


/* ==========================================================================
   Section Header
   ========================================================================== */

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(79, 125, 191, 0.1), rgba(130, 106, 173, 0.1));
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
}

.section-header.text-start p {
  margin: 0;
}


/* ==========================================================================
   Header / Navigation
   ========================================================================== */

#header {
  transition: all 0.4s;
  z-index: 997;
  padding: 16px 0;
}

#header.header-scrolled,
#header.header-inner-pages {
  background: rgba(15, 17, 36, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: var(--shadow-lg);
}

#header .logo img {
  max-height: 40px;
}

.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: all 0.3s;
  border-radius: var(--radius-sm);
}

.navbar a:hover,
.navbar .active,
.navbar li:hover > a {
  color: #fff;
}

.navbar .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 50px;
  font-weight: 500;
  margin-left: 8px;
}

.navbar .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.navbar .nav-cta i {
  font-size: 14px;
}

.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(15, 17, 36, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  border-radius: var(--radius-lg);
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 12px 20px;
  font-size: 16px;
  color: var(--color-dark);
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: var(--color-primary);
}

.navbar-mobile .nav-cta {
  margin: 15px 20px;
  display: inline-flex;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 50px;
  padding: 10px 24px;
}

.navbar-mobile .nav-cta:hover {
  color: #fff;
}


/* ==========================================================================
   Hero Section
   ========================================================================== */

#hero {
  position: relative;
  background: var(--gradient-dark);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-orbs::before,
.hero-bg-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float-orb 8s ease-in-out infinite alternate;
}

.hero-bg-orbs::before {
  width: 400px;
  height: 400px;
  background: var(--color-primary-light);
  top: -100px;
  right: -100px;
}

.hero-bg-orbs::after {
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  bottom: -50px;
  left: -50px;
  animation-delay: 4s;
}

@keyframes float-orb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

#hero h1 {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--color-accent);
  font-size: 16px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.hero-platforms i {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-promo-img {
  width: 100%;
  max-width: 480px;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: hero-float 4s ease-in-out infinite alternate;
}

@keyframes hero-float {
  0% { transform: translateY(8px); }
  100% { transform: translateY(-8px); }
}

@media (max-width: 991px) {
  #hero {
    text-align: center;
    padding-top: 100px;
  }

  #hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-platforms {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  #hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}


/* ==========================================================================
   Apps Showcase Section
   ========================================================================== */

#apps {
  padding: 100px 0;
  background: var(--color-bg);
}

.app-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 32px;
  transition: all 0.3s;
}

.app-card:last-child {
  margin-bottom: 0;
}

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

.app-video {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.app-promo-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.app-card-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-tagline {
  display: inline-block;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
}

.app-card-content > p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
}

.feature-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.chip i {
  color: var(--color-primary);
  font-size: 18px;
}

.app-store-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.app-store-badges a {
  display: inline-block;
  transition: transform 0.3s;
}

.app-store-badges a:hover {
  transform: translateY(-2px);
}

.app-store-badges img {
  height: 48px;
  width: auto;
}

@media (max-width: 991px) {
  .app-card {
    padding: 24px;
  }

  .app-card-content {
    text-align: center;
  }

  .feature-chips {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .app-store-badges {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .feature-chips {
    grid-template-columns: 1fr;
  }
}

.app-card-compact {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-card-compact .app-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-card-compact .app-store-badges {
  margin-top: auto;
}

.app-card-icon-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 991px) {
  .app-card-compact .app-card-content {
    text-align: center;
  }

  .app-card-icon-img {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}


/* ==========================================================================
   Features Section
   ========================================================================== */

#features {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.feature-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  margin: 0 auto 20px;
}

.feature-icon i {
  font-size: 28px;
  color: #fff;
}

.feature-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}


/* ==========================================================================
   About Section
   ========================================================================== */

#about {
  padding: 100px 0;
  background: var(--color-bg);
}

.about-logo {
  max-width: 280px;
  width: 100%;
}

.about-text {
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tech-stack {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.tech-stack-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-icon {
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px 8px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.tech-icon:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.tech-icon i {
  font-size: 26px;
  color: var(--color-text-light);
  transition: color 0.3s;
}

.tech-icon:hover i {
  color: var(--color-primary);
}

.tech-icon span {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .about-logo {
    max-width: 200px;
  }

  .section-header.text-start {
    text-align: center !important;
  }

  .about-text {
    text-align: center;
  }

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

  .tech-stack-label {
    text-align: center;
  }

  .tech-icons {
    justify-content: center;
  }
}


/* ==========================================================================
   CTA Banner
   ========================================================================== */

#cta-banner {
  padding: 60px 0 100px;
  background: var(--color-bg-alt);
}

.cta-card {
  position: relative;
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  overflow: hidden;
}

.cta-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orbs::before,
.cta-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
}

.cta-orbs::before {
  width: 250px;
  height: 250px;
  background: var(--color-primary-light);
  top: -80px;
  left: -60px;
}

.cta-orbs::after {
  width: 200px;
  height: 200px;
  background: var(--color-accent);
  bottom: -60px;
  right: -40px;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 17px;
  margin-bottom: 28px;
}

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

@media (max-width: 575px) {
  .cta-card {
    padding: 40px 24px;
  }

  .cta-content h2 {
    font-size: 26px;
  }
}


/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
  background: var(--color-dark);
  padding-top: 60px;
}

#footer h5 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-logo {
  max-height: 36px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-links li i {
  color: var(--color-primary-light);
  font-size: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  transition: color 0.3s;
}

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

.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: #fff;
}
