/* 
========================================================================
   A&A TECHNOLOGY - PREMIUM INDUSTRIAL STYLE SYSTEM
   Design Identity: Slate Indigo, Tech Teal, Cyber Blue & Modern Grids
   Aesthetics: Glassmorphism, Micro-interactions, Grid Overlays
========================================================================
*/

/* --- Design Tokens / Variables --- */
:root {
    /* Brand Color Palette */
    --clr-bg-dark: hsl(218, 50%, 8%); /* Deep Space Blue Background */
    --clr-bg-dark-card: hsl(218, 40%, 12%);
    --clr-bg-dark-accent: hsl(218, 35%, 16%);
    
    --clr-bg-light: hsl(210, 25%, 97%); /* Premium Light off-white Background */
    --clr-bg-light-card: hsl(0, 0%, 100%);
    
    --clr-primary: hsl(214, 52%, 25%); /* Primary Navy Steel Blue (#1E3A5F) */
    --clr-primary-glow: hsl(214, 50%, 35%); /* Steel Blue Hover (#2C5282) */
    --clr-accent-cyan: hsl(187, 85%, 43%); /* Electric Cyan — Precision Tech (#0EB5BF) */
    --clr-accent-violet: hsl(265, 80%, 60%); /* Supporting Violet Accent */
    
    --clr-ok: hsl(162, 76%, 41%); /* Emerald Green OK State */
    --clr-ng: hsl(0, 84%, 60%); /* Vibrant Red NG State */
    
    /* Text Colors */
    --clr-text-light: hsl(210, 25%, 98%);
    --clr-text-light-dim: hsl(210, 15%, 75%);
    --clr-text-dark: hsl(214, 50%, 15%);
    --clr-text-dark-dim: hsl(214, 15%, 45%);
    
    /* Fonts — Be Vietnam Pro for headings (native Vietnamese), Inter for body/UI */
    --font-heading: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-premium: 0 20px 40px -15px rgba(30, 58, 95, 0.08);
    --shadow-glow-blue: 0 8px 30px rgba(30, 58, 95, 0.3);
    --shadow-glow-cyan: 0 8px 30px rgba(14, 181, 191, 0.35);
    
    /* Spacings */
    --container-max-width: 1240px;
    --header-height: 80px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--clr-text-dark);
    background-color: var(--clr-bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--clr-text-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul, ol {
    list-style: none;
}

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

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--clr-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--clr-bg-dark-accent);
    border-radius: 5px;
    border: 2px solid var(--clr-bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--clr-primary);
}

/* --- Utility Components --- */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(187, 85%, 43%), hsl(197, 80%, 38%)); /* Electric Cyan → Deep Cyan-Blue — technical precision */
    color: var(--clr-text-light);
    border: none;
    box-shadow: 0 4px 15px rgba(14, 181, 191, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-cyan); /* Cyan glowing shadow */
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--clr-primary);
    border: 1.5px solid var(--clr-primary);
}

.btn-secondary:hover {
    background: var(--clr-primary);
    color: var(--clr-text-light);
    border-color: var(--clr-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-blue);
}

/* Dark background variant */
.flagship-section .btn-secondary,
.contact-section .btn-secondary,
.main-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-light);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.flagship-section .btn-secondary:hover,
.contact-section .btn-secondary:hover,
.main-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-accent-cyan);
    border-color: var(--clr-accent-cyan);
}

.btn-block {
    width: 100%;
}

/* Button Glow Effects */
.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}
.btn-glow:hover::after {
    opacity: 1;
    left: 120%;
}

/* Section Header Styles */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-primary);
    margin-bottom: 14px;
}
.section-label::before {
    content: '';
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent-cyan));
}
.section-label.text-light-dim {
    color: var(--clr-accent-cyan);
}
.section-label.text-center {
    width: 100%;
    justify-content: center;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--clr-text-dark);
    letter-spacing: -0.4px;
    line-height: 1.22;
    margin-bottom: 16px;
}
.section-title.text-light {
    color: var(--clr-text-light);
}

.accent-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent-cyan));
    border-radius: 2px;
    margin-bottom: 24px;
}
.accent-line.center {
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    max-width: 700px;
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--clr-text-dark-dim);
    margin: 0 auto 50px auto;
}
.section-desc.text-light-dim {
    color: var(--clr-text-light-dim);
    margin-left: 0;
    margin-right: 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--clr-primary-glow), var(--clr-accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom SVGs & Brand Avatar Styling */
.hero-strip-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* Render crisp white in dark hero */
}

.badge-svg-icon {
    width: 24px;
    height: 24px;
    filter: invert(51%) sepia(82%) saturate(2685%) hue-rotate(11deg) brightness(101%) contrast(106%); /* Render official orange */
}

.value-svg-icon {
    width: 22px;
    height: 22px;
    filter: invert(16%) sepia(50%) saturate(1915%) hue-rotate(194deg) brightness(95%) contrast(92%); /* Render official navy steel blue */
}

.card-tag-svg {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1); /* Render crisp white */
}

/* Brand Avatar Badge on Introduction Photo */
.brand-avatar-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 70px;
    height: 70px;
    background-color: var(--clr-bg-light-card);
    border: 1px solid rgba(30, 58, 95, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: var(--shadow-premium);
    z-index: 5;
    animation: float 5s ease-in-out infinite;
}

.avatar-logo-mark {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ========================================================================
   HEADER & NAVIGATION
   ======================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(220, 225, 235, 0.45);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    border-bottom-color: rgba(220, 225, 235, 0.7);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
}

.main-logo {
    height: 40px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text-dark-dim);
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent-cyan));
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--clr-text-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--clr-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .btn {
    padding: 9px 22px;
    font-size: 14px;
}

/* Language switcher (VI | EN) — compact, never wraps the header */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 6px;
}

.lang-opt {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    min-width: 28px;
    color: var(--clr-text-dark-dim);
    padding: 5px 6px;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.lang-opt:hover {
    color: var(--clr-primary);
}

.lang-opt.active {
    color: #fff;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-cyan));
    box-shadow: 0 2px 8px rgba(14, 181, 191, 0.3);
}

.lang-sep {
    color: rgba(30, 58, 95, 0.25);
    font-size: 12px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--clr-text-dark);
    border-radius: 1px;
    transition: var(--transition-smooth);
}


/* ========================================================================
   MOBILE NAVIGATION DRAWER
   ======================================================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: var(--clr-bg-light-card);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    padding: 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.mobile-logo {
    height: 40px;
    object-fit: contain;
}

.close-menu {
    font-size: 32px;
    color: var(--clr-text-dark-dim);
    cursor: pointer;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--clr-text-dark-dim);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--clr-primary);
    padding-left: 8px;
}

.mobile-menu-footer {
    margin-top: auto;
}


/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    overflow: hidden;
}

/* Sci-fi tech grid background */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    pointer-events: none;
}

.grid-bg::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.grid-bg::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 181, 191, 0.12);
    border: 1px solid rgba(14, 181, 191, 0.35);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: hsl(187, 80%, 72%);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--clr-accent-cyan);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.5px;
    color: var(--clr-text-light);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--clr-text-light-dim);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions-row {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-features-strip {
    display: flex;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    width: 100%;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-feature-item .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 16px;
}

.hero-feature-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-text-light-dim);
}

/* Device mockup & floating badges */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    width: 100%;
    max-width: 560px;
    background: var(--clr-bg-dark-card);
    border: 6px solid var(--clr-bg-dark-accent);
    border-radius: 16px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}

.mockup-header {
    height: 24px;
    background: var(--clr-bg-dark-accent);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
}

.mockup-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.mockup-header .dot.red { background-color: var(--clr-ng); }
.mockup-header .dot.yellow { background-color: #ffcc00; }
.mockup-header .dot.green { background-color: var(--clr-ok); }

.mockup-body {
    position: relative;
    padding-top: 62.5%; /* 16:10 Aspect Ratio — landscape app */
    background: #0d121c;
}

.mockup-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0d121c;
}

.floating-badge {
    position: absolute;
    background: rgba(20, 26, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    z-index: 10;
}

.badge-top {
    top: 10%;
    left: -20px;
    animation: float 4s ease-in-out infinite;
}

.badge-bottom {
    bottom: 10%;
    right: -20px;
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}

.badge-icon {
    font-size: 22px;
}

.badge-text h4 {
    color: var(--clr-text-light);
    font-size: 14px;
    font-weight: 600;
}

.badge-text p {
    color: var(--clr-text-light-dim);
    font-size: 12px;
}


/* ========================================================================
   STORY / ABOUT US SECTION
   ======================================================================== */
.story-section {
    padding: 100px 0;
    background-color: var(--clr-bg-light-card);
}

.story-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.story-visual {
    position: relative;
}

.story-img {
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    width: 100%;
    object-fit: cover;
}

.story-stat-card {
    position: absolute;
    bottom: -30px;
    right: 20px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-cyan));
    color: var(--clr-text-light);
    border-radius: 16px;
    padding: 24px 30px;
    max-width: 320px;
    box-shadow: var(--shadow-glow-blue);
}

.story-stat-card h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--clr-text-light);
    margin-bottom: 8px;
}

.story-stat-card p {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.story-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.story-paragraph {
    font-size: 16px;
    line-height: 1.8;
    color: var(--clr-text-dark-dim);
    margin-bottom: 24px;
}

.story-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--clr-bg-light-card);
    border: 1px solid rgba(30, 58, 95, 0.10);
    border-radius: 14px;
    padding: 18px;
    transition: var(--transition-smooth);
}

.value-item:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 181, 191, 0.45);
    box-shadow: 0 12px 28px -12px rgba(30, 58, 95, 0.18);
}

.value-item:hover .value-icon {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-cyan));
}

.value-item:hover .value-svg-icon {
    filter: brightness(0) invert(1);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: hsl(215, 100%, 96%);
    border-radius: 10px;
    font-size: 20px;
}

.value-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.value-item p {
    font-size: 14.5px;
    color: var(--clr-text-dark-dim);
}


/* ========================================================================
   SOLUTIONS SECTION
   ======================================================================== */
.solutions-section {
    padding: 100px 0;
    background-color: var(--clr-bg-light);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.solution-card {
    background-color: var(--clr-bg-light-card);
    border-radius: 18px;
    box-shadow: 0 4px 20px -8px rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(220, 225, 235, 0.7);
    overflow: hidden;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px -16px rgba(14, 181, 191, 0.22), 0 8px 16px -6px rgba(30, 58, 95, 0.1);
    border-color: rgba(14, 181, 191, 0.5);
}

.card-img-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.solution-card:hover .card-img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(20, 26, 40, 0.6));
    pointer-events: none;
}

.card-body {
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-icon-tag {
    position: absolute;
    top: -24px;
    left: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--clr-primary);
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-cyan));
    color: var(--clr-text-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-glow-blue);
    border: 2px solid var(--clr-bg-light-card);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 10px;
}

.card-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--clr-text-dark-dim);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--clr-primary);
    display: inline-flex;
    align-items: center;
}

.card-link:hover {
    color: var(--clr-accent-cyan);
    padding-left: 5px;
}


/* ========================================================================
   FLAGSHIP SHOWCASE: 5S QA MANAGER
   ======================================================================== */
.flagship-section {
    padding: 100px 0;
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    position: relative;
}

.flagship-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    gap: 30px;
}

.flagship-header .header-text {
    max-width: 680px;
}

/* Browser window mockup container */
.dashboard-showcase {
    margin-bottom: 60px;
}

.browser-mockup {
    background: var(--clr-bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.browser-header {
    height: 40px;
    background: var(--clr-bg-dark-accent);
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-controls {
    display: flex;
    gap: 6px;
}

.browser-controls .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.browser-controls .dot.red { background-color: var(--clr-ng); }
.browser-controls .dot.yellow { background-color: #ffcc00; }
.browser-controls .dot.green { background-color: var(--clr-ok); }

.browser-address {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-size: 12px;
    color: var(--clr-text-light-dim);
    text-align: center;
    padding: 3px 0;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.browser-body {
    position: relative;
    padding-top: 55%; /* High-quality landscape OEE layout aspect */
    background: #090c12;
}

.dashboard-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tabs Component */
.product-tabs-container {
    background-color: var(--clr-bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 80px;
}

.tabs-nav {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 40px;
    overflow-x: auto;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    color: var(--clr-text-light-dim);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-bounce);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--clr-text-light);
    border-color: rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(14, 181, 191, 0.12), rgba(14, 181, 191, 0.05));
    color: var(--clr-accent-cyan);
    border-color: rgba(14, 181, 191, 0.3);
    box-shadow: 0 4px 20px rgba(14, 181, 191, 0.08);
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.tab-text h3 {
    font-size: 24px;
    color: var(--clr-text-light);
    margin-bottom: 16px;
}

.tab-text p {
    color: var(--clr-text-light-dim);
    font-size: 15.5px;
    margin-bottom: 24px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.features-list li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: var(--clr-text-light-dim);
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--clr-accent-cyan);
    font-weight: bold;
}

.features-list li strong {
    color: var(--clr-text-light);
}

.tab-visual {
    display: flex;
    justify-content: center;
}

.tab-img {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 320px;
    object-fit: contain;
}

/* Feature Badge grid on tab-2 */
.features-badge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.f-badge {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    font-weight: 600;
    color: var(--clr-text-light);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.f-badge:hover {
    border-color: var(--clr-primary);
    transform: scale(1.03);
    background: rgba(0, 122, 255, 0.05);
}

/* Pain Points / Compare Block */
.pain-points-block {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 80px;
}

.pain-points-block .block-title {
    font-size: 26px;
    margin-bottom: 40px;
    color: var(--clr-text-light); /* Fixed contrast bug */
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.compare-column {
    background-color: var(--clr-bg-dark-card);
    border-radius: 18px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.compare-column.pain-col {
    background: radial-gradient(120% 90% at 0% 0%, rgba(239, 68, 68, 0.08), transparent 55%), var(--clr-bg-dark-card);
    border-color: rgba(239, 68, 68, 0.18);
}

.compare-column.solution-col {
    background: radial-gradient(120% 90% at 0% 0%, rgba(52, 211, 153, 0.10), transparent 55%), linear-gradient(to bottom right, var(--clr-bg-dark-card), var(--clr-bg-dark-accent));
    border-color: rgba(52, 211, 153, 0.20);
}

/* Semantic header with a colored chip instead of a side bar */
.compare-column .col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--clr-text-light);
}

.compare-column.pain-col .col-title {
    color: hsl(0, 80%, 78%);
}

.compare-column.solution-col .col-title {
    color: hsl(162, 60%, 70%);
}

/* Tinted markers replace the old side bar as the semantic cue */
.compare-list li {
    position: relative;
    padding-left: 22px;
}

.compare-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pain-col .compare-list li::before {
    background: var(--clr-ng);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.solution-col .compare-list li::before {
    background: var(--clr-ok);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.compare-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compare-list li {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--clr-text-light-dim);
}

.compare-list li strong {
    color: var(--clr-text-light);
    display: block;
    margin-bottom: 4px;
}
/* Catalog Stats Showcase */
.catalog-stats-container {
    margin-top: -30px;
    margin-bottom: 70px;
}

.stats-grid-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--clr-text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition-bounce);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--clr-accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
    background: rgba(255, 131, 0, 0.04);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 850;
    color: var(--clr-accent-cyan); /* Orange Accent! */
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-title {
    font-size: 13.5px;
    color: var(--clr-text-light-dim);
    line-height: 1.4;
    font-weight: 500;
}

/* On-site Implementation Section */
.implementation-section {
    padding: 100px 0;
    background-color: var(--clr-bg-light-card);
    border-bottom: 1px solid rgba(220, 225, 235, 0.5);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-step {
    display: flex;
    gap: 30px;
    background-color: var(--clr-bg-light-card);
    border: 1px solid rgba(220, 225, 235, 0.7);
    border-radius: 18px;
    padding: 30px;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.04);
}

/* Vertical spine connecting the numbered nodes */
.timeline-step::after {
    content: '';
    position: absolute;
    left: 60px;
    bottom: -31px;
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, var(--clr-accent-cyan), rgba(14, 181, 191, 0.12));
    z-index: 0;
}

.timeline-step:last-child::after {
    display: none;
}

.timeline-step:hover {
    box-shadow: 0 12px 32px -8px rgba(14, 181, 191, 0.14), 0 4px 12px rgba(30, 58, 95, 0.06);
    border-color: rgba(14, 181, 191, 0.4);
    transform: translateY(-4px);
}

.timeline-step:hover .step-number {
    transform: scale(1.06);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--clr-text-light);
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-cyan));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow-blue);
    position: relative;
    z-index: 1;
    transition: var(--transition-bounce);
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--clr-text-dark);
}

.step-content p {
    font-size: 14.5px;
    color: var(--clr-text-dark-dim);
    line-height: 1.7;
}

/* Language Support Box */
.language-support-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-glow));
    color: var(--clr-text-light);
    border-radius: 16px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    box-shadow: var(--shadow-glow-blue);
}

.language-support-box h4 {
    color: var(--clr-text-light);
    font-size: 18px;
    margin-bottom: 8px;
}

.language-support-box p {
    color: var(--clr-text-light-dim);
    font-size: 14px;
    max-width: 500px;
    line-height: 1.5;
}

.lang-flags {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.flag-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.flag-icon {
    font-size: 18px;
}


/* ========================================================================
   STRENGTHS / WHY CHOOSE US
   ======================================================================== */
.strengths-section {
    padding: 100px 0;
    background-color: var(--clr-bg-light);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.strength-card {
    background-color: var(--clr-bg-light-card);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 4px 20px -8px rgba(30, 58, 95, 0.08);
    border: 1px solid rgba(220, 225, 235, 0.7);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.strength-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.strength-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px -10px rgba(14, 181, 191, 0.15), 0 6px 16px -4px rgba(30, 58, 95, 0.08);
    border-color: rgba(14, 181, 191, 0.4);
}

.strength-card:hover::before {
    transform: scaleX(1);
}

.strength-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: hsl(215, 100%, 96%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-bounce);
}

.strength-svg {
    width: 30px;
    height: 30px;
    filter: invert(36%) sepia(87%) saturate(2250%) hue-rotate(204deg) brightness(101%) contrast(105%);
    transition: var(--transition-smooth);
}

.strength-card:hover .strength-icon-wrapper {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-cyan));
    transform: rotate(-6deg) scale(1.05);
}

.strength-card:hover .strength-svg {
    filter: brightness(0) invert(1);
}

.strength-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
}

.strength-text {
    font-size: 14.5px;
    color: var(--clr-text-dark-dim);
}


/* ========================================================================
   CLIENTS SECTION
   ======================================================================== */
.clients-section {
    padding: 100px 0;
    background-color: var(--clr-bg-light-card);
    border-bottom: 1px solid rgba(220, 225, 235, 0.4);
}

.clients-marquee {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    margin-bottom: 50px;
}

.marquee-track {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.client-logo-card {
    flex: 1 1 160px;
    max-width: 180px;
    height: 120px;
    background-color: var(--clr-bg-light);
    border: 1px solid rgba(220, 225, 235, 0.5);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: var(--transition-bounce);
    cursor: pointer;
}

.client-img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: var(--transition-smooth);
    margin-bottom: 8px;
}

.client-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-text-dark-dim);
    transition: var(--transition-smooth);
    opacity: 0;
}

.client-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(0, 122, 255, 0.25);
    background-color: var(--clr-bg-light-card);
}

.client-logo-card:hover .client-img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo-card:hover .client-name {
    opacity: 1;
}

.client-cta {
    background: linear-gradient(135deg, rgba(14, 181, 191, 0.06), rgba(30, 58, 95, 0.05));
    border-radius: 18px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(14, 181, 191, 0.22);
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.05);
}

.cta-notice {
    font-size: 16px;
    font-weight: 600;
    color: var(--clr-text-dark);
}


/* ========================================================================
   CONTACT & FORM SECTION
   ======================================================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-desc {
    font-size: 16.5px;
    color: var(--clr-text-light-dim);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    width: 100%;
}

.detail-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    transition: var(--transition-smooth);
}

.detail-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(14, 181, 191, 0.35);
    transform: translateY(-2px);
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(14, 181, 191, 0.08);
    border: 1px solid rgba(14, 181, 191, 0.15);
    font-size: 18px;
    flex-shrink: 0;
}

.detail-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--clr-text-light);
    margin-bottom: 4px;
}

.detail-text p {
    font-size: 14.5px;
    color: var(--clr-text-light-dim);
}

.detail-text .phone-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-accent-cyan);
}

.company-legal-info {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    width: 100%;
}

.company-legal-info h4 {
    color: var(--clr-text-light);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.company-legal-info p {
    color: var(--clr-text-light-dim);
    font-size: 12px;
}

/* Contact Form UI */
.contact-form-area {
    width: 100%;
}

.form-card, .success-card {
    background-color: var(--clr-bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.form-title {
    font-size: 22px;
    color: var(--clr-text-light);
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 13.5px;
    color: var(--clr-text-light-dim);
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

/* Inline error banner shown when a submission fails */
.form-error-banner {
    display: none;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: hsl(0, 80%, 75%);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 18px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--clr-text-light-dim);
}

.form-group input,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--clr-text-light);
    font-size: 14.5px;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--clr-primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.15);
}

/* Success Card */
.success-card {
    text-align: center;
    animation: scaleIn 0.4s ease;
}

.success-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.success-card h3 {
    font-size: 24px;
    color: var(--clr-text-light);
    margin-bottom: 12px;
}

.success-card p {
    color: var(--clr-text-light-dim);
    font-size: 15px;
    margin-bottom: 30px;
}


/* ========================================================================
   FOOTER
   ======================================================================== */
.main-footer {
    background-color: hsl(220, 40%, 4%);
    color: var(--clr-text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-container {
    padding: 80px 0 50px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo {
    height: 44px;
    object-fit: contain;
}

.footer-brand p {
    color: var(--clr-text-light-dim);
    font-size: 15px;
    max-width: 320px;
}

.footer-links-col h4 {
    color: var(--clr-text-light);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a {
    font-size: 15px;
    color: var(--clr-text-light-dim);
}

.footer-links-col a:hover {
    color: var(--clr-accent-cyan);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 0;
    background-color: rgba(0, 0, 0, 0.15);
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14.5px;
    color: var(--clr-text-light-dim);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a:hover {
    color: var(--clr-accent-cyan);
}


/* ========================================================================
   MODAL POPUP
   ======================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background-color: var(--clr-bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 40px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-bounce);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--clr-text-light-dim);
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--clr-text-light);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-size: 22px;
    color: var(--clr-text-light);
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 13.5px;
    color: var(--clr-text-light-dim);
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-success {
    text-align: center;
    padding: 10px 0;
}

.modal-success h3 {
    font-size: 22px;
    color: var(--clr-text-light);
    margin-bottom: 12px;
}

.modal-success p {
    color: var(--clr-text-light-dim);
    font-size: 14px;
    margin-bottom: 24px;
}


/* ========================================================================
   KEYFRAME ANIMATIONS
   ======================================================================== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 181, 191, 0.4);
        transform: scale(0.95);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(14, 181, 191, 0);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(14, 181, 191, 0);
        transform: scale(0.95);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ======================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions-row {
        justify-content: center;
    }
    
    .hero-features-strip {
        justify-content: center;
    }
    
    .story-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .story-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .flagship-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .flagship-header .header-action {
        width: 100%;
    }
    
    .tab-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tab-visual {
        order: -1;
    }
    
    .compare-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .timeline-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .timeline-step::after {
        display: none;
    }
    
    .main-nav {
        display: none;
    }

    /* Hide header CTA on mobile — the drawer already provides one */
    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 14.5px;
    }
    
    .hero-actions-row {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions-row .btn {
        width: 100%;
    }
    
    .hero-features-strip {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .floating-badge {
        display: none; /* Hide floating badges on smaller screens */
    }
    
    .story-stat-card {
        position: relative;
        bottom: 0;
        right: 0;
        max-width: 100%;
        margin-top: 20px;
    }
    
    .product-tabs-container {
        padding: 24px;
    }
    
    .tabs-nav {
        gap: 8px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .features-badge-grid {
        grid-template-columns: 1fr;
    }
    
    .client-cta {
        padding: 24px;
        text-align: center;
        justify-content: center;
    }
    
    .client-cta .btn {
        width: 100%;
    }
    
    .form-card, .success-card {
        padding: 24px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================================================
   5SQA METRO INTERACTIVE DEMO / CLIP PLAYER STYLES
   ======================================================================== */

.browser-body {
    position: relative;
    background: #0b0f19;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 16/10;
    min-height: 480px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.tour-viewport {
    position: relative;
    flex-grow: 1;
    width: 100%;
    height: calc(100% - 64px); /* Subtract player bar height */
    overflow: hidden;
}

/* Screens System */
.tour-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    background: #0f172a;
    z-index: 5;
}

.tour-screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 10;
}

/* Screen Content Layout */
.screen-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Scale screenshot beautifully inside browser window */
    background: #090d16;
}

.screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

/* Floating Back Button */
.btn-back-metro {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    z-index: 25;
    pointer-events: auto;
}

.btn-back-metro:hover {
    background: #1e293b;
    border-color: var(--clr-accent-cyan);
    transform: translateX(-3px);
}

/* 1. Metro Grid Styles */
.metro-grid-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0f172a;
}

.metro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(30, 41, 59, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.metro-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.metro-logo-dot {
    width: 10px;
    height: 10px;
    background: var(--clr-accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-accent-cyan);
}

.metro-brand h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.metro-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--clr-text-light-dim);
}

.user-avatar {
    width: 26px;
    height: 26px;
    background: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    color: #ffffff;
}

.metro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Metro Tile Styles */
.metro-tile {
    position: relative;
    border-radius: 12px;
    padding: 20px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 110px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.metro-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 80%);
    opacity: 0.5;
    pointer-events: none;
}

.metro-tile .tile-icon {
    font-size: 28px;
    margin-bottom: auto;
    transition: var(--transition-bounce);
}

.metro-tile .tile-title {
    font-size: 15px;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: -0.2px;
    color: #ffffff;
}

.metro-tile .tile-desc {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    font-weight: 400;
}

/* Metro Tile Hover & Glows */
.metro-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.metro-tile:hover .tile-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* Tile Gradients */
.tile-orange { background: linear-gradient(135deg, #ff5500, #ff8c00); }
.tile-blue { background: linear-gradient(135deg, #0052d4, #4364f7); }
.tile-green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.tile-purple { background: linear-gradient(135deg, #6441a5, #2a0845); }
.tile-teal { background: linear-gradient(135deg, #008080, #00b4db); }
.tile-dark { background: linear-gradient(135deg, #1e293b, #0f172a); }

/* Glow Accents on Hover */
.tile-orange:hover { box-shadow: 0 8px 25px rgba(255, 85, 0, 0.35); }
.tile-blue:hover { box-shadow: 0 8px 25px rgba(67, 100, 247, 0.35); }
.tile-green:hover { box-shadow: 0 8px 25px rgba(56, 239, 125, 0.35); }
.tile-purple:hover { box-shadow: 0 8px 25px rgba(100, 65, 165, 0.35); }
.tile-teal:hover { box-shadow: 0 8px 25px rgba(0, 180, 219, 0.35); }

/* Virtual Cursor */
.mock-cursor {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 15l-4 4L7 7l12 4-4 4zm0 0l5 5"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1000;
    pointer-events: none;
    top: 60%;
    left: 80%;
    opacity: 0;
    transform: scale(1);
    transition: top 1.2s cubic-bezier(0.25, 1, 0.5, 1), left 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, transform 0.2s ease;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5));
}

.mock-cursor.visible {
    opacity: 1;
}

.mock-cursor.clicking {
    transform: scale(0.85);
}

/* Tooltip / Annotation styling */
.tour-annotation {
    position: absolute;
    display: flex;
    align-items: flex-start;
    pointer-events: auto;
    z-index: 30;
}

.note-pulse {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--clr-accent-cyan);
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 12px var(--clr-accent-cyan);
    flex-shrink: 0;
}

.note-pulse::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid var(--clr-accent-cyan);
    animation: pulse-ripple 2s infinite;
}

.note-text {
    width: 250px;
    background: rgba(11, 15, 25, 0.95);
    border: 1px solid rgba(14, 181, 191, 0.3);
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: #ffffff;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.note-left { flex-direction: row-reverse; }
.note-left .note-text { margin-right: 15px; }

.note-right { flex-direction: row; }
.note-right .note-text { margin-left: 15px; }

.note-center { flex-direction: column; align-items: center; }
.note-center .note-text { margin-top: 15px; }

/* Cascade Reveal Annotation on Active screen */
.tour-screen.active .tour-annotation .note-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.note-text h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--clr-accent-cyan);
    margin-bottom: 6px;
}

.note-text p {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--clr-text-light-dim);
}

/* Mock Detailed Screens (Request/Device/System) */
.mock-detailed-screen {
    width: 90%;
    height: 85%;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.mock-detailed-screen.bg-dark-theme {
    background: #070b13;
}

.mock-detailed-screen.bg-steel-theme {
    background: #111827;
}

.mock-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(30, 41, 59, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-screen-header h4 {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
}

.mock-screen-header .btn-back-metro {
    position: static;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 20px;
    padding: 0;
    cursor: pointer;
}

.mock-screen-header .btn-back-metro:hover {
    color: #ffffff;
    transform: none;
}

.mock-request-body, .mock-device-body, .mock-system-body {
    padding: 16px;
    flex-grow: 1;
    position: relative;
    overflow-y: auto;
}

/* Tables inside mock */
.mock-table-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.mock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
    color: rgba(255,255,255,0.8);
}

.mock-table th {
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mock-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mock-table tr.active-row {
    background: rgba(0, 168, 255, 0.08);
}

/* Badges inside mock */
.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.badge-warning { background: rgba(255, 152, 0, 0.15); color: #ff9800; border: 1px solid rgba(255, 152, 0, 0.3); }
.badge-success { background: rgba(76, 175, 80, 0.15); color: #4caf50; border: 1px solid rgba(76, 175, 80, 0.3); }
.badge-danger { background: rgba(244, 67, 54, 0.15); color: #f44336; border: 1px solid rgba(244, 67, 54, 0.3); }

/* Device Calibration Cards Grid */
.mock-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mock-device-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 14px;
    position: relative;
}

.mock-device-card.active { border-left: 3px solid var(--clr-ok); }
.mock-device-card.warning { border-left: 3px solid #ffeb3b; }

.mock-device-card h5 {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mock-device-card p {
    font-size: 10.5px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}

.status-ok { color: var(--clr-ok); font-weight: 600; }
.status-warn { color: #ffeb3b; font-weight: 600; }

/* System Role List */
.system-roles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-row {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.role-row strong {
    color: #ffffff;
}

/* 2. Player Control Bar */
.tour-player-bar {
    height: 64px;
    background: #090c14;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
    z-index: 50;
}

.btn-play-tour, .btn-stop-tour {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.btn-play-tour {
    background: linear-gradient(135deg, hsl(187, 85%, 43%), hsl(197, 80%, 38%));
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(14, 181, 191, 0.25);
}

.btn-play-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(14, 181, 191, 0.4);
}

.btn-stop-tour {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-stop-tour:hover {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.3);
}

.btn-play-tour .play-icon, .btn-stop-tour .stop-icon {
    font-size: 12px;
}

.tour-timeline {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 600px;
}

.timeline-progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--clr-accent-cyan), var(--clr-ok));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.t-step {
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0 4px;
}

.t-step:hover {
    color: #ffffff;
}

.t-step.active {
    color: var(--clr-accent-cyan);
    font-weight: 700;
}

/* Animations */
@keyframes pulse-ripple {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0.4; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Responsive tweaks for the clip mockup player */
@media (max-width: 992px) {
    .metro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
    
    .metro-tile {
        min-height: 90px;
        padding: 14px;
    }
    
    .metro-tile .tile-icon {
        font-size: 24px;
    }
    
    .metro-tile .tile-title {
        font-size: 13.5px;
    }
    
    .mock-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .mock-detailed-screen {
        height: 90%;
    }
}

@media (max-width: 768px) {
    .browser-body {
        aspect-ratio: auto;
        min-height: 520px;
    }
    
    .tour-player-bar {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 12px;
    }
    
    .btn-play-tour, .btn-stop-tour {
        width: 100%;
    }
    
    .tour-timeline {
        width: 100%;
        max-width: 100%;
    }
    
    .tour-annotation {
        width: 90%;
        left: 5% !important;
        right: auto !important;
    }
    
    .note-text {
        width: 100%;
    }
    
    .note-left { flex-direction: column; align-items: center; }
    .note-left .note-text { margin-right: 0; margin-top: 8px; }
    
    .note-right { flex-direction: column; align-items: center; }
    .note-right .note-text { margin-left: 0; margin-top: 8px; }
    
    .metro-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .metro-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .metro-header {
        padding: 10px 14px;
    }
    
    .metro-tile {
        min-height: 80px;
    }
}

/* --- New Modular Section Styling --- */
.flagship-demo-section {
    padding: 100px 0;
    background-color: hsl(220, 40%, 3%); /* Sci-fi Deep Space Black background */
    color: var(--clr-text-light);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.flagship-details-section {
    padding: 100px 0;
    background-color: var(--clr-bg-light); /* Clean modern light background */
}

/* --- Hardware Accelerated Scroll Reveal System --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delayed reveals for staggered animations */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }



/* ========================================================================
   MEASUREMENT WORKFLOW (6 STEPS) & OFFLINE ANALYSIS
   ======================================================================== */
.measure-flow-section {
    padding: 100px 0;
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
}

/* Keep this centered header's description centered (override the left-aligned
   .section-desc.text-light-dim margins used by the flagship header). */
.measure-flow-section .section-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.flow-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
}

.flow-step {
    flex: 1 1 0;
    min-width: 150px;
    max-width: 205px;
    background: var(--clr-bg-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 24px 18px;
    transition: var(--transition-smooth);
}

.flow-step:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 181, 191, 0.4);
    box-shadow: 0 16px 34px -16px rgba(14, 181, 191, 0.35);
}

.flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-cyan));
    margin-bottom: 14px;
}

.flow-step h4 {
    color: var(--clr-text-light);
    font-size: 15.5px;
    margin-bottom: 8px;
    line-height: 1.35;
}

.flow-step p {
    color: var(--clr-text-light-dim);
    font-size: 13px;
    line-height: 1.55;
}

.flow-arrow {
    align-self: center;
    flex: 0 0 auto;
    color: var(--clr-accent-cyan);
    font-size: 22px;
    font-weight: 700;
}

.offline-analysis {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(14, 181, 191, 0.07), rgba(30, 58, 95, 0.06));
    border: 1px solid rgba(14, 181, 191, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.offline-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--clr-accent-cyan);
    margin-bottom: 12px;
}

.offline-head h3 {
    color: var(--clr-text-light);
    font-size: 22px;
    margin-bottom: 12px;
}

.offline-head p {
    color: var(--clr-text-light-dim);
    font-size: 14.5px;
    line-height: 1.6;
}

.offline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offline-list li {
    position: relative;
    padding-left: 30px;
    color: var(--clr-text-light-dim);
    font-size: 14.5px;
    line-height: 1.6;
}

.offline-list li::before {
    content: '\1F4C2';
    position: absolute;
    left: 0;
    top: 0;
}

.offline-list li strong {
    color: var(--clr-text-light);
}

/* --- Responsive for the new sections --- */
@media (max-width: 992px) {
    .offline-analysis {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .flow-steps {
        flex-direction: column;
        align-items: stretch;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .flow-step {
        max-width: 100%;
    }
    .flow-arrow {
        transform: rotate(90deg);
        align-self: center;
    }
    .offline-analysis {
        padding: 28px;
    }
}
