/* ============================================
   PulseMQ Website — Clean Premium SaaS Theme
   ============================================ */

/* --- Design Tokens (Dark Theme) --- */
:root {
    --bg-white: #141422;
    --bg-light: #1a1a2e;
    --bg-muted: #1e1e32;
    --bg-dark: #0a0a16;
    --bg-dark-secondary: #12121f;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
    --accent-light: #38bdf8;
    --accent-bg: rgba(14,165,233,0.08);
    --accent-gradient: linear-gradient(135deg, #0ea5e9, #6366f1);
    --text-heading: #f1f5f9;
    --text-body: #c8d0da;
    --text-muted: #8892a4;
    --text-light: #64748b;
    --text-on-dark: #f1f5f9;
    --text-on-dark-muted: #94a3b8;
    --border: #2a2a3e;
    --border-light: #1e1e32;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.3), 0 8px 10px -6px rgba(0,0,0,0.2);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.5);
    --shadow-screenshot: 0 20px 60px -10px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    --transition: 0.2s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; image-rendering: -webkit-optimize-contrast; }
ul { list-style: none; }
address { font-style: normal; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
    background: rgba(56, 189, 248, 0.08);
}

.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 0;
    background: rgba(10, 10, 22, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
    background: rgba(10, 10, 22, 0.95);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo { display: flex; align-items: center; }
.logo-svg { display: block; }
.logo-svg-text {
    fill: var(--text-heading);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 28px;
}
.pulse-line {
    stroke: var(--accent) !important;
    stroke-width: 3.5;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links .btn { font-size: 0.88rem; padding: 10px 22px; }

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    position: relative;
}
.mobile-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* --- Beta Banner --- */
.beta-banner {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 10px 0;
    margin-top: 64px;
    text-align: center;
    font-size: 0.88rem;
}
.beta-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.beta-banner-badge {
    background: var(--accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.beta-banner-text { color: var(--text-on-dark-muted); }
.beta-banner-text strong { color: #fff; }
.beta-banner-link {
    color: var(--accent-light);
    font-weight: 600;
}
.beta-banner-link:hover { color: #fff; }

/* --- Section Spacing & Titles --- */
section { padding: 96px 0; }

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
    line-height: 1.6;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   HERO SECTION — Dark with Screenshot
   ============================================= */
.hero {
    background: var(--bg-dark);
    padding: 48px 0 0;
    position: relative;
    overflow: hidden;
}

/* Subtle grid texture on hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content { max-width: 800px; margin-bottom: 48px; }

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero .gradient-text {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-on-dark-muted);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
/* btn-outline is already white-on-dark globally */

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 48px;
}
.stat { text-align: center; }
.stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--text-on-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero screenshot showcase */
.hero-image {
    width: 100%;
    max-width: 1000px;
}

.slideshow-container { position: relative; }

.slideshow-frame {
    background: var(--bg-dark-secondary);
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.3);
}
.slideshow-frame:hover { transform: translateY(-2px); }

.slideshow-frame::before {
    content: '';
    display: block;
    height: 36px;
    background: #1a1f2e;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}
.slideshow-frame::after {
    content: '● ● ●';
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 10px;
    letter-spacing: 6px;
    color: rgba(255,255,255,0.15);
}

.slides { position: relative; }
.slide {
    display: none;
    width: 100%;
}
.slide.active { display: block; }

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 8px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
}
.dot.active {
    background: var(--accent-light);
    width: 24px;
    border-radius: 4px;
}

/* =============================================
   HERO EYEBROW
   ============================================= */
.hero-eyebrow {
    display: inline-block;
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

/* =============================================
   ARTICLE / BLOG PAGES
   ============================================= */
.article-section {
    padding: 60px 0 80px;
}
.article-breadcrumb {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 24px;
}
.article-breadcrumb a { color: var(--accent); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 24px;
}
.article-header h1 {
    font-size: 2.2rem;
    color: #f1f5f9;
    line-height: 1.3;
    margin-bottom: 12px;
}
.article-meta {
    font-size: 0.8rem;
    color: #64748b;
}
.article-body {
    max-width: 760px;
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 1rem;
}
.article-body h2 {
    color: #f1f5f9;
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 16px;
}
.article-body h3 {
    color: #e2e8f0;
    font-size: 1.15rem;
    margin-top: 32px;
    margin-bottom: 12px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: #f1f5f9; }
.article-body code {
    background: rgba(14,165,233,0.1);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
}
.article-body th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(14,165,233,0.08);
    color: #f1f5f9;
    font-weight: 600;
    border-bottom: 2px solid rgba(14,165,233,0.2);
}
.article-body td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #cbd5e1;
}
.article-body tr:hover td { background: rgba(255,255,255,0.02); }
.article-formula {
    background: rgba(14,165,233,0.06);
    border: 1px solid rgba(14,165,233,0.15);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
    text-align: center;
    font-size: 1.1rem;
    color: #f1f5f9;
    font-weight: 600;
}
.article-cta {
    margin-top: 48px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: rgba(14,165,233,0.06);
    border: 1px solid rgba(14,165,233,0.15);
    text-align: center;
}
.article-cta h3 { color: #f1f5f9; margin-bottom: 12px; }
.article-cta p { color: #94a3b8; margin-bottom: 16px; }
@media (max-width: 768px) {
    .article-section { padding: 32px 0 48px; }
    .article-header h1 { font-size: 1.6rem; }
    .article-body { font-size: 0.95rem; }
    .article-body table { font-size: 0.8rem; }
    .article-body th, .article-body td { padding: 8px 10px; }
}

/* =============================================
   HERO MICRO LINE
   ============================================= */
.hero-micro {
    color: #94a3b8;
    font-size: 0.95rem;
    font-style: italic;
    margin-top: -8px;
    margin-bottom: 24px;
}
.hero-micro strong { color: #e2e8f0; font-style: normal; }

/* =============================================
   HERO STORY FLOW (Visual Comic Strip)
   ============================================= */
.story-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 32px;
    padding: 0 8px;
}

/* --- Story Steps --- */
.story-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    width: 150px;
}

.story-step-hero { width: 180px; }

.story-step-machines {
    width: 220px;
}

.story-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}
.story-icon:hover { transform: translateY(-4px); }

.story-icon-customer {
    background: rgba(139,92,246,0.08);
    border: 1.5px solid rgba(139,92,246,0.25);
}
.story-icon-office {
    background: rgba(56,189,248,0.08);
    border: 1.5px solid rgba(56,189,248,0.25);
}
.story-icon-pulsemq {
    background: rgba(16,185,129,0.08);
    border: 2px solid rgba(16,185,129,0.35);
    width: 90px;
    height: 90px;
    border-radius: 24px;
}

.story-pulsemq-glow {
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    background: radial-gradient(circle, rgba(16,185,129,0.2), transparent 70%);
    filter: blur(16px);
    z-index: -1;
    animation: story-glow 3s ease-in-out infinite;
}
@keyframes story-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.story-label {
    font-size: 0.82rem;
    color: var(--text-on-dark-muted);
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
}
.story-label-hero {
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
}

.story-sublabels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}
.story-sublabels span {
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.12);
}

/* --- Arrows --- */
.story-arrow {
    position: relative;
    width: 50px;
    height: 4px;
    margin-top: 40px;
    flex-shrink: 0;
}
.story-arrow-line {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(16,185,129,0.2), rgba(255,255,255,0.05));
}
.story-arrow-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16,185,129,0.7);
    animation: story-travel 2s linear infinite;
}
.story-dot-b { animation-delay: 1s; }
@keyframes story-travel {
    0% { left: -6px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% + 6px); opacity: 0; }
}

/* --- Machine Cards in Story --- */
.story-machines-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.story-machine {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(14,165,233,0.04);
    border: 1px solid rgba(14,165,233,0.12);
    transition: all 0.2s ease;
}
.story-machine:hover {
    background: rgba(14,165,233,0.08);
    border-color: rgba(14,165,233,0.25);
}

.story-machine svg { color: #38bdf8; flex-shrink: 0; opacity: 0.6; }

.story-machine-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.story-machine-dot.running {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16,185,129,0.6);
    animation: story-dot-pulse 2s ease-in-out infinite;
}
.story-machine-dot.down {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239,68,68,0.5);
    animation: story-dot-pulse-red 1.5s ease-in-out infinite;
}
@keyframes story-dot-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(16,185,129,0.6); }
    50% { box-shadow: 0 0 14px rgba(16,185,129,0.9); }
}
@keyframes story-dot-pulse-red {
    0%, 100% { box-shadow: 0 0 6px rgba(239,68,68,0.5); }
    50% { box-shadow: 0 0 12px rgba(239,68,68,0.8); }
}

.story-machine-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.story-machine-info strong {
    font-size: 0.78rem;
    color: var(--text-heading);
    font-weight: 600;
}
.story-machine-info span {
    font-size: 0.65rem;
    font-weight: 500;
}
.story-machine-info .running-text { color: #10b981; }
.story-machine-info .down-text { color: #ef4444; }

/* --- Value Props Row --- */
.story-values {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.story-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    font-weight: 500;
}
.story-value svg { flex-shrink: 0; }

/* --- Story Flow Sequential Animation --- */
/*
   8s total loop:
   0.0s - Customer appears
   0.8s - Arrow 1 appears
   1.4s - Office appears
   2.2s - Arrow 2 appears
   3.0s - PulseMQ glows in (hero moment)
   4.0s - Arrow 3 appears
   4.6s - Machines light up
   5.5s - All fully visible, hold
   6.5s - Everything fades out
   7.5s - Pause
   8.0s - Loop restart
*/
.story-animate .story-s1,
.story-animate .story-s2,
.story-animate .story-s3,
.story-animate .story-s4,
.story-animate .story-s5,
.story-animate .story-s6,
.story-animate .story-s7 {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
}

.story-animate .story-s1 { animation: story-step-in 8s ease infinite 0s; }
.story-animate .story-s2 { animation: story-arrow-in 8s ease infinite 0.6s; }
.story-animate .story-s3 { animation: story-step-in 8s ease infinite 1.2s; }
.story-animate .story-s4 { animation: story-arrow-in 8s ease infinite 2.0s; }
.story-animate .story-s5 { animation: story-hero-in 8s ease infinite 2.8s; }
.story-animate .story-s6 { animation: story-arrow-in 8s ease infinite 3.8s; }
.story-animate .story-s7 { animation: story-step-in 8s ease infinite 4.4s; }

/* Steps fade up + scale in */
@keyframes story-step-in {
    0% { opacity: 0; transform: translateY(12px) scale(0.95); }
    6% { opacity: 1; transform: translateY(0) scale(1); }
    68% { opacity: 1; transform: translateY(0) scale(1); }
    80% { opacity: 0; transform: translateY(-6px) scale(0.98); }
    100% { opacity: 0; transform: translateY(12px) scale(0.95); }
}

/* Arrows fade in (no vertical movement) */
@keyframes story-arrow-in {
    0% { opacity: 0; transform: translateY(0) scaleX(0.3); }
    6% { opacity: 1; transform: translateY(0) scaleX(1); }
    68% { opacity: 1; transform: translateY(0) scaleX(1); }
    80% { opacity: 0; transform: translateY(0) scaleX(0.3); }
    100% { opacity: 0; transform: translateY(0) scaleX(0.3); }
}

/* PulseMQ hero moment — bigger entrance + glow pulse */
@keyframes story-hero-in {
    0% { opacity: 0; transform: translateY(16px) scale(0.85); }
    5% { opacity: 1; transform: translateY(-4px) scale(1.05); }
    9% { opacity: 1; transform: translateY(0) scale(1); }
    68% { opacity: 1; transform: translateY(0) scale(1); }
    80% { opacity: 0; transform: translateY(-6px) scale(0.98); }
    100% { opacity: 0; transform: translateY(16px) scale(0.85); }
}

/* When PulseMQ step is visible, pulse the glow harder */
.story-animate .story-s5 .story-pulsemq-glow {
    animation: story-glow-hero 8s ease infinite 2.8s;
}
@keyframes story-glow-hero {
    0%, 4% { opacity: 0; filter: blur(16px); }
    8% { opacity: 1; filter: blur(24px); }
    12% { opacity: 0.6; filter: blur(16px); }
    68% { opacity: 0.6; filter: blur(16px); }
    80% { opacity: 0; }
    100% { opacity: 0; }
}

/* Machines light up one by one within step 7 */
.story-animate .story-s7 .story-machine:nth-child(1) { animation: story-machine-pop 8s ease infinite 4.4s; }
.story-animate .story-s7 .story-machine:nth-child(2) { animation: story-machine-pop 8s ease infinite 4.7s; }
.story-animate .story-s7 .story-machine:nth-child(3) { animation: story-machine-pop 8s ease infinite 5.0s; }

@keyframes story-machine-pop {
    0% { opacity: 0; transform: translateX(10px); }
    4% { opacity: 1; transform: translateX(-2px); }
    6% { opacity: 1; transform: translateX(0); }
    62% { opacity: 1; transform: translateX(0); }
    74% { opacity: 0; transform: translateX(5px); }
    100% { opacity: 0; transform: translateX(10px); }
}

/* Pause the constant arrow dot animations until step is visible */
.story-animate .story-arrow-dot {
    animation: none;
}
.story-animate .story-s2 .story-arrow-dot,
.story-animate .story-s4 .story-arrow-dot,
.story-animate .story-s6 .story-arrow-dot {
    animation: story-travel 1.8s linear infinite;
}

/* --- Story Flow Responsive --- */
@media (max-width: 900px) {
    .story-flow {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        max-width: 300px;
        margin: 0 auto 24px;
    }
    .story-step, .story-step-hero, .story-step-machines { width: 100%; max-width: 280px; }
    .story-arrow {
        width: 4px;
        height: 36px;
        margin-top: 0;
    }
    .story-arrow-line {
        background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(16,185,129,0.2), rgba(255,255,255,0.05));
    }
    .story-arrow-dot {
        left: 50% !important;
        transform: translateX(-50%);
        animation: story-travel-v 2s linear infinite;
    }
    @keyframes story-travel-v {
        0% { top: -6px; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: calc(100% + 6px); opacity: 0; }
    }
    .story-values { flex-direction: column; gap: 10px; align-items: flex-start; padding: 0 20px; }
}

@media (max-width: 480px) {
    .story-icon { width: 64px; height: 64px; border-radius: 16px; }
    .story-icon svg { width: 36px; height: 36px; }
    .story-icon-pulsemq { width: 72px; height: 72px; }
    .story-label { font-size: 0.75rem; }
}

/* =============================================
   PAIN SECTION
   ============================================= */
.pain-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0c1222 100%);
}
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 40px auto 0;
}
.pain-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.pain-icon { font-size: 1.5rem; flex-shrink: 0; }
.pain-item p { margin: 0; color: #cbd5e1; font-size: 0.95rem; }
.pain-closing {
    text-align: center;
    margin-top: 40px;
    color: #94a3b8;
    font-size: 1rem;
    font-style: italic;
}
@media (max-width: 768px) {
    .pain-section { padding: 48px 0; }
    .pain-grid { grid-template-columns: 1fr; }
}

/* =============================================
   BEFORE / AFTER SECTION
   ============================================= */
.before-after-section { padding: 80px 0; background: var(--bg-white); }
.before-after-table {
    max-width: 700px;
    margin: 40px auto 0;
}
.ba-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}
.ba-row:last-child { border-bottom: none; }
.ba-header { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 2px solid var(--border-light); padding-bottom: 12px; }
.ba-before { color: #94a3b8; }
.ba-after { color: var(--accent); font-weight: 600; }
.ba-arrow { text-align: center; color: var(--accent); font-size: 1.2rem; }
.ba-header .ba-before { color: #ef4444; }
.ba-header .ba-after { color: #10b981; }
@media (max-width: 768px) {
    .before-after-section { padding: 48px 0; }
    .ba-row { font-size: 0.85rem; }
}

/* =============================================
   SPEED TO VALUE SECTION
   ============================================= */
.speed-section { padding: 80px 0; background: var(--bg-dark); }
.speed-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 40px auto 0;
    flex-wrap: wrap;
}
.speed-item {
    text-align: center;
    color: #e2e8f0;
}
.speed-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.speed-item strong { font-size: 1rem; }
.speed-closing {
    text-align: center;
    margin-top: 32px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
}
@media (max-width: 768px) {
    .speed-section { padding: 48px 0; }
    .speed-grid { gap: 24px; }
}

/* =============================================
   ENTRY OFFER SECTION
   ============================================= */
.entry-offer-section { padding: 80px 0; background: var(--bg-white); }
.entry-offer-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    border: 2px solid var(--accent);
    box-shadow: 0 0 40px rgba(14,165,233,0.08);
}
.entry-offer-box h2 { font-size: 1.6rem; margin-bottom: 12px; }
.entry-offer-box p { color: var(--text-muted); margin-bottom: 20px; }
.entry-offer-steps { display: flex; flex-direction: column; gap: 12px; text-align: left; max-width: 320px; margin: 0 auto; }
.entry-step { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 500; }
.entry-check { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
@media (max-width: 768px) {
    .entry-offer-section { padding: 48px 0; }
    .entry-offer-box { padding: 32px 24px; }
}

/* =============================================
   AI DIFFERENTIATION SECTION
   ============================================= */
.ai-diff-section { padding: 80px 0; background: var(--bg-dark); }
.ai-diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 40px auto 0;
}
.ai-diff-item {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.ai-diff-icon { color: var(--accent); margin-bottom: 16px; }
.ai-diff-item h3 { color: #f1f5f9; font-size: 1.1rem; margin-bottom: 8px; }
.ai-diff-item p { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; }
@media (max-width: 768px) {
    .ai-diff-section { padding: 48px 0; }
    .ai-diff-grid { grid-template-columns: 1fr; }
}

/* =============================================
   COLLAPSIBLE MODULES
   ============================================= */
.modules-collapsed .module-card:nth-child(n+4) { display: none; }
.modules-expand-btn { cursor: pointer; }

/* =============================================
   BLOG SECTION (stub)
   ============================================= */
.blog-section { padding: 80px 0; background: var(--bg-dark); }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.blog-card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition);
}
.blog-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.blog-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(14,165,233,0.1);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-card h3 { color: #f1f5f9; font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.blog-card p { color: #94a3b8; font-size: 0.85rem; line-height: 1.6; }
@media (max-width: 768px) {
    .blog-section { padding: 48px 0; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* =============================================
   MONEY SECTION
   ============================================= */
.money-section { padding: 80px 0; background: var(--bg-white); }
.money-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 40px auto 0;
    flex-wrap: wrap;
}
.money-item { text-align: center; }
.money-icon { font-size: 2rem; margin-bottom: 8px; display: block; color: var(--accent); }
.money-item strong { font-size: 1rem; }
.money-closing {
    text-align: center;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}
@media (max-width: 768px) {
    .money-section { padding: 48px 0; }
    .money-grid { gap: 24px; }
}

/* =============================================
   WHAT IS PULSEMQ — Light
   ============================================= */
.what-is {
    background: var(--bg-white);
}

.what-is-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.what-is-item {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.what-is-item:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.what-is-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.what-is-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.what-is-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =============================================
   MODULES SECTION — Ignition-style cards
   ============================================= */
.modules-section {
    background: var(--bg-light);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.module-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    align-items: flex-start;
}
.module-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    transform: translateY(-2px);
    color: inherit;
}

.module-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--accent);
}
.module-icon svg {
    width: 44px;
    height: 44px;
    stroke-width: 0;
}

/* Color-coded module icons */
.module-icon-oee { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.module-icon-schedule { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.module-icon-batch { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.module-icon-maint { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.module-icon-material { background: rgba(234, 179, 8, 0.12); color: #eab308; }
.module-icon-trend { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.module-icon-reports { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.module-icon-alarms { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.module-icon-mqtt { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }

.module-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.module-info p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 10px;
}

.module-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    transition: color var(--transition);
}
.module-card:hover .module-link {
    color: var(--accent-dark);
}

/* =============================================
   STANDARDS SECTION
   ============================================= */
.standards-section {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 100px 0;
}
.standards-section .section-title { color: #f1f5f9; }
.standards-section .section-subtitle { color: var(--text-on-dark-muted); }

/* Top row: 3 ISA standard cards */
.standards-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.standard-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.standard-card:hover {
    transform: translateY(-8px);
    border-color: rgba(148, 163, 184, 0.25);
}
/* Color-coded glow per standard */
.standard-card-isa88:hover  { box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.3); }
.standard-card-isa95:hover  { box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.3); }
.standard-card-isa106:hover { box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.3); }

.standard-card-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
}
.standard-card-isa88 .standard-card-icon  { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.standard-card-isa95 .standard-card-icon  { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.standard-card-isa106 .standard-card-icon { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

.standard-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.standard-card-isa88 .standard-card-title  { color: #60a5fa; }
.standard-card-isa95 .standard-card-title  { color: #34d399; }
.standard-card-isa106 .standard-card-title { color: #c084fc; }

.standard-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 16px;
}

.standard-card-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.standard-card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}
.standard-card-link:hover { color: #fff; }

/* Bottom row: 3 small badges */
.standards-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.standard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 28px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
}
.standard-item:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 15px 30px -10px rgba(14, 165, 233, 0.2);
}

.standard-badge {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.standard-label {
    font-size: 0.75rem;
    color: var(--text-on-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   INDUSTRIES SECTION
   ============================================= */
.industries-section {
    background: var(--bg-light);
    padding: 72px 0;
}

.industries-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 150px;
    transition: all var(--transition);
}
.industry-item:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.industry-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
}
.industry-icon svg {
    width: 32px;
    height: 32px;
}

.industry-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    text-align: center;
}

/* =============================================
   WHY PULSEMQ — Light
   ============================================= */
.why-pulsemq {
    background: var(--bg-white);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.trust-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.trust-item:hover {
    background: var(--bg-light);
}

.trust-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: var(--radius-md);
}
.trust-icon svg { width: 28px; height: 28px; }
.trust-icon.ohio-map { background: none; }
.trust-icon.ohio-map svg { width: 56px; height: 56px; }

.trust-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}
.trust-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =============================================
   ROLE SECTION — Light Gray
   ============================================= */
.role-section {
    background: var(--bg-light);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.role-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.role-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-2px);
}

.role-icon {
    font-size: 1.6rem;
    margin-bottom: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.role-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.role-tagline {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.role-benefits {
    list-style: none;
}
.role-benefits li {
    padding: 5px 0;
    font-size: 0.88rem;
    color: var(--text-body);
    position: relative;
    padding-left: 20px;
}
.role-benefits li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 12px;
}

/* =============================================
   DEPLOYMENT — White
   ============================================= */
.deployment {
    background: var(--bg-white);
}

.deployment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.deployment-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    transition: all var(--transition);
}
.deployment-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.deployment-card.cloud {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.deployment-badge {
    position: absolute;
    top: -12px;
    left: 32px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deployment-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.deployment-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.deployment-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.deployment-features {
    margin-bottom: 28px;
}
.deployment-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 10px;
}
.deployment-features .check {
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.deployment-price {
    margin-bottom: 20px;
}
.deployment-price .from {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.deployment-price .amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-heading);
}
.deployment-price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.deployment-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

/* =============================================
   PLATFORM HIGHLIGHTS — Light Gray
   ============================================= */
.platform-highlights {
    background: var(--bg-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.highlight-item {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}
.highlight-item:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.highlight-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.highlight-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
}
.highlight-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Tech Details */
.tech-details-toggle {
    text-align: center;
    margin-top: 16px;
}
.tech-details-toggle button {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.tech-details-toggle button:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.tech-details-toggle button.active {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
}
.toggle-icon {
    display: inline-block;
    margin-right: 4px;
    font-weight: 700;
}

.tech-details-section {
    margin-top: 40px;
}
.tech-details-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 32px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.tech-item {
    background: var(--bg-white);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.tech-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}
.tech-item ul { list-style: none; }
.tech-item li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}
.tech-item li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* =============================================
   SCREENSHOTS — White
   ============================================= */
.screenshots {
    background: var(--bg-white);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 28px;
}

.screenshot-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.screenshot-item:hover {
    box-shadow: var(--shadow-xl);
    border-color: transparent;
    transform: translateY(-3px);
}

.screenshot-image {
    overflow: hidden;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-muted);
}
.screenshot-image img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.screenshot-item:hover .screenshot-image img {
    transform: scale(1.03);
}

.screenshot-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    padding: 16px 20px 4px;
}
.screenshot-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0 20px 16px;
    line-height: 1.5;
}

/* =============================================
   PRICING — Light Gray
   ============================================= */
.pricing {
    background: var(--bg-light);
}

.pricing-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition);
}
.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.pricing-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}
.pricing-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}
.pricing-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.price .from {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    vertical-align: top;
}
.price .amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}
.price .period {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 24px;
}
.pricing-features li {
    padding: 5px 0;
    font-size: 0.88rem;
    color: var(--text-body);
    display: flex;
    gap: 10px;
}
.pricing-features .check {
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-beta-cta {
    text-align: center;
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.pricing-beta-cta p {
    margin-bottom: 16px;
    color: var(--text-body);
}

.pricing-note {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* =============================================
   CONTACT — White
   ============================================= */
.contact {
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}
.contact-item:last-child { border-bottom: none; }

.contact-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
}

.contact-details h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2px;
}
.contact-details a {
    font-size: 0.95rem;
    font-weight: 600;
}
.contact-details p, .contact-hours, .contact-note {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-body);
    background: var(--bg-white);
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.form-group textarea { resize: vertical; }

.form-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

/* =============================================
   CTA — Dark
   ============================================= */
.cta {
    background: var(--bg-dark);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(14,165,233,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.cta .container { position: relative; z-index: 1; }
.cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.cta p {
    color: var(--text-on-dark-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark-muted);
    padding: 64px 0 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-on-dark-muted);
    font-size: 0.88rem;
    margin: 12px 0;
}
.footer-address {
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
}
.footer-address a { color: var(--accent-light); }

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    color: var(--text-on-dark-muted);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: var(--text-on-dark-muted);
    font-size: 0.88rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.trust-badge span {
    font-size: 0.8rem;
    color: var(--text-on-dark-muted);
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active { opacity: 1; }

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 16px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.2s;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-content { text-align: center; }
.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-2xl);
}

.lightbox-info {
    padding: 16px 0;
}
.lightbox-title {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
}
.lightbox-description {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    max-width: 500px;
    margin: 4px auto 0;
}

.lightbox-dots {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.2s;
}
.lightbox-dot.active { background: var(--accent); }

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* =============================================
   FEATURES PAGE
   ============================================= */
.features-hero {
    background: var(--bg-dark);
    padding: 140px 0 80px;
    text-align: center;
}
.features-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.features-hero .hero-subtitle {
    color: var(--text-on-dark-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 64px 0;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.feature-card li {
    font-size: 0.88rem;
    color: var(--text-body);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}
.feature-card li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 12px;
}

.feature-icon svg {
    color: var(--accent);
}

/* =============================================
   MODULE DETAIL PAGE (features.html)
   ============================================= */
.module-details-page {}

.module-detail {
    padding: 72px 0;
    background: var(--bg-white);
}
.module-detail.alt {
    background: var(--bg-light);
}

.module-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}
.module-detail-header .module-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
}
.module-detail-header .module-icon svg {
    width: 48px;
    height: 48px;
}
.module-detail-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 2px;
}
.module-detail-tagline {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.module-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.module-detail-grid.reverse {
    direction: rtl;
}
.module-detail-grid.reverse > * {
    direction: ltr;
}

.module-detail-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 20px;
}
.module-detail-content ul {
    list-style: none;
}
.module-detail-content li {
    font-size: 0.9rem;
    color: var(--text-body);
    padding: 5px 0;
    padding-left: 22px;
    position: relative;
}
.module-detail-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 0.85rem;
}

.module-detail-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.additional-modules {
    background: var(--bg-white);
    padding: 80px 0;
}

/* =============================================
   PRICING PAGE
   ============================================= */
.pricing-hero {
    background: var(--bg-dark);
    padding: 140px 0 80px;
    text-align: center;
}
.pricing-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.pricing-hero .hero-subtitle {
    color: var(--text-on-dark-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Pricing — Tailored layout */
.pricing-tailored {
    padding: 64px 0 48px;
}
.pricing-tailored-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
}
.pricing-floor {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.pricing-floor strong {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.pricing-floor span {
    font-size: 1rem;
    color: var(--text-muted);
}
.pricing-tailored-left p {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
}
.pricing-tailored-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.pricing-tailored-right h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 20px;
}
.pricing-includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pricing-includes-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-body);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-light, rgba(0,0,0,0.05));
}
.pricing-includes-list li:last-child {
    border-bottom: none;
}
.pricing-includes-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success, #10b981);
    font-weight: 700;
}

/* Pricing — Factors grid */
.pricing-factors {
    padding: 48px 0;
    text-align: center;
}
.pricing-factors h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 40px;
}
.factors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.factor-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    transition: all var(--transition);
}
.factor-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.factor-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.factor-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}
.factor-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .pricing-tailored-inner {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 32px;
    }
    .pricing-floor strong {
        font-size: 2.2rem;
    }
    .factors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.billing-toggle {
    text-align: center;
    padding: 48px 0 32px;
}
.billing-toggle h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}
.toggle-container {
    display: inline-flex;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}
.toggle-option {
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}
.toggle-option.active {
    background: var(--accent);
    color: #fff;
}
.savings-badge {
    font-size: 0.7rem;
    background: var(--success);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 4px;
}

.pricing-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.pricing-page-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: all var(--transition);
}
.pricing-page-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.pricing-page-card.featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 18px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.pricing-page-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.pricing-page-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}
.pricing-page-card .price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.per-machine {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.features-list li {
    font-size: 0.88rem;
    color: var(--text-body);
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}
.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 0.8rem;
}

.features-list {
    margin-bottom: 24px;
}

/* Volume pricing tables */
.volume-pricing {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 32px;
}
.volume-pricing h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}
.volume-pricing > p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.volume-pricing table {
    width: 100%;
    border-collapse: collapse;
}
.volume-pricing th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}
.volume-pricing td {
    padding: 14px 16px;
    font-size: 0.9rem;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-light);
}
.volume-pricing .discount {
    color: var(--success);
    font-weight: 600;
}

/* ROI Section */
.roi-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin-bottom: 32px;
    text-align: center;
}
.roi-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 8px;
}
.roi-section > p {
    color: var(--text-muted);
    margin-bottom: 36px;
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}
.roi-item {
    padding: 20px;
    background: var(--accent-bg);
    border-radius: var(--radius-md);
}
.roi-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}
.roi-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.roi-example {
    text-align: left;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 28px;
    max-width: 600px;
    margin: 0 auto;
}
.roi-example h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}
.roi-example p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.roi-example ul {
    margin: 8px 0 12px 20px;
    list-style: disc;
}
.roi-example li {
    font-size: 0.88rem;
    color: var(--text-body);
    padding: 2px 0;
}
.roi-total {
    font-size: 1rem;
    color: var(--success) !important;
    font-weight: 700;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

/* FAQ */
.faq-section {
    padding: 48px 0;
}
.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 36px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-white);
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }

.faq-answer {
    padding: 0 24px 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Pricing final CTA */
.pricing-final-cta {
    text-align: center;
    padding: 64px 0 48px;
}
.pricing-final-cta h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 12px;
}
.pricing-final-cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero {
    background: var(--bg-dark);
    padding: 140px 0 80px;
    text-align: center;
}
.about-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.about-hero .hero-subtitle {
    color: var(--text-on-dark-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.our-story {
    background: var(--bg-white);
    padding: 80px 0;
}
.story-content {
    max-width: 680px;
    margin: 0 auto;
}
.story-content .section-title { text-align: left; margin-bottom: 24px; }
.story-content p {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.8;
}

.our-values {
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
}
.value-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.value-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 12px;
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}
.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* AI Innovation */
.ai-innovation {
    background: var(--bg-white);
    text-align: center;
}
.innovation-badge {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.ai-innovation h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
}
.ai-innovation > .container > p {
    max-width: 600px;
    margin: 0 auto 36px;
    color: var(--text-muted);
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.innovation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}
.innovation-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.innovation-icon svg { width: 28px; height: 28px; }
.innovation-item span {
    font-size: 0.88rem;
    color: var(--text-body);
    font-weight: 500;
}

/* US Focus */
.us-focus {
    background: var(--bg-light);
    text-align: center;
}
.us-focus h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 24px;
}
.us-content {
    max-width: 680px;
    margin: 0 auto;
}
.us-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}
.us-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 32px 0;
}
.us-stat { text-align: center; }
.us-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
}
.us-stat .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About CTA */
.about-cta {
    background: var(--bg-dark);
    text-align: center;
    padding: 80px 0;
}
.about-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.about-cta p {
    color: var(--text-on-dark-muted);
    margin-bottom: 28px;
}
.about-cta .btn {
    background: var(--accent);
    color: #fff;
}
.about-cta .btn:hover {
    background: var(--accent-dark);
}

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-hero {
    background: var(--bg-dark);
    padding: 140px 0 60px;
    text-align: center;
}
.legal-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-top: 32px;
    margin-bottom: 12px;
}
.legal-content p {
    color: var(--text-body);
    margin-bottom: 12px;
    line-height: 1.7;
}
.legal-content ul {
    margin: 12px 0;
    padding-left: 24px;
    list-style: disc;
}
.legal-content li {
    color: var(--text-body);
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.back-link {
    display: inline-block;
    margin-top: 32px;
    font-weight: 600;
    color: var(--accent);
}

/* =============================================
   RESPONSIVE — Tablet
   ============================================= */
@media (max-width: 1024px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .deployment-grid { grid-template-columns: 1fr; max-width: 500px; }
    .pricing-grid-2 { grid-template-columns: 1fr; max-width: 500px; }
    .pricing-page-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto 48px; }
    .pricing-page-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .innovation-grid { grid-template-columns: repeat(2, 1fr); }
    .roi-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-stats { gap: 32px; }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .standards-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .standard-card { padding: 28px 20px; }
    .what-is-grid { grid-template-columns: repeat(3, 1fr); }
    .module-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .module-detail-grid.reverse { direction: ltr; }

    .volume-pricing table { font-size: 0.85rem; }
    .volume-pricing th, .volume-pricing td { padding: 10px 12px; }
}

/* =============================================
   RESPONSIVE — Mobile
   ============================================= */
@media (max-width: 768px) {
    section { padding: 64px 0; }

    .mobile-toggle { display: flex; z-index: 1100; }

    .nav-links {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 1050;
        padding: 80px 24px 40px;
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        font-size: 1.25rem;
        color: var(--text-heading);
        font-weight: 600;
        padding: 12px 16px;
        width: 80%;
        text-align: center;
        border-radius: var(--radius-sm);
        transition: background var(--transition), color var(--transition);
    }
    .nav-links a:hover {
        color: var(--accent);
        background: var(--accent-bg);
    }
    .nav-links .btn {
        margin-top: 12px;
        font-size: 1rem;
        padding: 14px 32px;
        width: 80%;
    }

    .hero { padding: 32px 0 0; }
    .hero h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 20px; }
    .modules-grid { grid-template-columns: 1fr; }
    .what-is-grid { grid-template-columns: 1fr; }
    .module-card { padding: 20px; }
    .standards-cards { grid-template-columns: 1fr; gap: 16px; }
    .standard-card { padding: 24px 20px; }
    .standards-grid { gap: 10px; }
    .standard-item { min-width: 120px; padding: 14px 18px; }
    .industries-grid { gap: 12px; }
    .industry-item { min-width: 130px; }
    .module-detail-grid, .module-detail-grid.reverse { grid-template-columns: 1fr; direction: ltr; }
    .stat-value { font-size: 1.1rem; }

    .trust-grid { grid-template-columns: 1fr; gap: 16px; }
    .trust-item { padding: 24px; text-align: left; display: flex; gap: 16px; align-items: flex-start; }
    .trust-icon { margin: 0; flex-shrink: 0; }

    .role-grid { grid-template-columns: 1fr; }

    .highlights-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

    .screenshot-gallery { grid-template-columns: 1fr; }

    .values-grid { grid-template-columns: 1fr; }
    .innovation-grid { grid-template-columns: 1fr; }
    .roi-grid { grid-template-columns: repeat(2, 1fr); }

    .us-stats { flex-direction: column; gap: 20px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-trust { flex-direction: column; align-items: center; gap: 8px; }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: -32px; right: 8px; }

    .features-hero, .pricing-hero, .about-hero, .legal-hero { padding: 110px 0 60px; }

    .pricing-page-grid { grid-template-columns: 1fr; }

    .volume-pricing { padding: 24px; overflow-x: auto; }
    .volume-pricing table { min-width: 500px; }

    .beta-banner { font-size: 0.8rem; }
    .beta-banner .container { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.5rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .highlights-grid { grid-template-columns: 1fr; }
    .roi-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
}

/* =============================================
   HOMEPAGE ENHANCEMENTS — Animations & Pop
   ============================================= */

/* --- AWS Architecture Hub --- */
.aws-hub-section {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}
.aws-hub-section .section-title { color: #f1f5f9; }
.aws-hub-section .section-subtitle { color: var(--text-on-dark-muted); max-width: 600px; margin-left: auto; margin-right: auto; }

.aws-hub-wrapper {
    position: relative;
    width: 500px;
    max-width: 90vw;
    height: 500px;
    margin: 60px auto 0;
    aspect-ratio: 1;
}

/* Central PulseMQ orb */
.hub-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 140px; height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    z-index: 3;
    animation: hub-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.4);
}
.hub-center-text {
    font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -0.5px;
}
.hub-center-sub {
    font-size: 0.65rem; font-weight: 600; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 2px; margin-top: 2px;
}

@keyframes hub-pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(14, 165, 233, 0.4); transform: translate(-50%, -50%) scale(1); }
    50% { box-shadow: 0 0 80px rgba(14, 165, 233, 0.7); transform: translate(-50%, -50%) scale(1.05); }
}

/* Orbit rings */
.hub-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.15);
}
.hub-ring-1 { width: 280px; height: 280px; transform: translate(-50%, -50%); }
.hub-ring-2 { width: 420px; height: 420px; transform: translate(-50%, -50%); border-color: rgba(99, 102, 241, 0.12); }

/* Orbiting AWS service nodes */
.aws-node {
    position: absolute;
    width: 72px; height: 72px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(14, 165, 233, 0.3);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.aws-node:hover {
    transform: scale(1.15) translateY(-4px);
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.4);
}
.aws-node svg { width: 28px; height: 28px; margin-bottom: 4px; }
.aws-node-label { font-size: 0.55rem; font-weight: 600; color: var(--text-on-dark-muted); text-align: center; line-height: 1.1; }

/* Node positions around the hub (6 clock positions) */
.aws-node-1 { top: 2%;   left: calc(50% - 36px); }   /* 12 o'clock */
.aws-node-2 { top: 18%;  right: 0; }                  /* 2 o'clock */
.aws-node-3 { bottom: 18%; right: 0; }                /* 4 o'clock */
.aws-node-4 { bottom: 2%; left: calc(50% - 36px); }   /* 6 o'clock */
.aws-node-5 { bottom: 18%; left: 0; }                 /* 8 o'clock */
.aws-node-6 { top: 18%;  left: 0; }                   /* 10 o'clock */

/* Connection lines SVG */
.hub-connections {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.hub-line {
    stroke: url(#hubGradient);
    stroke-width: 1.5;
    fill: none;
    stroke-dasharray: 8 4;
    animation: hub-dash 20s linear infinite;
}
@keyframes hub-dash {
    to { stroke-dashoffset: -240; }
}

/* Animated data dot traveling along lines */
.hub-dot {
    fill: #0ea5e9;
    r: 3;
}
.hub-dot-anim {
    animation: hub-dot-travel 3s ease-in-out infinite;
}
@keyframes hub-dot-travel {
    0%, 100% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    95% { opacity: 0; }
}

/* --- Live Signal Flow Animation --- */
.signal-flow-section {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.signal-flow-section .section-title { color: #f1f5f9; }
.signal-flow-section .section-subtitle { color: var(--text-on-dark-muted); }

.signal-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 60px;
    position: relative;
    flex-wrap: wrap;
}

.signal-node {
    display: flex; flex-direction: column; align-items: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}
.signal-node-icon {
    width: 80px; height: 80px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    position: relative;
    transition: transform 0.3s ease;
}
.signal-node:hover .signal-node-icon { transform: scale(1.1); }
.signal-node-icon svg { width: 36px; height: 36px; }
.signal-node-title { font-size: 0.85rem; font-weight: 700; color: #f1f5f9; }
.signal-node-desc { font-size: 0.72rem; color: var(--text-on-dark-muted); text-align: center; max-width: 100px; margin-top: 4px; }

/* Node color themes */
.signal-node-plc .signal-node-icon { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }
.signal-node-mqtt .signal-node-icon { background: rgba(14, 165, 233, 0.15); border: 1px solid rgba(14, 165, 233, 0.3); color: #0ea5e9; }
.signal-node-cloud .signal-node-icon { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); color: #a855f7; }
.signal-node-stream .signal-node-icon { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: #22c55e; }
.signal-node-dash .signal-node-icon { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); color: #6366f1; }

/* Animated arrow between nodes */
.signal-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 60px;
    position: relative;
    z-index: 1;
}
.signal-arrow-line {
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    position: relative;
}
.signal-arrow-dot {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: signal-travel 2s ease-in-out infinite;
}
@keyframes signal-travel {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% - 8px); opacity: 0; }
}
.signal-arrow:nth-child(4) .signal-arrow-dot { animation-delay: 0.4s; }
.signal-arrow:nth-child(6) .signal-arrow-dot { animation-delay: 0.8s; }
.signal-arrow:nth-child(8) .signal-arrow-dot { animation-delay: 1.2s; }
.signal-arrow:nth-child(10) .signal-arrow-dot { animation-delay: 1.6s; }

/* --- Enhanced Module Cards (glow on hover) --- */
.module-card:hover {
    box-shadow: 0 0 0 1px var(--accent), 0 8px 25px -5px rgba(14, 165, 233, 0.15), var(--shadow-lg);
}


/* --- Animated Hero Stats Counters --- */
.stat-value {
    display: inline-block;
}
.stat-value.counting {
    animation: stat-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes stat-pop {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Hero Background Particles --- */
.hero-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.hero-particles .particle {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: particle-float 6s ease-in-out infinite;
}
@keyframes particle-float {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 0.6; transform: translateY(-20px) scale(1); }
    80% { opacity: 0.3; }
    100% { transform: translateY(-120px) scale(0.5); opacity: 0; }
}

/* --- Pulse rings behind hero slideshow --- */
.hero-image {
    position: relative;
}
.hero-pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.1);
    animation: hero-ring-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.hero-pulse-ring:nth-child(1) { width: calc(100% + 20px); height: calc(100% + 20px); animation-delay: 0s; }
.hero-pulse-ring:nth-child(2) { width: calc(100% + 50px); height: calc(100% + 50px); animation-delay: 1s; }
.hero-pulse-ring:nth-child(3) { width: calc(100% + 80px); height: calc(100% + 80px); animation-delay: 2s; }
@keyframes hero-ring-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.08; }
}

/* --- Responsive for new sections --- */
@media (max-width: 768px) {
    .aws-hub-wrapper { width: 320px; height: 320px; }
    .hub-center { width: 100px; height: 100px; }
    .hub-center-text { font-size: 1rem; }
    .hub-ring-1 { width: 200px; height: 200px; }
    .hub-ring-2 { width: 300px; height: 300px; }
    .aws-node { width: 56px; height: 56px; border-radius: 12px; }
    .aws-node svg { width: 22px; height: 22px; }
    .aws-node-label { font-size: 0.5rem; }

    .signal-flow { flex-direction: column; gap: 0; }
    .signal-arrow {
        width: 2px; height: 40px;
        flex-direction: column;
    }
    .signal-arrow-line {
        width: 2px; height: 100%;
        background: linear-gradient(180deg, transparent, var(--accent), transparent);
    }
    .signal-arrow-dot {
        animation-name: signal-travel-v;
    }
    @keyframes signal-travel-v {
        0% { top: 0; left: auto; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: calc(100% - 8px); left: auto; opacity: 0; }
    }
}

@media (max-width: 480px) {
    .aws-hub-wrapper { width: 280px; height: 280px; margin-top: 40px; }
    .hub-center { width: 80px; height: 80px; }
    .hub-center-text { font-size: 0.85rem; }
    .hub-center-sub { font-size: 0.5rem; }
    .aws-hub-section { padding: 60px 0; }
    .signal-flow-section { padding: 60px 0 80px; }
}

/* =============================================
   SERVICES PAGE
   ============================================= */

/* Hero */
.services-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0c1929 50%, #111827 100%);
    color: #f1f5f9;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.services-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 60%, rgba(14, 165, 233, 0.06) 0%, transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.services-hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-light);
    margin-bottom: 16px;
}
.services-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}
.services-hero .hero-subtitle {
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Core Services Grid */
.services-core {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 100px 0;
}
.services-core .section-title { color: #f1f5f9; }
.services-core .section-subtitle { color: var(--text-on-dark-muted); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(148, 163, 184, 0.25);
}

/* Color-coded glow per service */
.service-card-dev:hover  { box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.3); }
.service-card-mes:hover  { box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.3); }
.service-card-iot:hover  { box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.3); }
.service-card-ml:hover   { box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.3); }

.service-card-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.service-card-icon svg { width: 28px; height: 28px; }

.service-card-dev .service-card-icon  { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }
.service-card-mes .service-card-icon  { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.service-card-iot .service-card-icon  { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.service-card-ml .service-card-icon   { background: rgba(249, 115, 22, 0.12); color: #f97316; }

.service-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #f1f5f9;
}
.service-card-dev .service-card-title  { color: #38bdf8; }
.service-card-mes .service-card-title  { color: #34d399; }
.service-card-iot .service-card-title  { color: #c084fc; }
.service-card-ml .service-card-title   { color: #fb923c; }

.service-card-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card-list {
    list-style: none;
    padding: 0;
}
.service-card-list li {
    font-size: 0.85rem;
    color: #94a3b8;
    padding: 5px 0 5px 20px;
    position: relative;
    line-height: 1.5;
}
.service-card-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ML Callout Section */
.services-ml-callout {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 0 0 100px;
}

.ml-callout-box {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(14, 165, 233, 0.06) 100%);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.ml-callout-icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    display: flex; align-items: center; justify-content: center;
}
.ml-callout-icon svg { width: 32px; height: 32px; }

.ml-callout-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fb923c;
    margin-bottom: 12px;
}
.ml-callout-content p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.ml-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.ml-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}
.ml-timeline-dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    margin-bottom: 8px;
}
.ml-dot-1 { background: #94a3b8; box-shadow: 0 0 12px rgba(148, 163, 184, 0.4); }
.ml-dot-2 { background: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }
.ml-dot-3 { background: #f97316; box-shadow: 0 0 12px rgba(249, 115, 22, 0.4); }
.ml-dot-4 { background: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }

.ml-timeline-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f1f5f9;
}
.ml-timeline-desc {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}
.ml-timeline-connector {
    flex: 1;
    min-width: 30px;
    height: 2px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.3), rgba(249, 115, 22, 0.3));
    margin-bottom: 32px;
}

/* OT Expertise Section */
.services-ot {
    background: #0c1222;
    color: var(--text-on-dark);
    padding: 100px 0;
}
.services-ot .section-title { color: #f1f5f9; }
.services-ot .section-subtitle { color: var(--text-on-dark-muted); }

.ot-expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.ot-group-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 8px;
}
.ot-group-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.6;
}

.ot-logos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ot-logo-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}
.ot-logo-item:hover {
    transform: translateX(6px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 8px 24px -8px rgba(14, 165, 233, 0.15);
}

.ot-logo-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.ot-logo-ab .ot-logo-icon      { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.ot-logo-siemens .ot-logo-icon  { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }
.ot-logo-emerson .ot-logo-icon  { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.ot-logo-ad .ot-logo-icon       { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.ot-logo-other .ot-logo-icon    { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }
.ot-logo-wincc .ot-logo-icon    { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }
.ot-logo-ftview .ot-logo-icon   { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.ot-logo-optix .ot-logo-icon    { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.ot-logo-ignition .ot-logo-icon { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.ot-logo-cimplicity .ot-logo-icon { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

.ot-logo-item span:nth-child(2) {
    font-weight: 700;
    font-size: 0.9rem;
    color: #f1f5f9;
}

.ot-logo-detail {
    display: block;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: #64748b !important;
    margin-top: 2px;
}

/* Readiness Section */
.services-readiness {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 100px 0;
}
.services-readiness .section-title { color: #f1f5f9; }
.services-readiness .section-subtitle { color: var(--text-on-dark-muted); }

.readiness-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.readiness-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.readiness-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.2);
}

.readiness-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.readiness-icon svg { width: 24px; height: 24px; }

.readiness-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 12px;
}
.readiness-card p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 16px;
}
.readiness-card ul {
    list-style: none;
    padding: 0;
}
.readiness-card ul li {
    font-size: 0.85rem;
    color: #94a3b8;
    padding: 4px 0 4px 20px;
    position: relative;
}
.readiness-card ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Certified Partners */
.services-certifications {
    padding: 80px 0;
    background: var(--bg-primary);
}
.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}
.cert-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 16px;
    padding: 36px;
}
.cert-badge {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.cert-card h3 {
    color: #f1f5f9;
    font-size: 1.15rem;
    margin-bottom: 12px;
}
.cert-card p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.cert-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cert-card ul li {
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 6px 0 6px 22px;
    position: relative;
}
.cert-card ul li::before {
    content: '\2713';
    color: #0ea5e9;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA */
.services-cta {
    background: linear-gradient(135deg, #0c1929, #0f172a);
    color: var(--text-on-dark);
    padding: 80px 0;
}
.services-cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.services-cta-box h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 16px;
}
.services-cta-box p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- EXOR Integration Showcase --- */
.exor-showcase {
    padding: 80px 0;
    background: #0a0a16;
}
.exor-showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.exor-showcase-content {
    order: 1;
}
.exor-showcase-content h2 {
    color: #f1f5f9;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.25;
}
.exor-showcase-content p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.exor-showcase-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.exor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.exor-badge-isa88  { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.exor-badge-isa95  { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.exor-badge-isa106 { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }
.exor-badge-web    { background: rgba(14, 165, 233, 0.12); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.2); }

.exor-showcase-images {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.exor-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.exor-img-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 70px -10px rgba(14, 165, 233, 0.15), 0 0 0 1px rgba(14, 165, 233, 0.1);
}
.exor-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}
.exor-img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 500;
}
.exor-img-caption span {
    color: #60a5fa;
    font-weight: 600;
}
@media (max-width: 768px) {
    .exor-showcase-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .exor-showcase-content { order: 2; }
    .exor-showcase-images { order: 1; }
    .exor-showcase-content h2 { font-size: 1.5rem; }
}

.service-card-trend {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.65;
}
.service-card-trend strong { color: #c084fc; }
.service-card-trend em { color: #f1f5f9; font-style: normal; font-weight: 600; }

.ot-logo-exor .ot-logo-icon    { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.ot-logo-nodered .ot-logo-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.ot-logo-docker .ot-logo-icon  { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }

.ot-edge-row {
    margin-top: 40px;
}
.ot-edge-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
}
.ot-edge-image {
    text-align: center;
}
.ot-edge-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.4);
}
.ot-edge-image-caption {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}
.ot-edge-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.ot-edge-desc {
    grid-column: 1 / -1;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 768px) {
    .ot-edge-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ot-edge-image img {
        max-width: 220px;
    }
}

/* AI Agent Highlight Section */
.ai-agent-highlight {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a1628, #111827);
}
.ai-agent-highlight-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.ai-agent-highlight-visual {
    display: flex;
    justify-content: center;
}
.ai-chat-mockup {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ai-chat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.ai-chat-msg {
    padding: 10px 14px;
    margin: 10px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 85%;
}
.ai-chat-user {
    background: rgba(14, 165, 233, 0.15);
    color: #e2e8f0;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.ai-chat-bot {
    background: rgba(255, 255, 255, 0.05);
    color: #c8d0da;
    border-bottom-left-radius: 4px;
}
.ai-chat-bot strong { color: #38bdf8; }
@media (max-width: 768px) {
    .ai-agent-highlight-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ai-chat-mockup { max-width: 100%; }
}

/* In-House Platform Section */
.services-inhouse {
    background: linear-gradient(135deg, #0a1628, #111827);
    color: var(--text-on-dark);
    padding: 100px 0;
}

.inhouse-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.inhouse-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inhouse-benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    padding: 18px 20px;
    transition: all 0.3s ease;
}
.inhouse-benefit-item:hover {
    transform: translateX(6px);
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: 0 8px 24px -8px rgba(14, 165, 233, 0.12);
}

.inhouse-benefit-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
    flex-shrink: 0;
}

/* --- Services responsive --- */
@media (max-width: 768px) {
    .services-hero { padding: 120px 0 60px; }
    .services-hero h1 { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .ot-expertise-grid { grid-template-columns: 1fr; }
    .readiness-grid { grid-template-columns: 1fr; }
    .ml-callout-box { flex-direction: column; padding: 28px; }
    .ml-timeline { flex-direction: column; align-items: flex-start; gap: 0; }
    .ml-timeline-step { flex-direction: row; gap: 12px; min-width: auto; text-align: left; }
    .ml-timeline-connector { width: 2px; height: 20px; min-width: 2px; margin: 0 0 0 7px; background: linear-gradient(180deg, rgba(148, 163, 184, 0.3), rgba(249, 115, 22, 0.3)); }
    .inhouse-grid { grid-template-columns: 1fr; }
    .ot-edge-badges { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .services-hero h1 { font-size: 1.6rem; }
    .services-cta-box h2 { font-size: 1.8rem; }
    .ot-logo-item { padding: 12px 14px; }
    .ot-logo-detail { display: none !important; }
}
