﻿/* Tests: tests/AMMN.Portal.E2E/ServicePageTests.cs */
/* Docs:  docs/dev/SERVICE.md */

/* ================================================================
   SERVICE PAGE â€” Styles unique to the service template.
   Shared sections (nav, partners, FAQ, CTA, footer) are in landing.css.
   ================================================================ */

/* ----------------------------------------------------------------
   PARTNERS SECTION (service override of landing's .section_2)
   ---------------------------------------------------------------- */
/* Override landing .section_2 on service page — no oval overlap */
.sec-homepage ~ .section_2 {
margin-top: 0;
padding-top: 40px;
clip-path: none;
z-index: 0;
}

.section_2imgs > img,
.section_2imgs_service > img {
width: 200px;
height: 120px;
object-fit: contain;
flex-shrink: 0;
display: inline-block;
}

.section_2imgs,
.section_2imgs_service {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 40px;
overflow: hidden;
}

/* ----------------------------------------------------------------
   1. HERO SECTION
   ---------------------------------------------------------------- */
.sec-homepage {
width: 100%;
min-height: 100vh;
display: flex;
margin-top: 0;
padding-top: 0;
}

.homepage {
width: 100%;
min-height: 100vh;
background-image: url(../assets/service/hero-bg.avif);
background-size: cover;
background-position: 0 20%;
background-repeat: no-repeat;
position: relative;
z-index: 1;
display: flex;
align-items: end;
}

.blur-section {
position: relative;
width: 100%;
padding: 80px 80px;
height: 400px;
display: flex;
align-items: end;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, var(--text) 38%, var(--text) 100%);
  mask-image: linear-gradient(180deg, transparent 0%, var(--text) 38%, var(--text) 100%);
}

.text-section {
width: 100%;
}

.textrow {
display: flex;
justify-content: space-between;
align-items: center;
}

.leftside {
max-width: 650px;
}

.text-section h1 {
color: rgba(255,255,255,0.93);
font-size: 40px;
line-height: 1.15;
margin-bottom: 14px;
font-weight: 500;
}

.text-section p {
color: rgba(255,255,255,0.93);
font-size: 16px;
line-height: 24px;
}

.right-side {
display: flex;
gap: 14px;
align-self: end;
}

.hero-btn-primary {
padding: 20px 48px;
min-height: 60px;
min-width: 240px;
border-radius: 999px;
border: none;
background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
color: #fff;
box-shadow: var(--shadow-md);
font-size: 19px;
font-weight: 700;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
letter-spacing: 0.5px;
text-transform: uppercase;
}

.hero-btn-primary:hover {
transform: translateY(-2px) scale(1.03);
box-shadow: var(--shadow-lg);
background: var(--brand-primary-hover);
}

/* Arrow icon inside primary button */
.hero-btn-arrow {
transition: transform 0.3s ease;
flex-shrink: 0;
}
[dir="rtl"] .hero-btn-arrow {
transform: scaleX(-1);
}
.hero-btn-primary:hover .hero-btn-arrow {
transform: translateX(4px);
}
[dir="rtl"] .hero-btn-primary:hover .hero-btn-arrow {
transform: scaleX(-1) translateX(4px);
}

/* Pulse glow — draws attention on page load */
.hero-btn-pulse {
animation: hero-glow 2.2s ease-in-out infinite;
}
@keyframes hero-glow {
0%, 100% { box-shadow: 0 0 12px 2px color-mix(in srgb, var(--brand-primary) 40%, transparent); }
50%      { box-shadow: 0 0 28px 10px color-mix(in srgb, var(--brand-primary) 55%, transparent); }
}
.hero-btn-pulse:hover {
animation: none;
}

/* Loading state — replaces text with spinner during navigation */
.hero-btn-primary--loading {
pointer-events: none;
opacity: 0.85;
animation: none;
}

.hero-btn-spinner {
width: 22px;
height: 22px;
border: 3px solid color-mix(in srgb, var(--n0) 40%, transparent);
border-top-color: var(--n0);
border-radius: 50%;
animation: pending-spin 0.6s linear infinite;
}

.hero-btn-secondary {
position: relative;
padding: 16px 24px;
min-height: 52px;
border-radius: 999px;
border: none;
background: linear-gradient(135deg,
    rgba(255,255,255,0.25) 0%,
    rgba(255,255,255,0.05) 50%,
    rgba(255,255,255,0.15) 100%);
backdrop-filter: blur(40px);
-webkit-backdrop-filter: blur(40px);
box-shadow: var(--shadow-lg);
color: #fff;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
transform: translateY(-2px);
background: linear-gradient(135deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.25) 100%);
}

/* ----------------------------------------------------------------
   2. SME / WHY CHOOSE US SECTION (horizontal scroll cards)
   ---------------------------------------------------------------- */
.sme-section {
overflow-x: hidden;
background: var(--n10);
padding: 40px 0 0;
}

.sme-header {
margin: 0 0 20px 80px;
overflow: hidden;
}

[dir="rtl"] .sme-header {
margin: 0 80px 20px 0;
}

.sme-header h2 {
font-size: 36px;
font-weight: 500;
margin: 0;
color: var(--n800);
line-height: 48px;
letter-spacing: -1.08px;
}

.sme-header p {
margin-top: 20px;
font-weight: 400;
font-size: 16px;
color: var(--n500);
line-height: 24px;
letter-spacing: -0.08px;
}

.sme-progress {
max-width: 90vw;
margin: 0 80px;
height: 3px;
background: var(--n30);
border-radius: 999px;
position: relative;
}

.sme-progress-fill {
position: absolute;
inset: 0 auto 0 0;
width: 0%;
background: var(--n700);
border-radius: 999px;
}

.sme-viewport {
width: 100%;
overflow-x: auto;
overflow-y: hidden;
padding: 30px 0;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}

.sme-viewport::-webkit-scrollbar {
display: none;
}

.sme-track {
display: flex;
gap: 28px;
padding: 0 80px;
}

.sme-card {
flex: 0 0 390px;
background: var(--n0);
border-radius: 16px;
padding: 24px;
display: flex;
flex-direction: column;
gap: 11px;
overflow: hidden;
}

.sme-icon-wrapper {
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.sme-card img {
width: 56px;
height: 56px;
object-fit: contain;
flex-shrink: 0;
transition: transform 0.3s ease;
}

.sme-card:hover img {
transform: scale(1.08);
}

.sme-card h4 {
margin: 0;
font-size: 18px;
font-weight: 500;
color: var(--n900);
flex-shrink: 0;
line-height: 32px;
letter-spacing: -0.18px;
}

.sme-card p {
margin: 0;
font-size: 16px;
line-height: 24px;
letter-spacing: -0.08px;
color: var(--n800);
flex-grow: 1;
overflow: hidden;
}

/* ----------------------------------------------------------------
   3. COVERAGE STACK (stacked cards — cycled via hover-nav buttons)
   ---------------------------------------------------------------- */
.stack-section {
background: var(--n10);
position: relative;
}

.stack-layout {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 80px;
height: 100vh;
padding: 0 40px;
}

.left-content {
width: 45%;
margin-left: 10px;
}

.left-content h2 {
font-size: 36px;
font-weight: 500;
line-height: 48px;
letter-spacing: -1.08px;
color: var(--n800);
padding-bottom: 10px;
margin-bottom: 16px;
}

.left-content p {
font-size: 16px;
font-weight: 400;
color: var(--n500);
line-height: 24px;
letter-spacing: -0.08px;
margin-bottom: 20px;
max-width: 530px;
}

.left-content button {
padding: 20px 24px;
min-height: 52px;
width: 143px;
border-radius: 99px;
margin-top: 30px;
text-align: center;
border: none;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background: var(--brand-blue);
color: var(--n0);
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 1px 6px 16px rgba(0,0,0,0.08);
}

.left-content button:hover {
background: var(--brand-blue-hover);
transform: translateY(-2px);
box-shadow: 1px 6px 20px rgba(0,0,0,0.12);
}

.stack-section1 {
position: relative;
width: 50%;
height: 520px;
display: flex;
align-items: center;
justify-content: center;
}

.blue-card {
position: absolute;
width: 430px;
height: 469px;
border-radius: 16px;
padding: 0;
overflow: hidden;
background: linear-gradient(135deg, #dee8ff 0%, #5b8ef5 50%, var(--brand-blue) 100%);
box-shadow: 0 15px 28px rgba(0,0,0,0.16);
transition: transform 0.4s ease, opacity 0.4s ease, z-index 0s;
opacity: 0;
transform: scale(0.95) rotate(6deg);
}

.blue-card.active {
opacity: 1;
transform: scale(1) rotate(0deg);
z-index: 100;
}

.blue-card.tilt-right {
opacity: 1;
transform: scale(0.95) rotate(6deg) translate(15px, -10px);
z-index: 99;
}

.blue-card.tilt-left {
opacity: 1;
transform: scale(0.95) rotate(-6deg) translate(-15px, -10px);
z-index: 98;
}

/* Hover-nav buttons replace the removed wheel-scroll behaviour —
   visible only while the user hovers or focuses the stack section. */
.stack-nav-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 44px;
height: 44px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.35);
background: rgba(255, 255, 255, 0.35);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: var(--n900, #111);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
z-index: 200;
padding: 0;
}

.stack-nav-btn:hover {
background: rgba(255, 255, 255, 0.6);
}

.stack-nav-btn--prev { left: 12px; }
.stack-nav-btn--next { right: 12px; }

.stack-section1:hover .stack-nav-btn,
.stack-section1:focus-within .stack-nav-btn {
opacity: 1;
}

.blue-card::before {
content: "";
position: absolute;
inset: 0;
backdrop-filter: blur(75px);
-webkit-backdrop-filter: blur(75px);
background: rgba(255,255,255,0.01);
border-radius: 12px;
z-index: 1;
}

.icon-container {
position: absolute;
top: -20px;
right: -10px;
width: 200px;
height: 200px;
z-index: 3;
pointer-events: none;
}

.icon-container img {
width: 100%;
height: 100%;
object-fit: contain;
opacity: 0.5;
filter: brightness(0) invert(1);
transform: rotate(-15deg);
}

.blue-card-text {
position: absolute;
bottom: 24px;
left: 32px;
right: 32px;
z-index: 2;
display: flex;
flex-direction: column;
gap: 8px;
}

.blue-card h3 {
font-size: 24px;
font-weight: 500;
line-height: 32px;
letter-spacing: -0.48px;
color: #fff;
margin: 0;
}

.blue-card p {
font-size: 16px;
font-weight: 400;
line-height: 24px;
letter-spacing: -0.08px;
color: var(--n40);
margin: 0;
}

/* ----------------------------------------------------------------
   ERROR RECOVERY (AppErrorBoundary)
   ---------------------------------------------------------------- */
.ammn-error-recovery {
min-height: 60vh;
display: flex;
align-items: center;
justify-content: center;
padding: 40px 20px;
}

.ammn-error-recovery__card {
max-width: 520px;
width: 100%;
background: var(--surface, var(--n0));
border: 1px solid var(--n100, rgba(0, 0, 0, 0.08));
border-radius: 16px;
padding: 40px 32px;
text-align: center;
box-shadow: var(--shadow-md, 0 6px 20px rgba(0, 0, 0, 0.06));
}

.ammn-error-recovery__icon {
color: var(--landing-accent-dark, #1f2a44);
margin-bottom: 16px;
}

.ammn-error-recovery__card h2 {
margin: 0 0 8px;
font-size: 22px;
font-weight: 600;
color: var(--text, #1a1a2e);
}

.ammn-error-recovery__card p {
margin: 0 0 24px;
font-size: 15px;
line-height: 22px;
color: var(--text-muted, #555);
}

.ammn-error-recovery__actions {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
}

.ammn-error-recovery__btn {
padding: 12px 22px;
border-radius: 999px;
font-size: 15px;
font-weight: 500;
cursor: pointer;
border: 1px solid transparent;
transition: transform 0.2s ease, background 0.2s ease;
}

.ammn-error-recovery__btn--primary {
background: var(--brand-blue, #1860ff);
color: #fff;
}

.ammn-error-recovery__btn--primary:hover {
transform: translateY(-1px);
}

.ammn-error-recovery__btn--ghost {
background: transparent;
color: var(--text, #1a1a2e);
border-color: var(--n100, rgba(0, 0, 0, 0.15));
}

.ammn-error-recovery__btn--ghost:hover {
background: var(--n10, rgba(0, 0, 0, 0.04));
}

/* ----------------------------------------------------------------
   CAROUSEL HOVER ARROWS (Partners, WhyChooseUs, CoverageStack)
   ---------------------------------------------------------------- */
.carousel-arrows-wrap {
position: relative;
}

.carousel-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 44px;
height: 44px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.35);
background: rgba(255, 255, 255, 0.35);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: var(--n900, #111);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
z-index: 5;
padding: 0;
}

.carousel-arrow:hover {
background: rgba(255, 255, 255, 0.6);
}

.carousel-arrow--prev { left: 12px; }
.carousel-arrow--next { right: 12px; }

.carousel-arrows-wrap:hover .carousel-arrow,
.carousel-arrows-wrap:focus-within .carousel-arrow {
opacity: 1;
}

[data-theme="dark"] .carousel-arrow {
background: rgba(30, 30, 30, 0.45);
border-color: rgba(255, 255, 255, 0.18);
color: var(--n0, #fff);
}

[data-theme="dark"] .carousel-arrow:hover {
background: rgba(30, 30, 30, 0.7);
}

/* ----------------------------------------------------------------
   4. APP SECTION
   ---------------------------------------------------------------- */
.app-section {
padding: 60px 80px;
}

.app-container {
display: grid;
grid-template-columns: 1fr;
gap: 40px;
align-items: center;
}

.app-content {
display: flex;
gap: 90px;
}

.app-content h2 {
font-size: 36px;
font-weight: 500;
color: var(--text);
line-height: 1.2;
margin: 0;
}

.app-content p {
font-size: 16px;
color: var(--text-muted);
line-height: 1.8;
align-self: end;
}

.video-card {
position: relative;
width: 100%;
height: 500px;
border-radius: 24px;
overflow: hidden;
background: var(--n900);
  box-shadow: var(--shadow-md);
}

.video-background {
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(0.85);
}

.video-overlay {
position: absolute;
inset: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--text) 40%, transparent) 0, color-mix(in srgb, var(--text) 70%, transparent) 100%);
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 40px;
}

.play-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100px;
height: 100px;
background: color-mix(in srgb, var(--n0) 10%, transparent);
border: 1.27px solid transparent;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
z-index: 2;
}

.play-button::before {
content: "";
position: absolute;
inset: 0;
border-radius: 50%;
padding: 1.27px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--n0) 60%, transparent) 0, color-mix(in srgb, var(--n0) 0%, transparent) 50.07%, color-mix(in srgb, var(--n0) 40%, transparent) 100%);
  -webkit-mask: linear-gradient(var(--n0) 0 0) content-box, linear-gradient(var(--n0) 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
}

.play-button::after {
content: "";
width: 0;
height: 0;
border-left: 24px solid color-mix(in srgb, var(--n0) 95%, transparent);
border-top: 14px solid transparent;
border-bottom: 14px solid transparent;
margin-left: 6px;
}

.play-button:hover {
transform: translate(-50%, -50%) scale(1.1);
background: color-mix(in srgb, var(--n0) 20%, transparent);
}

.circular-text {
position: absolute;
width: 160px;
height: 160px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 1;
}

.circular-text svg {
width: 100%;
height: 100%;
overflow: visible;
}

.circular-text text {
fill: #fff;
font-size: 17px;
font-weight: 600;
letter-spacing: 8px;
text-transform: uppercase;
}

.download-section {
margin-top: auto;
}

.download-text {
color: var(--n0);
font-size: 16px;
font-weight: 500;
margin-bottom: 16px;
}

.app-badges {
display: flex;
gap: 12px;
flex-wrap: wrap;
}

.app-badge {
height: 48px;
width: auto;
cursor: pointer;
transition: all 0.3s ease;
border-radius: 8px;
}

.app-badge:hover {
transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.app-badge-huawei {
height: 48px;
  background: linear-gradient(135deg, var(--text-muted) 0%, var(--text-muted) 100%);
display: flex;
align-items: center;
justify-content: center;
padding: 0 20px;
gap: 8px;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
}

.app-badge-huawei:hover {
transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.app-badge-huawei svg {
width: 24px;
height: 24px;
fill: var(--n0);
}

.app-badge-huawei-label {
font-size: 9px;
color: var(--n0);
opacity: 0.9;
text-align: left;
}

.app-badge-huawei-name {
font-size: 14px;
color: var(--n0);
font-weight: 600;
text-align: left;
}

/* Disabled store badges (footer pre-launch state) — uniform size across all 3 */
.app-badges--disabled {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}

.app-badges--disabled .app-badge--disabled {
width: 160px;
height: 48px;
box-sizing: border-box;
display: inline-flex;
align-items: center;
justify-content: center;
opacity: 0.55;
filter: grayscale(70%);
cursor: not-allowed;
pointer-events: none;
border-radius: 8px;
overflow: hidden;
}

.app-badges--disabled .app-badge--disabled > img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
display: block;
}

.app-badges--disabled .app-badge-huawei {
padding: 0 12px;
gap: 8px;
}

.app-badges--disabled .app-badge--disabled:hover {
transform: none;
box-shadow: none;
}

.downloads-counter {
position: absolute;
top: 40px;
left: 40px;
text-align: left;
}

.downloads-number {
font-size: 48px;
font-weight: 700;
color: var(--n0);
line-height: 1;
margin-bottom: 8px;
text-shadow: 0 2px 10px color-mix(in srgb, var(--n900) 30%, transparent);
}

.downloads-label {
font-size: 18px;
font-weight: 600;
color: var(--n0);
text-shadow: 0 2px 10px color-mix(in srgb, var(--n900) 30%, transparent);
}

/* ----------------------------------------------------------------
   5. BENEFITS GRID
   ---------------------------------------------------------------- */
.benefits-grid1 {
width: 100%;
background: #0F0F0F;
}

.benefits-section {
  background: linear-gradient(180deg, #232222 0%, #0F0F0F 100%);
color: var(--n0);
text-align: center;
padding: 80px 34px 80px 40px;
font-size: 16px;
font-weight: 500;
line-height: 48px;
margin-bottom: 0;
}

.benefits-heading h2 {
color: var(--n0);
font-size: 32px;
font-weight: 500;
line-height: 48px;
}

.benefits-heading .icon-wrapper {
display: inline-block;
margin: 0 12px;
}

.benefits-heading .icon-wrapper img {
width: 30px;
height: 30px;
display: inline-block;
vertical-align: middle;
}

.benefits-heading p {
color: color-mix(in srgb, var(--n0) 75%, transparent);
font-size: 14px;
font-weight: 400;
line-height: 22px;
}

.benefits-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 23px;
width: 100%;
padding: 0 10px 200px 0;
max-width: 1400px;
margin: 20px auto;
}

.benefit-card {
background: color-mix(in srgb, var(--n0) 4%, transparent);
border-radius: 16px;
padding: 40px 32px;
transition: all 0.3s ease;
grid-column: span 2;
width: 100%;
}

/* 5-card layout: cards 4-5 centered in second row */
.benefits-grid .benefit-card:nth-child(4):nth-last-child(2) {
grid-column: 2 / span 2;
}

.benefits-grid .benefit-card:nth-child(5):last-child {
grid-column: 4 / span 2;
}

/* 8-card layout: cards 7-8 span 3 each */
.benefits-grid .benefit-card:nth-child(7):nth-last-child(2) {
grid-column: span 3;
}

.benefits-grid .benefit-card:nth-child(8):last-child {
grid-column: span 3;
}

.benefit-icon {
position: relative;
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 24px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-icon img {
width: 36px;
height: 36px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1;
transition: all 0.3s ease;
}

.icon-hover {
opacity: 0;
visibility: hidden;
}

.icon-default {
opacity: 1;
visibility: visible;
}

.benefit-card:hover .icon-default {
opacity: 0;
visibility: hidden;
}

.benefit-card:hover .icon-hover {
opacity: 1;
visibility: visible;
}

.benefit-card:hover .benefit-icon {
  box-shadow: var(--shadow-lg);
}

.benefit-card h3 {
font-size: 24px;
font-weight: 500;
min-height: 32px;
max-width: 310px;
margin-bottom: 16px;
text-align: start;
line-height: 36px;
color: var(--n0);
}

.benefit-card p {
font-size: 16px;
line-height: 24px;
font-weight: 300;
color: color-mix(in srgb, var(--n0) 75%, transparent);
text-align: start;
}

/* ----------------------------------------------------------------
   6. SERVICE-PAGE NAV OVERRIDE
   The service page uses position: fixed for the topbar (overlaps hero).
   landing.css uses position: sticky. We override here.
   ---------------------------------------------------------------- */
.service-page .topbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: transparent;
}

/* ----------------------------------------------------------------
   RESPONSIVE â€” 1024px
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sec-homepage {
height: 100vh;
  }

  .blur-section {
height: auto;
padding: 60px 40px;
  }

  .textrow {
gap: 32px;
  }

  .leftside {
max-width: 100%;
  }

  .text-section h1 {
font-size: 32px;
  }

  .text-section p {
font-size: 15px;
line-height: 22px;
  }

  .sme-viewport {
width: 90vw;
  }

  .sme-card {
flex: 0 0 340px;
  }

  .stack-layout {
flex-direction: column;
gap: 40px;
padding: 0 40px;
  }

  .left-content {
width: 100%;
position: relative;
top: auto;
margin-bottom: 0;
margin-left: 0;
  }

  .left-content p {
max-width: 100%;
  }

  .stack-section1 {
width: 100%;
padding: 20px 0;
  }

  .blue-card {
width: 100%;
max-width: 430px;
margin: 0 auto 40px;
left: 0;
  }

  .app-container {
grid-template-columns: 1fr;
gap: 40px;
  }

  .app-content {
padding-right: 0;
text-align: center;
flex-direction: column;
gap: 24px;
  }

  .video-card {
height: 450px;
  }

  .benefits-grid {
grid-template-columns: repeat(4, 1fr);
  }

  .benefit-card {
grid-column: span 2;
  }

  .benefits-grid .benefit-card:nth-child(7),
  .benefits-grid .benefit-card:nth-child(8) {
grid-column: span 2;
  }
}

/* ----------------------------------------------------------------
   RESPONSIVE â€” 768px
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .sec-homepage ~ .section_2 {
padding-top: 20px;
  }

  .homepage {
background-position: center top;
  }

  .blur-section {
padding: 40px 24px;
height: auto;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, var(--text) 10%, var(--text) 100%);
    mask-image: linear-gradient(180deg, transparent 0%, var(--text) 10%, var(--text) 100%);
  }

  .textrow {
flex-direction: column;
align-items: flex-start;
gap: 24px;
  }

  .right-side {
width: 100%;
justify-content: flex-start;
gap: 12px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
width: auto;
padding: 16px 22px;
font-size: 15px;
  }

  .text-section h1 {
font-size: 26px;
line-height: 1.25;
  }

  .text-section p {
font-size: 14px;
line-height: 21px;
  }

  .sme-header {
margin-left: 24px;
  }

  .sme-progress {
margin: 0 24px;
  }

  .sme-card {
flex: 0 0 280px;
  }

  .stack-layout {
padding: 0 24px;
  }

  .app-section {
padding: 60px 20px;
  }

  .app-content h2 {
font-size: 32px;
  }

  .video-card {
height: 400px;
  }

  .video-overlay {
padding: 30px;
  }

  .downloads-counter {
top: 30px;
left: 30px;
  }

  .downloads-number {
font-size: 36px;
  }

  .downloads-label {
font-size: 16px;
  }

  .app-badge {
height: 42px;
  }

  .play-button {
width: 80px;
height: 80px;
  }

  .circular-text {
width: 130px;
height: 130px;
  }

  .circular-text text {
font-size: 16px;
  }

  .benefits-section {
padding: 50px 24px 0;
  }

  .benefits-heading h2 {
font-size: 28px;
line-height: 36px;
  }

  .benefits-grid {
grid-template-columns: 1fr !important;
gap: 20px;
  }

  .benefit-card {
padding: 32px 24px;
  }

  /* Force every card into the single column — overrides the desktop 5-card
     and 8-card nth-child rules (lines 999-1014) which have higher specificity. */
  .benefits-grid > .benefit-card,
  .benefits-grid .benefit-card:nth-child(4):nth-last-child(2),
  .benefits-grid .benefit-card:nth-child(5):last-child,
  .benefits-grid .benefit-card:nth-child(7):nth-last-child(2),
  .benefits-grid .benefit-card:nth-child(8):last-child,
  .benefits-grid .benefit-card:nth-child(7),
  .benefits-grid .benefit-card:nth-child(8) {
grid-column: 1 / -1 !important;
  }

  .benefit-card h3 {
font-size: 20px;
  }

  .benefit-card p {
font-size: 14px;
  }

  /* Why-Choose-Us — real button arrows injected by JS, mobile-only */
  .sme-section {
    position: relative !important;
  }

  .sme-mobile-arrow {
    position: absolute;
    top: 70%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .sme-mobile-arrow--prev { left: 10px; }
  .sme-mobile-arrow--next { right: 10px; }

  /* Coverage stack — smaller cards, properly centered, arrows in a bottom row */
  .stack-section1 {
    height: 420px !important;
  }

  .blue-card {
    width: calc(100% - 40px) !important;
    max-width: 320px !important;
    height: 360px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    top: 0 !important;
  }

  .stack-nav-btn {
    opacity: 1 !important;
    width: 40px !important;
    height: 40px !important;
    top: auto !important;
    bottom: 0 !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #111 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    z-index: 200 !important;
  }

  /* Dark mode: --n900 flips light, so the SVG (stroke=currentColor) would
     vanish on the white pill. Force a dark icon color. */
  [data-theme="dark"] .stack-nav-btn {
    color: #111 !important;
  }

  .stack-nav-btn--prev {
    left: calc(50% - 50px) !important;
    right: auto !important;
  }

  .stack-nav-btn--next {
    right: auto !important;
    left: calc(50% + 10px) !important;
  }
}

/* ----------------------------------------------------------------
   RESPONSIVE â€” 480px
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .blur-section {
padding: 32px 18px;
  }

  .right-side {
flex-direction: column;
width: 100%;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
width: 100%;
text-align: center;
  }

  .app-content h2 {
font-size: 28px;
  }

  .video-card {
height: 350px;
  }

  .play-button {
width: 70px;
height: 70px;
  }

  .play-button::after {
border-left: 20px solid color-mix(in srgb, var(--n0) 95%, transparent);
border-top: 12px solid transparent;
border-bottom: 12px solid transparent;
  }

  .circular-text {
width: 120px;
height: 120px;
  }

  .circular-text text {
font-size: 14px;
letter-spacing: 6px;
  }

  .app-badges {
flex-direction: column;
align-items: stretch;
  }

  .app-badge {
width: 100%;
max-width: 200px;
  }

  .sme-header {
margin-left: 18px;
  }

  .sme-progress {
margin: 0 18px;
  }

  .sme-track {
padding-left: 1rem;
  }
}

/* ----------------------------------------------------------------
   DARK MODE
   ---------------------------------------------------------------- */
[data-theme="dark"] .sec-homepage ~ .section_2 {
background-color: var(--bg);
}

[data-theme="dark"] .sme-section {
background: var(--n10);
}

[data-theme="dark"] .sme-card {
background: var(--surface);
}

[data-theme="dark"] .benefits-section {
background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

[data-theme="dark"] .benefit-card {
background: #2a2a2a;
border: 1px solid #3a3a3a;
}

[data-theme="dark"] .benefit-card h3 {
color: #fff;
}

[data-theme="dark"] .benefit-card p {
color: rgba(255,255,255,0.65);
}

[data-theme="dark"] .benefits-heading h2 {
color: #fff;
}

[data-theme="dark"] .benefits-heading p {
color: rgba(255,255,255,0.6);
}

[data-theme="dark"] .left-content h2 {
color: var(--n900);
}

[data-theme="dark"] .left-content p {
color: var(--n300);
}

[data-theme="dark"] .left-content button {
background: var(--brand-blue-light);
}

[data-theme="dark"] .left-content button:hover {
background: var(--brand-blue);
}

[data-theme="dark"] .blue-card {
background: linear-gradient(135deg, #1a2744 0%, #1e3a6e 50%, #2554a8 100%);
box-shadow: 0 15px 28px rgba(0,0,0,0.4);
}

[data-theme="dark"] .blue-card h3 {
color: #fff;
}

[data-theme="dark"] .blue-card p {
color: rgba(255,255,255,0.7);
}





