/* modern.css - root-level overrides and modern visual styles */
:root{
  --accent-1:#6C63FF; /* violet */
  --accent-2:#00C2A8; /* teal */
  --muted:#6b7280;
  --bg:#f7fafc;
  --card:#ffffff;
  --text:#111827;
}

html,body{height:100%;}
body{
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color:var(--text);
  background:linear-gradient(180deg, #FBFCFF 0%, #F7FAFC 100%);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Navbar */
/* Ensure navbar sits above other content to avoid covering the carousel */
.navbar-custom{
  background: linear-gradient(90deg,var(--accent-1),var(--accent-2));
  border:none;
  box-shadow:0 3px 10px rgba(12,18,31,0.08);
  position:relative;
  z-index:1030;
}
.navbar-custom{background: linear-gradient(90deg,var(--accent-1),var(--accent-2));border:none;box-shadow:0 3px 10px rgba(12,18,31,0.08);position:relative;z-index:1030;padding:8px 16px;min-height:56px}
.navbar-custom .navbar-brand{color:#fff;font-weight:600;display:flex;align-items:center;gap:10px;height:auto;padding:0 0 0 12px}
.brand-icon{display:none}
.brand-icon-img{display:inline-block;width:auto;height:34px;border-radius:8px;object-fit:cover;vertical-align:middle;box-shadow:0 2px 8px rgba(0,0,0,0.12)}
.navbar-custom .navbar-toggle .icon-bar{background:#ffffff}
.navbar-custom .nav>li>a{color:rgba(255,255,255,0.95)}
.navbar-custom .nav>li>a:hover{color:#fff}

/* Desktop: ensure nav links and brand are vertically centered */
@media (min-width:768px){
  .navbar-custom .nav>li>a{display:flex;align-items:center;height:56px;padding-top:0;padding-bottom:0}
  .navbar-custom .navbar-brand{height:56px}
}

/* Mobile collapsed background */
.navbar-custom .navbar-collapse{background:linear-gradient(180deg,rgba(0,0,0,0.02),rgba(0,0,0,0.02));}

/* Carousel tweaks */
.carousel-caption{position:relative;right:auto;left:auto;bottom:0;padding:20px 15px;background:linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.65));border-radius:8px;max-width:480px}
.carousel-header{font-weight:700;color:var(--accent-1)}
.carousel-image{max-width:120px;width:23%;height:auto;margin-right:20px;display:inline-block}
@media (max-width:767px){
  .carousel-image{width:34%;margin:0 0 12px;display:block}
  .carousel-caption{max-width:none;padding:12px}
}

/* Download area */
.download-container{padding:28px 0}
.download-buttons{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:center}

/* Uniform store buttons */
.hero-downloads .btn-store{width:180px;height:56px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border-radius:10px;padding:6px;border:1px solid rgba(16,24,40,0.04)}
.hero-downloads .btn-store img{max-width:100%;max-height:44px;width:auto;object-fit:contain;display:block}

@media (max-width:480px){
  .hero-downloads .btn-store{width:150px;height:48px}
  .hero-downloads .btn-store img{max-height:36px}
}

/* Marketing cards */
.marketing img{border-radius:12px;box-shadow:0 6px 20px rgba(99,102,241,0.08)}
.marketing h2{color:#111827;font-weight:700}

/* Contact */
.contactus-title{font-weight:700;color:var(--accent-1);margin-top:0;margin-bottom:12px}
.form-group label{font-weight:600}
.btn-primary{background:linear-gradient(90deg,var(--accent-1),var(--accent-2));border:none;color:#fff}
.btn-primary:hover{opacity:0.95}

/* Footer */
footer{padding:18px 0;color:var(--muted)}
footer a{color:var(--accent-1)}

/* Back to top */
.pull-right a{color:var(--muted);text-decoration:none}

/* Small helpers */
.img-responsive{max-width:100%;height:auto}

/* Ensure top content (carousel) is not hidden under the navbar. JS will set body padding to match navbar height; this is a safe fallback for very old browsers: */
body{padding-top:0}

/* Accessibility focus */
a:focus,button:focus,input:focus{outline:3px solid rgba(99,102,241,0.18);outline-offset:2px}

/* Light card style for content areas */
.container.marketing{background:transparent}

/* Minor adjustments for forms on small screens */
@media (max-width:767px){
  .container{padding-left:12px;padding-right:12px}
  .carousel-caption{margin:12px}
  /* Ensure Contact Us title has breathing room on small screens */
  .contactus-title{padding-left:16px;padding-right:16px}
}

/* Hero grid styles */
.hero-grid{
  padding:48px;
  background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,251,255,0.98));
  border-radius:16px;
  box-shadow:0 12px 40px rgba(12,18,31,0.06);
  margin-top:18px;
}

/* Use flex to vertically center columns; fallback to stacked layout on small screens */
.hero-row{display:flex;align-items:center;flex-wrap:wrap}
.hero-text{padding:12px 24px;max-width:560px}
.hero-text h1{
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  font-weight:700;
  font-size:clamp(1.9rem,5vw,3.6rem);
  margin-bottom:12px;
  line-height:1.04;
  letter-spacing:-0.4px;
}
.hero-text .hero-main{
  display:block;
  color:transparent;
  background: linear-gradient(90deg,var(--accent-1),var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(108,99,255,0.06);
}
.hero-text .hero-sub{
  display:block;
  font-weight:600;
  font-size:clamp(1.3rem,3.6vw,1.9rem);
  color:var(--accent-2);
  margin-top:6px;
}
.hero-text .lead{
  color:rgba(17,24,39,0.92);
  font-size:clamp(1.15rem,3.4vw,1.4rem);
  line-height:1.6;
  font-weight:500;
  margin-bottom:22px;
  max-width:36rem;
}
.hero-downloads{margin-top:22px}

/* Make store badges slightly more prominent */
.hero-downloads .btn-store img{height:56px}

.device-mockup{position:relative;min-height:320px;display:flex;align-items:center;justify-content:center;overflow:hidden}

/* Compact slider to show one screenshot at a time */
.hero-slider{position:relative;width:100%;max-width:380px}
.slides{position:relative;overflow:hidden}
.hero-slide{display:none;padding:12px 0;text-align:center}
.hero-slide.active{display:block}
.hero-slide img{max-width:300px;max-height:520px;width:auto;border-radius:18px;box-shadow:0 18px 48px rgba(16,24,40,0.10);display:block;margin:0 auto}

/* Controls */
.slider-control{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,0.45);color:#fff;border:none;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}
.slider-control.prev{left:8px}
.slider-control.next{right:8px}
.slider-control:focus{outline:2px solid rgba(255,255,255,0.2)}

/* Dots */
.slider-dots{display:flex;gap:8px;justify-content:center;margin-top:10px}
.slider-dots .dot{width:10px;height:10px;border-radius:50%;background:rgba(0,0,0,0.25);border:none;cursor:pointer}
.slider-dots .dot.active{background:var(--accent-1)}

/* Feature cards: center and size consistent */
.hero-cards{display:flex;gap:20px;justify-content:center;margin-top:28px;flex-wrap:wrap}
.hero-cards .col-sm-4{flex:0 0 320px;max-width:320px}
.feature-card{width:100%}

@media (max-width:992px){
  .hero-grid{padding:36px}
  .device-mockup{min-height:280px}
  .hero-slide img{max-width:260px;max-height:420px}
}

@media (max-width:767px){
  .hero-row{display:block}
  .hero-text{text-align:center;padding:10px}
  .hero-screens{margin-bottom:18px}
  .device-mockup{min-height:200px}
  .hero-slider{max-width:280px}
  .hero-slide img{max-width:200px;max-height:320px}

  /* Ensure hero-cards center, stack vertically, and override Bootstrap row/col spacing */
  .hero-cards{
    gap:16px;
    justify-content:center;
    margin-left:0;
    margin-right:0;
    padding-left:0;
    padding-right:0;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .hero-cards .col-sm-4{
    flex:0 0 auto;
    width:92%;
    max-width:92%;
    margin:8px auto;
    display:flex;
    justify-content:center;
    padding-left:0;
    padding-right:0;
  }
  .feature-card{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;width:100%;text-align:center}
}

@media (max-width:480px){
  .hero-slider{max-width:220px}
  .hero-slide img{max-width:180px;max-height:260px}
}

@media (max-width:767px){
  .hero-row{flex-direction:column-reverse}
  .hero-screens{margin-bottom:18px}
  .device-mockup{min-height:200px}
  .hero-screen{position:relative;display:inline-block;margin:6px;transform:none}
}

/* Feature cards */
.feature-card{background:var(--card);border-radius:12px;padding:18px;text-align:center;box-shadow:0 6px 18px rgba(6,10,29,0.04)}
.feature-card .card-img{max-width:84px;margin-bottom:12px}
.feature-card h3{margin-top:0;margin-bottom:8px;color:var(--accent-1)}
.feature-card p{color:var(--muted)}

