/* =========================================================
   CRACK EXAM — MAIN STYLESHEET (Simple / Clean design)
   Design tokens, base styles, section & component styling
========================================================= */

:root {
  /* Brand colors (fixed per brief) */
  --primary: #01875F;
  --primary-dark: #016b4b;
  --secondary: #01875F;
  --secondary-dark: #016b4b;
  --bg: #ffffff;
  --bg-light: #f6f6f6;
  --text: #494949;
  --text-muted: #7d7d7d;

  --border: #e4e4e4;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Type */
  --font-base: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================================
   RESET / BASE
========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html
{
    overflow-x: hidden;
}


body {
  font-family: var(--font-base);
  color: var(--text);
  background-color: var(--bg);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

a { text-decoration: none; transition: color 0.2s ease; }

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

.text-accent { color: var(--primary); }

.skip-link {
  position: absolute;
  top: -50px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 2000;
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reusable eyebrow / heading system */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 10px;
}

.footer-logo-img {
    width: 40% !important;
}

.section-heading {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.section-sub { font-size: 1rem; }

section { padding: 80px 0; }

/* =========================================================
   NAVBAR
========================================================= */
#mainNav {
  background: #ffffff;
  padding:  0  !important;
  transition: all 0.25s ease;
  border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 1.05rem;
}

.logo-text { letter-spacing: -0.01em; }

.nav-links .nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 4px;
  padding: 8px 12px !important;
  transition: color 0.2s ease;
}

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

.btn-nav-cta {
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-weight: 500;
  font-size: 0.92rem;
}

/* Global button polish */
.btn {
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm) !important;
}
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-dark {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline-dark:hover {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}
/* =========================================================
   HERO SLIDER
========================================================= */
.hero-section {
  /* padding-top: 140px; */
  padding-bottom: 0px;
  background: var(--bg);
}

.starweb-link{
    color: #01875F;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.starweb-link:hover{
    color: #01875F;
    text-decoration: none;
}

.hero-row { min-height: 400px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--secondary-dark);
  margin-bottom: 18px;
}

.hero-heading {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.hero-para {
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 28px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { display: flex; justify-content: center; }

.phone-frame {
  position: relative;
  max-width: 280px;
  width: 100%;
}

.phone-frame img {
  border-radius: 20px;
  border: 1px solid var(--border);
}


.cta-btns .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transition: all 0.3s ease;
}

.cta-btns .btn-outline-light:hover,
.cta-btns .btn-outline-light:focus,
.cta-btns .btn-outline-light:active {
    background-color: #fff;
    color: #000 !important;
    border-color: #fff;
}
/* Carousel controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  opacity: 1;
}
#heroCarousel .carousel-control-prev { left: 25px !important; }
#heroCarousel .carousel-control-next { right: 25px !important; }
.carousel-control-icon {
  color: var(--text);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#heroCarousel .carousel-indicators { bottom: -6px; }
#heroCarousel .carousel-indicators [data-bs-target] {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #d7dbe0;
  border: none;
  margin: 0 4px;
  opacity: 1;
  transition: all 0.2s ease;
}
#heroCarousel .carousel-indicators .active {
  background-color: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* =========================================================
   FEATURES
========================================================= */
.features-section { background: var(--bg-light); }

.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 26px;
  height: 100%;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.feature-card:hover { border-color: var(--primary); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  background: var(--bg-light);
  margin-bottom: 18px;
}

.feature-card:nth-of-type(2n) .feature-icon {
  color: var(--secondary);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p { font-size: 0.94rem; margin-bottom: 0; }

/* =========================================================
   SCREENSHOTS
========================================================= */
.screenshots-section { background: var(--bg); }

.screenshot-slider-wrap { padding: 0 0 10px; }

.screenshot-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 24px 20px;
  scrollbar-width: none;
}
.screenshot-slider::-webkit-scrollbar { display: none; }

.screenshot-card {
  flex: 0 0 auto;
  width: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
  background-color: #edf1f4;

}

.screenshot-card:hover { border-color: var(--primary); }

.screenshot-card img { width: 100%; height: auto; }

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.slider-btn:hover { border-color: var(--primary); color: var(--primary); }


.hero-section{
    overflow: hidden;
}

.hero-section img{
    width: 100%;
    height: auto;
    display: block;
}

/* Desktop */
@media (min-width:992px){
    .hero-section img{
        max-height: 780px;
        object-fit: cover;
    }
}

/* Mobile */
@media (max-width:991px){
    .hero-section img{
        max-height: 450px;
        object-fit: cover;
    }
}
/* =========================================================
   ABOUT
========================================================= */
.about-section { background: var(--bg-light); }

.about-media img { border-radius: var(--radius-lg); }

.about-desc { font-size: 1rem; margin: 16px 0 24px; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.check-list i { color: var(--secondary); font-size: 1.05rem; }

/* =========================================================
   CTA / DOWNLOAD
========================================================= */
.cta-section {
  background: var(--primary);
  color: #fff;
}

.cta-text h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}

.cta-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 26px;
}

.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.cta-btns .btn-light { color: var(--primary-dark); font-weight: 600; }

.cta-btns .btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }

.cta-media { text-align: center; }
.cta-media img { max-width: 260px; margin: 0 auto; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 20px;
  max-width: 320px;
}

.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.social-icons a:hover { border-color: var(--primary); color: var(--primary); }

.footer-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
}

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

.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.93rem; }
.footer-links a:hover { color: var(--primary); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-contact i { color: var(--primary); margin-top: 3px; }

.footer-divider { border-color: var(--border); margin: 40px 0 0; }

.footer-bottom { padding: 20px 0; font-size: 0.85rem; color: var(--text-muted); }

/* =========================================================
   BACK TO TOP
========================================================= */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 999;
}
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { border-color: var(--primary); color: var(--primary); }


/* =========================================================
   CRACK EXAM — RESPONSIVE OVERRIDES
   Mobile-first breakpoints on top of style.css
========================================================= */

/* ---------- Tablets (≤991.98px) ---------- */
@media (max-width: 991.98px) {
  section { padding: 70px 0; }

  .hero-section { padding-top: 130px; padding-bottom: 50px; }
  .hero-row { min-height: auto; }
  .hero-media { margin-bottom: 40px; }
  .hero-text { text-align: center; }
  .hero-para { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }

  .navbar-collapse {
    background: #fff;
    border-radius: var(--radius-md);
    margin-top: 14px;
    padding: 18px;
    border: 1px solid var(--border);
  }
  .nav-links { text-align: center; margin-bottom: 10px; }
  .btn-nav-cta.d-none { display: inline-flex !important; width: 100%; justify-content: center; margin-top: 6px; }

  .about-media { margin-bottom: 30px; text-align: center; }

  .cta-media { margin-top: 40px; }
  .cta-text { text-align: center; }
  .cta-btns { justify-content: center; }
}

/* ---------- Mobile (≤767.98px) ---------- */
@media (max-width: 767.98px) {
  section { padding: 56px 0; }

  .hero-heading { font-size: 2rem; }
  .hero-para { font-size: 1rem; }
  .phone-frame { max-width: 240px; }

  .section-heading { margin-bottom: 2rem; }

  .feature-card { padding: 28px 22px; }

  .screenshot-card { width: 175px; }

  .check-list { grid-template-columns: 1fr; }

  .footer-desc { max-width: 100%; }
  .site-footer { padding-top: 50px; text-align: center; }
  .social-icons { justify-content: center; }
  .footer-links, .footer-contact { display: inline-block; text-align: left; }
}

/* ---------- Small mobile (≤575.98px) ---------- */
@media (max-width: 575.98px) {
  .hero-section { padding-top: 115px; }
  .hero-tag { font-size: 0.78rem; }
  .hero-heading { font-size: 1.7rem; }

  .hero-btns .btn,
  .cta-btns .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-btns, .cta-btns { flex-direction: column; }

  .eyebrow { font-size: 0.72rem; }
  .section-heading h2 { font-size: 1.6rem; }

  #backToTop { bottom: 18px; right: 18px; width: 42px; height: 42px; }
}

/* ---------- Large desktop refinement (≥1400px) ---------- */
@media (min-width: 1400px) {
  .container { max-width: 1240px; }
  .hero-heading { font-size: 3.4rem; }
}
