:root {
  --red: #e10600;
  --red-dark: #b80500;
  --red-deep: #8b0000;
  --red-soft: #ffe8e8;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-3: #222222;
  --black: #0a0a0a;
  --white: #ffffff;
  --muted: #6b7280;
  --line: #ececec;
  --footer: #f3f3f3;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --nav-h: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: "Poppins", sans-serif;
  color: #1c1c1c;
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
}

.bg-dark-custom {
  background: var(--dark);
  color: var(--white);
}

.bg-light-custom {
  background: var(--white);
}

.section {
  padding: 96px 0 88px;
  position: relative;
}

.section-kicker {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 0.98rem;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0b0b0b;
  display: grid;
  place-items: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-drop {
  width: 54px;
  height: 72px;
  animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(225, 6, 0, 0.4));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 18px rgba(225, 6, 0, 0.8));
  }
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 28px;
  letter-spacing: 0.01em;
}

.btn-red {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  box-shadow: 0 10px 24px rgba(225, 6, 0, 0.28);
}

.btn-red:hover,
.btn-red:focus {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

.btn-outline-light-custom {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline-light-custom:hover,
.btn-outline-light-custom:focus {
  background: #fff;
  color: #111;
}

.btn-lg-wide {
  min-width: 220px;
  padding: 14px 34px;
}

/* Navbar */
#mainNav {
  padding: 14px 0;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

#mainNav.is-scrolled {
  background: rgba(12, 12, 12, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  padding: 10px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: #fff;
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.92;
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px !important;
  position: relative;
}

#mainNav .nav-link.active,
#mainNav .nav-link:hover {
  color: #fff !important;
}

#mainNav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.btn-nav-download {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.navbar-toggler {
  border: 0;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: #141414;
    margin-top: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  #mainNav .nav-link.active::after {
    display: none;
  }

  .btn-nav-download {
    width: 100%;
    margin-top: 8px;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  background-color: #000;
  background-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.55) 42%,
      rgba(0, 0, 0, 0.28) 100%
    ),
    url("../assets/images/hero-bg.png");
  background-size: cover;
  background-position: center right;
  color: #fff;
  position: relative;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0 30px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: #fff;
  font-weight: 800;
}

.hero-copy {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  padding: 22px 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 1.25rem;
  flex: 0 0 42px;
}

.stat-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

/* Features */
.feature-item {
  display: flex;
  gap: 16px;
  margin-bottom: 34px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: var(--red);
  font-size: 1.7rem;
  line-height: 1;
}

.feature-item h5 {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.feature-item p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.wave-wrap {
  position: relative;
  margin-top: 30px;
  line-height: 0;
}

.wave-wrap svg {
  display: block;
  width: 100%;
  height: 90px;
}

.wave-drop {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 36px;
  height: 46px;
  z-index: 2;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

/* Screenshots */
.phones-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 520px;
  margin: 10px auto 36px;
  max-width: 980px;
}

.phone {
  width: 210px;
  height: 430px;
  background: #0d0d0d;
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #2a2a2a;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, z-index 0s;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  background: #fff;
}

.phone .notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 16px;
  background: #0d0d0d;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone-wrap {
  position: absolute;
}

.phone-wrap:nth-child(1) {
  transform: translate(-340px, 30px) rotate(-16deg) scale(0.86);
  z-index: 1;
}

.phone-wrap:nth-child(2) {
  transform: translate(-170px, 12px) rotate(-8deg) scale(0.93);
  z-index: 2;
}

.phone-wrap:nth-child(3) {
  transform: translate(0, 0) rotate(0) scale(1);
  z-index: 5;
}

.phone-wrap:nth-child(4) {
  transform: translate(170px, 12px) rotate(8deg) scale(0.93);
  z-index: 2;
}

.phone-wrap:nth-child(5) {
  transform: translate(340px, 30px) rotate(16deg) scale(0.86);
  z-index: 1;
}

.phone:hover {
  transform: translateY(-8px) scale(1.03);
  z-index: 8;
}

.phone-wrap:nth-child(1) .phone:hover,
.phone-wrap:nth-child(2) .phone:hover,
.phone-wrap:nth-child(3) .phone:hover,
.phone-wrap:nth-child(4) .phone:hover,
.phone-wrap:nth-child(5) .phone:hover {
  transform: translateY(-10px) scale(1.04);
}

/* About */
.about-copy {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.75;
}

.about-visual {
  max-width: 420px;
  margin: 0 auto;
}

.value-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 22px 18px;
  height: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.value-card .v-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.value-card h6 {
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
  line-height: 1.55;
}

.quote-banner {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 28px 20px;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 600;
  font-style: italic;
}

/* Tech */
.tech-card {
  background: #191919;
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  padding: 28px 24px 26px;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: #3a3a3a;
}

.tech-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.tech-icon.flutter {
  background: #042b49;
  color: #45d1fd;
}

.tech-icon.firebase {
  background: #3b2a12;
  color: #ffca28;
}

.tech-icon.dart {
  background: #0d2f4a;
  color: #40c4ff;
}

.tech-icon.maps {
  background: #1b3320;
  color: #34a853;
}

.tech-icon.push {
  background: #3a1520;
  color: #ff6b81;
}

.tech-icon.api {
  background: #24183a;
  color: #b388ff;
}

.tech-card h5 {
  font-weight: 700;
  margin-bottom: 8px;
}

.tech-card p {
  color: #9ca3af;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Impact */
.impact-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 32px 18px;
  text-align: center;
  height: 100%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.impact-num {
  color: var(--red);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.impact-card p {
  margin: 0;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
}

.impact-note {
  max-width: 560px;
  margin: 36px auto 0;
  text-align: center;
  color: #4b5563;
}

.impact-note .mini-drop {
  width: 34px;
  height: 44px;
  margin: 0 auto 12px;
}

/* Download */
.download-section {
  background: radial-gradient(circle at 50% 30%, #2a0a0a 0%, #111 55%, #0a0a0a 100%);
  overflow: hidden;
}

.store-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-4px);
}

.store-badge img,
.store-badge svg {
  height: 58px;
  width: auto;
}

#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
  width: 8%;
}

#galleryModal .carousel-control-prev-icon,
#galleryModal .carousel-control-next-icon {
  background-color: rgba(17, 17, 17, 0.7);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  background-size: 45%;
}

.phone-download {
  width: 250px;
  height: 510px;
  margin: 24px auto;
}

.wave-bottom {
  line-height: 0;
  margin-bottom: -1px;
}

.wave-bottom svg {
  display: block;
  width: 100%;
  height: 86px;
}

/* Contact */
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  font-size: 1.1rem;
}

.contact-row h6 {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-row a,
.contact-row p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.contact-row a:hover {
  color: var(--red);
}

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.socials span {
  font-weight: 700;
  margin-right: 6px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: grid;
  place-items: center;
  color: #111;
  transition: 0.2s ease;
}

.socials a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.contact-visual {
  max-width: 380px;
  margin-left: auto;
}

/* Footer */
.site-footer {
  background: var(--footer);
  padding: 28px 0;
  border-top: 1px solid #e6e6e6;
  font-size: 0.88rem;
  color: #6b7280;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: #4b5563;
}

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

.heart {
  color: var(--red);
}

/* Modal / toast / back top */
.shot-frame {
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  padding: 8px;
}

.shot-frame img {
  max-height: 74vh;
  width: auto;
  margin: 0 auto;
  border-radius: 22px;
}

.video-stage {
  background: #0d0d0d;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 28px 20px;
}

.video-stage img {
  max-height: 180px;
  margin: 0 auto 16px;
  border-radius: 12px;
}

#backTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 50;
  box-shadow: 0 10px 24px rgba(225, 6, 0, 0.35);
}

#backTop.is-visible {
  opacity: 1;
  visibility: visible;
}

.toast-red .toast-header {
  background: var(--red);
  color: #fff;
  border: 0;
}

.toast-red .btn-close {
  filter: invert(1);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .phone {
    width: 180px;
    height: 370px;
  }

  .phones-stage {
    min-height: 440px;
  }

  .phone-wrap:nth-child(1) {
    transform: translate(-280px, 28px) rotate(-14deg) scale(0.86);
  }

  .phone-wrap:nth-child(2) {
    transform: translate(-140px, 12px) rotate(-7deg) scale(0.93);
  }

  .phone-wrap:nth-child(4) {
    transform: translate(140px, 12px) rotate(7deg) scale(0.93);
  }

  .phone-wrap:nth-child(5) {
    transform: translate(280px, 28px) rotate(14deg) scale(0.86);
  }
}

@media (max-width: 991.98px) {
  .section {
    padding: 78px 0 70px;
  }

  .hero {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 8%, rgba(0, 0, 0, 0.55) 100%),
      url("../assets/images/hero-bg.png");
    background-position: center top;
    text-align: center;
  }

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

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

  .stat-item {
    justify-content: center;
  }

  .phones-stage {
    position: relative;
    min-height: auto;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 16px;
    padding: 10px 8px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .phone-wrap {
    position: relative;
    transform: none !important;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .phone {
    width: 200px;
    height: 410px;
  }

  .contact-visual,
  .about-visual {
    margin: 28px auto 0;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 10px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --nav-h: 72px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-content {
    padding: 28px 0 20px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .store-badge img,
  .store-badge svg {
    height: 50px;
  }

  .phone-download {
    width: 210px;
    height: 430px;
  }

  .site-footer {
    text-align: center;
  }

  .site-footer .d-flex {
    justify-content: center !important;
  }

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

  .socials {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 64px 0 58px;
  }

  .feature-item {
    margin-bottom: 26px;
  }

  .quote-banner {
    padding: 22px 16px;
  }
}
