  /* Fonts */
  @font-face {
    font-family: 'Samsung Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/samsungsharpsans-medium.otf') format('opentype');
  }
  @font-face {
    font-family: 'Samsung Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/samsungsharpsans-bold.otf') format('opentype');
  }

  /* ========= VARIABLES ========= */
  :root{
    --sc-brand:#CF134B;
    --sc-brand-hover:#a80f3c;

    /* Unified spacing system */
    --sc-section-y: 7rem;
    --sc-section-x: 2rem;
    --sc-container: 1200px;

    /* LIGHT (base) */
    --sc-bg:#ffffff;
    --sc-surface:#f8f9fa;
    --sc-surface-2:#ffffff;
    --sc-text:#1A1A1B;
    --sc-text-muted:#636366;
    --sc-border:rgba(0,0,0,0.08);
    --nav-text:#000;
    --nav-bg:rgba(255,255,255,0.85);
    --nav-border:rgba(0,0,0,0.05);
    
    --btn-store-bg: #000;
    --btn-store-text: #fff;
    --btn-store-border: #000;
  }
  
  /* DARK overrides */
  [data-theme="dark"]{
    --sc-bg:#080808;
    --sc-surface:#121212;
    --sc-surface-2:#1a1a1a;
    --sc-text:#F5F5F7;
    --sc-text-muted:#86868B;
    --sc-border:rgba(255,255,255,0.1);
    --nav-text:#fff;
    --nav-bg:rgba(8,8,8,0.85);
    --nav-border:rgba(255,255,255,0.1);
    
    --btn-store-bg: #fff;
    --btn-store-text: #000;
    --btn-store-border: #fff;
  }

  /* Base */
  body{
    font-family: 'Samsung Sans', sans-serif;
    overflow-x:hidden;
    color:var(--sc-text);
    background-color:var(--sc-bg);
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4, h5 {
    font-family: 'Samsung Sans', sans-serif;
    font-weight: 700;
  }

  /* Animation Scroll Premium */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }

  /* Boutons */
  .btn-staycount{
    background-color:var(--sc-brand);
    color:#fff;
    border:none;
    border-radius:12px;
    padding:.8rem 2rem;
    font-weight:700;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .btn-staycount:hover{ 
    background-color:var(--sc-brand-hover); 
    color:#fff;
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(207, 19, 75, 0.25);
  }
  
  /* Boutons de téléchargement (Download section) */
  .btn-store {
    background-color: var(--btn-store-bg);
    color: var(--btn-store-text);
    border: 1px solid var(--btn-store-border);
    border-radius: 12px;
    padding: .75rem 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
  }
  .btn-store:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: var(--btn-store-text);
  }
  .btn-store i { font-size: 1.5rem; }

  /* Boutons Hero — Brand Red */
  .btn-store-hero {
    background-color: var(--sc-brand);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .8rem 1.6rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .btn-store-hero:hover {
    background-color: var(--sc-brand-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(207, 19, 75, 0.3);
  }
  .btn-store-hero i { font-size: 1.4rem; }

  /* Navbar */
  .navbar{
    background:var(--nav-bg) !important;
    border-bottom:1px solid var(--nav-border);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
  .navbar-brand img{ height:52px; }

  /* Hamburger icon */
  .navbar-toggler {
    border: none !important;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background 0.2s ease;
  }
  .navbar-toggler:focus { box-shadow: none; }
  .navbar-toggler:active { background: rgba(128,128,128,0.12); }
  [data-theme="dark"] .navbar-toggler-icon {
    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.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  [data-theme="dark"] .navbar-toggler { color: rgba(255,255,255,0.85); }

  /* Desktop nav links */
  .navbar-nav .nav-link { 
    margin: 0 .8rem; font-weight: 700; font-size: 0.95rem; 
    color: var(--nav-text) !important; 
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
  }
  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--sc-brand);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
    border-radius: 2px;
  }
  .navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active-scroll::after { width: 100%; }
  .navbar-nav .nav-link:hover { opacity: 0.7; }
  .navbar-nav .nav-link.active-scroll { color: var(--sc-brand) !important; opacity: 1; }

  /* ─── Mobile menu (< lg) ─────────────────────────────────── */
  @media (max-width: 991.98px) {
    .navbar { padding-top: 6px; padding-bottom: 6px; }
    .navbar-brand img { height: 44px; }

    /* Mobile menu — Bootstrap native collapse */
    .navbar { border-bottom: none !important; padding-bottom: 0 !important; }
    /* Remove container bottom padding so separator sits flush under top bar */
    .navbar > .container { padding-bottom: 0 !important; }
    
    /* CRITICAL: #navbarContent MUST NOT have vertical padding, otherwise Bootstrap's 
       collapsing animation cannot reach height: 0, causing a snap at the end! */
    #navbarContent {
      padding: 0;
    }
    #navbarContent .navbar-nav {
      padding: 8px 0 16px;
    }
    
    /* Smooth easing curve for the animation */
    #navbarContent.collapsing {
      transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Custom Animated Hamburger Icon */
    .navbar-toggler { padding: 4px 8px; box-shadow: none !important; }
    .hamburger-icon {
      width: 22px;
      height: 16px;
      position: relative;
      transform: rotate(0deg);
      transition: .4s ease-in-out;
    }
    .hamburger-icon span {
      display: block;
      position: absolute;
      height: 2px;
      width: 100%;
      background: var(--nav-text);
      border-radius: 4px;
      opacity: 1;
      left: 0;
      transform: rotate(0deg);
      transition: .42s ease-in-out;
    }
    .hamburger-icon span:nth-child(1) { top: 0px; }
    .hamburger-icon span:nth-child(2) { top: 7px; }
    .hamburger-icon span:nth-child(3) { top: 14px; }

    /* Morph into X when open */
    .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
      top: 7px;
      transform: rotate(135deg);
    }
    .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
      opacity: 0;
      transform: scale(0);
    }
    .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
      top: 7px;
      transform: rotate(-135deg);
    }

    /* Big tap targets for nav links */
    .navbar-nav .nav-link {
      margin: 0;
      padding: 14px 16px !important;
      font-size: 1rem;
      font-weight: 600;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 52px;
      transition: background 0.15s ease, opacity 0.15s ease;
    }
    .navbar-nav .nav-link::after { display: none; } /* hide desktop underline */
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:active {
      opacity: 1;
      background: rgba(128,128,128,0.06);
    }
    .navbar-nav .nav-link.active-scroll {
      background: none;
      opacity: 1;
    }

    /* Divider between links */
    .navbar-nav .nav-item + .nav-item {
      border-top: 1px solid var(--nav-border);
    }

    /* Mobile lang switch — Apple-style minimal pill */
    .mobile-lang-row {
      display: flex;
      justify-content: center;
      margin: 10px 4px 24px;
      padding-top: 12px;
      border-top: 1px solid var(--nav-border);
    }
    /* Mobile lang pill — completely reset, no underline, no background bleed */
    .mobile-lang-pill {
      display: inline-flex;
      background: rgba(128,128,128,0.1);
      border-radius: 8px;
      padding: 3px;
      gap: 2px;
    }
    .mobile-lang-pill a {
      display: inline-block;
      padding: 5px 22px;
      border-radius: 6px;
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.03em;
      color: var(--nav-text);
      opacity: 0.4;
      background: transparent;
      text-decoration: none !important;
      border: none;
      outline: none;
      transition: opacity 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
      -webkit-tap-highlight-color: transparent;
    }
    .mobile-lang-pill a.active {
      opacity: 1;
      background: var(--nav-bg);
      box-shadow: 0 1px 4px rgba(0,0,0,0.14);
      font-weight: 600;
    }

    /* Hide desktop lang switch inside collapse on mobile */
    .desktop-lang-switch { display: none !important; }
  }
  @media (min-width: 992px) {
    .mobile-lang-row { display: none !important; }
    .desktop-lang-switch { display: flex !important; }
  }

  .lang-switch .lang-btn{
    text-decoration:none;
    color:var(--nav-text);
    padding:4px 10px;
    border-radius:8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
    opacity: 0.5;
  }
  .lang-switch .lang-btn.active{ opacity: 1; background: rgba(0,0,0,0.05); }
  [data-theme="dark"] .lang-switch .lang-btn.active { background: rgba(255,255,255,0.1); }

  .btn-theme-icon{
    background:transparent;
    border:none;
    padding:8px;
    color:var(--nav-text);
    cursor:pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ─── Hero Rating Badge ─── */
  .hero-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 9px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    background: rgba(255,255,255,0.92);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(0,0,0,0.04);
    margin-bottom: 1.75rem;
    width: fit-content;
    animation: badgePop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.1s;
  }
  [data-theme="dark"] .hero-rating-badge {
    background: rgba(28, 28, 30, 0.85);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 0 0 0.5px rgba(255,255,255,0.06);
  }

  /* App Store icon wrapper */
  .hero-rating-icon {
    width: 28px;
    height: 28px;
    background: #000;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .hero-rating-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
  }
  [data-theme="dark"] .hero-rating-icon {
    background: #1c1c1e;
  }

  /* Stars row */
  .hero-rating-stars {
    display: flex;
    align-items: center;
    gap: 1px;
  }
  .hero-rating-stars svg {
    width: 13px;
    height: 13px;
    color: #FF9F0A;
  }

  /* Score */
  .hero-rating-score {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1c1c1e;
    letter-spacing: -0.01em;
    line-height: 1;
  }
  [data-theme="dark"] .hero-rating-score {
    color: #f5f5f7;
  }

  /* Dot separator */
  .hero-rating-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(0,0,0,0.22);
    flex-shrink: 0;
  }
  [data-theme="dark"] .hero-rating-dot {
    background: rgba(255,255,255,0.25);
  }

  /* Label */
  .hero-rating-label {
    font-size: 0.83rem;
    font-weight: 500;
    color: rgba(0,0,0,0.45);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  [data-theme="dark"] .hero-rating-label {
    color: rgba(255,255,255,0.38);
  }

  @keyframes badgePop {
    from { opacity: 0; transform: translateY(-5px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  @media (max-width: 767px) {
    .hero-rating-badge { align-self: center; }
  }

  /* Hero */
  #hero{ padding: 2.84rem var(--sc-section-x) 0; }
  .hero-text { margin-bottom: 2.5rem; }
  .hero-text h1{ font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.25rem; line-height: 1.25; letter-spacing: -0.5px; }
  .hero-text p{ font-size:1.06rem; margin-bottom:2.5rem; color:var(--sc-text-muted); line-height: 1.6; }
  .hero-img{ text-align:center; display:flex; align-items:flex-end; height:100%; justify-content: center; margin-bottom: 0; padding-bottom: 0 !important; }
  .hero-img img{
    max-width:100%; height:auto; max-height: 72vh; object-fit: contain;
    border-radius: 0;
    display: block;
    margin-bottom: 0;
  }
  #hero { margin-bottom: 0; padding-bottom: 0; }
  /* Desktop only: remove vertical gutter so image stays flush to features bar */
  @media (min-width: 768px) {
    #hero .row { --bs-gutter-y: 0; }
    #hero .col-md-5.hero-img { padding-bottom: 0 !important; align-self: flex-end; }
  }
  #feature-details { margin-top: 0; }

  /* Feature Band - THE NOIR */
  #feature-details { padding-top: 0; }
  /* Features Bar — Apple style */
  .features-bar {
    background: #000;
    color: #fff;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    padding: 4rem 0;
    margin-bottom: 5rem;
  }
  .features-bar .fb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 4rem;
  }
  .features-bar .fb-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
  }
  .features-bar .fb-title span { display: block; font-size: 0.9rem; font-weight: 400; opacity: 0.45; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.5rem; }
  .features-bar .fb-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
  }
  .fb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1;
  }
  .fb-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    transition: all 0.3s ease;
  }
  .fb-pill:hover { background: rgba(255,255,255,0.12); color: #fff; }
  .fb-pill i { color: var(--sc-brand); font-size: 0.9rem; }
  @media (max-width: 767px) {
    .features-bar .fb-inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .features-bar .fb-divider { display: none; }
    .features-bar .fb-title { white-space: normal; }
  }
  /* Feature cards — premium separated blocks */
  .feature-card {
    background-color: var(--sc-surface);
    border-radius: 32px;
    padding: 3rem;
    margin-bottom: 3rem;
    overflow: hidden;
  }
  [data-theme="dark"] .feature-card { background-color: var(--sc-surface-2); }
  .feature-detail-band{ align-items: center; }
  .feature-detail-text h3{ font-size: 2rem; margin-bottom: 1.25rem; }
  .feature-detail-text p { font-size: 1.1rem; color: var(--sc-text-muted); line-height: 1.7; }
  .feature-detail-image img { border-radius: 20px; width: 100%; }
  /* Feature inline tags */
  .feature-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
  .feature-tag {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: 50px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    color: var(--sc-text);
    font-weight: 600;
  }
  .feature-tag i { font-size: 0.75rem; color: var(--sc-brand); }

  /* Pricing */
  #pricing { padding-bottom: 4.5rem; }
  #pricing h2 { font-size: 2.5rem; margin-bottom: 3.5rem; text-align: center; }
  .pricing-box{
    background: #0a0a0a;
    border-radius:32px;
    padding: 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .pricing-box::before {
    content: '';
    position: absolute; top: -40%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(207,19,75,0.2), transparent 65%);
    pointer-events: none;
  }
  .pricing-left {
    padding: 3.5rem;
    border-right: 1px solid rgba(255,255,255,0.07);
  }
  .pricing-right {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  @media (max-width: 767px) {
    .pricing-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 2.5rem; }
    .pricing-right { padding: 2.5rem; }
  }
  .pricing-box .price{ color: #fff !important; font-size:5rem; font-weight:700; margin: 0.5rem 0; letter-spacing: -3px; line-height: 1; }
  .pricing-box .price-label { font-size: 0.9rem; opacity: 0.45; margin-bottom: 2rem; letter-spacing: 1px; text-transform: uppercase; }
  .pricing-box .pricing-headline { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
  .pricing-box .pricing-sub { font-size: 1rem; opacity: 0.55; margin-bottom: 2.5rem; line-height: 1.6; }
  .pricing-feature-list { list-style: none; padding: 0; margin-bottom: 0; }
  .pricing-feature-list li { padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 14px; font-size: 0.95rem; color: rgba(255,255,255,0.8); }
  .pricing-feature-list li:last-child { border-bottom: none; }
  .pricing-feature-list li i { color: var(--sc-brand); font-size: 1rem; flex-shrink: 0; }

  /* Testimonials spacing */
  #testimonials { padding-top: 7rem; padding-bottom: 7rem; }

  /* SECTION TELECHARGEMENT - Boutons Blancs */
  #download{ background:#000; color:#fff; padding: 8rem 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.15); }

  /* Separator before footer */
  footer { border-top: 1px solid rgba(255,255,255,0.12); }
  #download .btn-store {
    background-color: #fff;
    color: #000;
    border-color: #fff;
  }
  #download .btn-store:hover { background-color: #f5f5f7; }

  /* Testimonials */
  #testimonials { background: var(--sc-surface); }
  #testimonials h2 { font-size: 2.5rem; }
  #testimonials .testi-sub { color: var(--sc-text-muted); font-size: 1.15rem; max-width: 520px; margin: 0 auto 3.5rem; text-align: center; }
  .testimonial {
    background: var(--sc-surface-2);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--sc-border);
    display: flex; flex-direction: column; justify-content: space-between;
  }
  [data-theme="dark"] .testimonial { background: #1a1a1a; }
  .testimonial .stars { color: var(--sc-brand); font-size: 1rem; margin-bottom: 1.25rem; letter-spacing: 2px; }
  .testimonial blockquote { font-size: 1.1rem; line-height: 1.7; font-style: italic; color: var(--sc-text); flex: 1; margin-bottom: 1.5rem; }
  .testimonial .author { display: flex; align-items: center; gap: 12px; }
  .testimonial .author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--sc-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
  .testimonial .author-info strong { display: block; font-size: 0.95rem; }
  .testimonial .author-info span { font-size: 0.85rem; color: var(--sc-text-muted); }

  /* FOOTER PRO */
  footer {
    background-color: #000;
    color: #fff;
    padding: 5rem var(--sc-section-x) 2.5rem;
  }
  footer .container { max-width: var(--sc-container); margin: 0 auto; }
  footer .footer-logo {
    height: 44px;   /* same as navbar logo */
    width: auto;
    display: block;
    margin-bottom: 1.5rem;
  }
  footer .footer-brand-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    max-width: 300px;
    line-height: 1.7;
    margin-bottom: 0;
  }
  footer h5 {
    margin-bottom: 1.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
  }
  footer ul { list-style: none; padding: 0; margin: 0; }
  footer ul li { margin-bottom: 0.75rem; }
  footer ul li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease;
  }
  footer ul li a:hover { color: #fff; }
  .hover-white:hover { color: #fff !important; }
  .footer-bottom {
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
  }
  .footer-bottom a {
    color: rgba(255,255,255,0.5);
    font-size: 1.25rem;
    transition: color 0.25s ease;
  }
  .footer-bottom a:hover { color: #fff; }

  /* RESPONSIVE */
  @media (max-width: 991px) {
    :root { --sc-section-y: 5rem; }
  }
  @media (max-width: 767px) {
    :root {
      --sc-section-y: 3.5rem;
      --sc-section-x: 1.25rem;
    }
    #hero { padding-top: 2.5rem; }

    /* Hero text — left-aligned, not centered */
    .hero-text { margin-bottom: 2rem; text-align: left; }
    .hero-text h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); margin-bottom: 1rem; line-height: 1.2; }
    .hero-text p { font-size: 0.97rem; margin-bottom: 1.75rem; text-align: left; }

    /* Rating badge — left */
    .hero-rating-badge { align-self: flex-start; margin-bottom: 1.25rem; }

    /* CTA buttons — side by side, compact */
    .hero-text .d-flex {
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      justify-content: flex-start;
      gap: 0.65rem !important;
    }
    .btn-store-hero {
      width: auto;
      max-width: none;
      padding: 0.6rem 1rem;
      gap: 7px;
      justify-content: center;
      flex: 1;
      max-width: 50%;
    }
    .btn-store-hero div div:first-child { font-size: 0.58rem; }
    .btn-store-hero div div:last-child { font-size: 0.88rem; }
    .btn-store-hero i { font-size: 1.1rem; }

    /* Hero image */
    .hero-img {
      max-height: 45vh;
      overflow: hidden;
      align-items: center !important;
    }
    .hero-img img {
      max-height: 45vh;
      object-fit: contain;
    }

    .feature-detail-text h3 { font-size: 1.8rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    footer { padding-top: 3rem; padding-bottom: 2rem; }
    footer .footer-brand-text {
      max-width: 100%;
      font-size: 0.88rem;
      margin-bottom: 0.5rem;
    }
    footer .footer-logo { height: 40px; }
    footer h5 { margin-bottom: 0.85rem; }
    footer ul li { margin-bottom: 0.55rem; }
    footer ul li a { font-size: 0.88rem; }
  }
  

/* Blog Specific Styles */
/* ─── ARTICLE DETAIL PAGE ─── */
.blog-header {
  padding: 7rem 0 0;
  background: var(--sc-surface);
  border-bottom: 1px solid var(--sc-border);
}
.blog-header-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
  min-height: 280px;
  padding-bottom: 0;
}
.blog-header-text {
  padding: 2rem 0 2.5rem;
}
.blog-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 0;
  color: var(--sc-text);
}
.blog-meta {
  font-size: 0.75rem;
  color: var(--sc-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

/* Illustration in the header - right column */
.blog-header-illus {
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.blog-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 280px;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .blog-header-inner {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 1.5rem;
  }
  .blog-header-illus {
    min-height: 200px;
    border-radius: 14px;
  }
  .blog-hero-img {
    min-height: 200px;
    border-radius: 14px;
  }
  .blog-header-text {
    padding: 0 0 0;
  }
}

/* Remove old illustration wrap styles (no longer used) */
.article-illustration-wrap { display: none; }

/* ─── RELATED ARTICLES CAROUSEL ─── */
.related-section {
  border-top: 1px solid var(--sc-border);
  padding: 3rem 0 0;
  margin-top: 3rem;
}
.related-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sc-text-muted);
  margin-bottom: 1.5rem;
}
.related-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.related-scroll::-webkit-scrollbar { display: none; }

.related-card {
  flex: 0 0 auto;
  width: 220px;
  background: var(--sc-surface-2);
  border: 1px solid var(--sc-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--sc-text);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  scroll-snap-align: start;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: rgba(207, 19, 75, 0.35);
}
[data-theme="dark"] .related-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

.related-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e9e9eb;
  flex-shrink: 0;
}
[data-theme="dark"] .related-card-img-wrap {
  background: #1f1f1f;
}
.related-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.related-card:hover .related-card-img {
  transform: scale(1.04);
}

.related-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.related-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sc-brand);
  margin-bottom: 0.4rem;
  display: block;
}
.related-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sc-text);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-excerpt {
  font-size: 0.78rem;
  color: var(--sc-text-muted);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sc-brand);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.related-card-link i {
  transition: transform 0.25s ease;
}
.related-card:hover .related-card-link i {
  transform: translateX(4px);
}

/* Back button */
.btn-back-guides {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--sc-border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sc-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-back-guides:hover {
  border-color: var(--sc-brand);
  color: var(--sc-brand);
  background: rgba(207,19,75,0.04);
}

.blog-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--sc-text);
}
.blog-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--sc-text);
  letter-spacing: -0.5px;
}
.blog-content p {
  margin-bottom: 1.4rem;
  color: var(--sc-text-secondary);
}
.blog-content ul {
  margin-bottom: 1.8rem;
  padding-left: 1.5rem;
}
.blog-content li {
  margin-bottom: 0.5rem;
  color: var(--sc-text-secondary);
}
.blog-content .highlight-box {
  background: rgba(207, 19, 75, 0.05);
  border-left: 4px solid var(--sc-brand);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  border-radius: 0 12px 12px 0;
}
[data-theme="dark"] .highlight-box {
  background: rgba(232, 42, 99, 0.1);
}

/* CTA Section inside Blog */
.blog-cta {
  background: #0d0d0d;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #ffffff;
  margin: 3.5rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.blog-cta h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.blog-cta p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
/* Force red on download buttons inside blog-cta */
.blog-cta .btn-store-hero {
  background-color: #CF134B !important;
  color: #fff !important;
  border: none !important;
}

/* ─── BLOG HUB / GUIDES GRID ─── */
.hub-header {
  padding: 8rem 0 2.5rem;
  text-align: center;
  background: var(--sc-surface);
  border-bottom: 1px solid var(--sc-border);
}
.hub-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.6rem;
  color: var(--sc-text);
}
.hub-header p {
  font-size: 1rem;
  color: var(--sc-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.hub-grid {
  padding: 2.5rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: var(--sc-container);
  margin: 0 auto;
  padding-left: var(--sc-section-x);
  padding-right: var(--sc-section-x);
}

.guide-card {
  background: var(--sc-surface-2);
  border: 1px solid var(--sc-border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  color: var(--sc-text);
  min-height: 170px;
}
@media (max-width: 480px) {
  .guide-card {
    grid-template-columns: 110px 1fr;
    min-height: 130px;
  }
}
.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: rgba(207, 19, 75, 0.3);
}
[data-theme="dark"] .guide-card:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.guide-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sc-brand);
}
.guide-card-time {
  color: var(--sc-text-muted);
  font-weight: 500;
  text-transform: none;
}

.guide-card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  color: var(--sc-text);
  font-weight: 700;
}
.guide-card p {
  font-size: 0.875rem;
  color: var(--sc-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sc-text);
}
.guide-card-footer i {
  color: var(--sc-brand);
  transition: transform 0.3s ease;
}

.guide-card:hover .guide-card-footer i {
  transform: translateX(4px);
}

/* Footer Improvements */
.hover-white:hover {
  color: #ffffff !important;
}


/* Fix navbar overlap on anchor click */
section {
  scroll-margin-top: 130px;
}


/* Fix Bootstrap text-muted for Dark Mode */
.text-muted { color: var(--sc-text-muted) !important; }

.guide-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 170px;
}
@media (max-width: 480px) {
  .guide-card-img {
    min-height: 130px;
  }
}
[data-theme="dark"] .guide-card-img {
  filter: brightness(0.92);
}
.guide-card-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}



