/* ============================================================
   MUSEN PLUS Sensor — sensor.css
   Custom styles for AIoT landing page body sections.
   Navbar + Footer CSS comes from style.css (cloned from ecocare)
   ============================================================ */

/* Hide festive emoji effect — not suitable for AIoT sensor site */
#festive-stage {
    display: none !important;
}

/* ======== HERO ======== */
.s-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 70px 40px 40px;
}

.s-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #f0f7ff 0%, #e8f4fd 30%, #dbeafe 60%, #eff6ff 100%);
    z-index: 0;
}

.s-hero-grid-overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background-image: radial-gradient(circle, rgba(59,130,246,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 1;
}

.s-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    animation: glowPulse 6s ease-in-out infinite alternate;
}
.s-hero-glow.g1 { width: 500px; height: 500px; top: -100px; left: -100px; background: rgba(59,130,246,0.1); }
.s-hero-glow.g2 { width: 400px; height: 400px; bottom: -80px; right: -80px; background: rgba(34,197,94,0.08); animation-delay: 2s; }
.s-hero-glow.g3 { width: 350px; height: 350px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(245,158,11,0.06); animation-delay: 4s; }
@keyframes glowPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.s-hero-split {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1280px;
    width: 100%;
}
.s-hero-text {
    flex: 1;
    color: #1a1a2e;
}

/* ======== PHONE MOCKUP ======== */
.s-hero-phone-wrap {
    flex: 0 0 440px;
    display: flex;
    justify-content: center;
    animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
/* Rainbow border phone frame */
.s-phone-frame {
    width: 400px;
    height: 800px;
    background: linear-gradient(135deg, #ff0000, #ff8c00, #ffd700, #00c853, #00b0ff, #536dfe, #d500f9);
    border-radius: 44px;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0,0,0,0.12), 0 0 40px rgba(100,100,255,0.08);
    position: relative;
}
.s-phone-frame::before {
    display: none;
}
.s-phone-screen {
    position: absolute;
    inset: 5px;
    z-index: 1;
    box-sizing: border-box;
    background: #fafbfc;
    border-radius: 40px;
    border: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 20px 24px;
    scrollbar-width: none;
}
.s-phone-screen::-webkit-scrollbar { display: none; }

/* Phone Header */
.sp-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 2px 12px; margin-bottom: 8px;
}
.sp-header-left {
    display: flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 800; color: #1a1a2e;
}
.sp-hamburger { font-size: 18px; cursor: pointer; color: #333; }
.sp-dot { font-size: 10px; }
.sp-header-right {
    width: 32px; height: 32px; border-radius: 50%;
    background: #f1f5f9; display: flex; align-items: center; justify-content: center;
    color: #64748b; font-size: 14px; cursor: pointer; position: relative;
}

/* Context Menu (3-dot dropdown) */
.sp-context-menu {
    position: absolute; top: 36px; right: 0; z-index: 20;
    background: white; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 6px 0; min-width: 160px;
    display: none;
}
.sp-context-menu.show { display: block; }
.sp-ctx-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; font-size: 11px; color: #334155;
    cursor: pointer; transition: background 0.15s;
}
.sp-ctx-item:hover { background: #f8fafc; }
.sp-ctx-item i { font-size: 11px; color: #94a3b8; width: 14px; text-align: center; }

/* Sidebar Drawer */
.sp-sidebar {
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 70%; background: white; z-index: 30;
    border-radius: 36px 0 0 36px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    padding: 20px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.sp-sidebar.open { transform: translateX(0); }
.sp-sidebar-header {
    padding: 0 16px 14px; border-bottom: 1px solid #f1f5f9;
    font-size: 14px; font-weight: 800; color: #1a1a2e;
    margin-bottom: 8px;
}
.sp-sidebar-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; font-size: 12px; color: #475569;
    cursor: pointer; transition: background 0.15s;
}
.sp-sidebar-item:hover { background: #f8fafc; }
.sp-sidebar-item.active { background: #e0f2fe; color: #0284c7; font-weight: 600; }
.sp-sidebar-item i { font-size: 14px; width: 18px; text-align: center; }
.sp-sidebar-bottom {
    position: absolute; bottom: 16px; left: 0; right: 0;
    border-top: 1px solid #f1f5f9; padding-top: 8px;
}
.sp-sidebar-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    background: #ef4444; color: white; font-size: 9px; font-weight: 700;
    margin-left: auto;
}
.sp-sidebar-user {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; font-size: 12px; color: #475569;
}
.sp-sidebar-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: #e2e8f0; display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #64748b;
}
.sp-sidebar-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.3);
    z-index: 25; border-radius: 36px;
    display: none;
}
.sp-sidebar-overlay.show { display: block; }

/* Quick Stats */
.sp-quick-stats {
    display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap;
}
.sp-qs {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px; border-radius: 50px;
    background: #f1f5f9; border: 1px solid #e2e8f0;
    font-size: 11px; font-weight: 600; color: #334155;
}
.sp-qs i { font-size: 10px; }

/* Sections */
.sp-section { margin-bottom: 18px; }
.sp-section-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.sp-section-title {
    font-size: 13px; font-weight: 700; color: #1a1a2e;
    display: flex; align-items: center; gap: 6px;
}
.sp-section-title i { font-size: 12px; color: #64748b; }
.sp-section-stats { font-size: 10px; color: #64748b; display: flex; align-items: center; gap: 2px; }
.sp-section-stats i { font-size: 9px; }

/* Cards — HA Style */
.sp-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.sp-card {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 10px; border-radius: 14px;
    background: #f1f5f9; border: none;
    cursor: pointer; transition: all 0.25s;
    user-select: none; position: relative; overflow: hidden;
}
.sp-card:hover { filter: brightness(0.97); }
.sp-card.active { background: #fef3c7; }

/* Card Icon — circular like HA */
.sp-card-icon {
    width: 34px; height: 34px; min-width: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: transform 0.3s;
}
.sp-card.active .sp-card-icon { transform: scale(1.05); }
/* Icon color presets */
.ci-amber { background: rgba(245,158,11,0.2); color: #d97706; }
.ci-green { background: rgba(34,197,94,0.2); color: #16a34a; }
.ci-blue  { background: rgba(59,130,246,0.2); color: #2563eb; }
.ci-gray  { background: rgba(100,116,139,0.12); color: #64748b; }
.sp-card.active .ci-amber { background: rgba(245,158,11,0.3); }
.sp-card.active .ci-green { background: rgba(34,197,94,0.3); }
.sp-card.active .ci-blue  { background: rgba(59,130,246,0.3); }

.sp-card-info { display: flex; flex-direction: column; overflow: hidden; }
.sp-card-name {
    font-size: 11px; font-weight: 600; color: #1a1a2e;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-card-val { font-size: 10px; color: #64748b; font-weight: 500; }

/* Slider card — same size, slider below info */
.sp-card.has-slider {
    flex-wrap: wrap;
}
.sp-slider {
    width: 100%; height: 28px; border-radius: 14px;
    background: #fef3c7; margin-top: 6px;
    position: relative; cursor: pointer;
    touch-action: none;
}
.sp-slider-fill {
    height: 100%; border-radius: 14px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    position: relative; min-width: 28px;
}
.sp-slider-fill::after {
    content: '';
    position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Temperature card with sparkline chart */
.sp-temp-card {
    background: #f1f5f9; border-radius: 14px;
    padding: 12px 14px 6px; margin-top: 8px;
    overflow: hidden;
}
.sp-temp-header {
    font-size: 12px; font-weight: 600; color: #475569;
    margin-bottom: 2px;
}
.sp-temp-value {
    font-size: 28px; font-weight: 700; color: #1a1a2e;
    line-height: 1.1;
}
.sp-temp-value sup { font-size: 14px; font-weight: 500; }
.sp-temp-chart {
    width: 100%; height: 30px; margin-top: 4px;
    display: block;
}

/* Thermostat controls (HA Climate) */
.sp-thermo-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-top: 10px;
}
.sp-thermo {
    display: flex; align-items: center; justify-content: space-between;
    background: #f1f5f9; border-radius: 14px;
    padding: 10px 12px;
}
.sp-thermo-btn {
    width: 28px; height: 28px; border-radius: 50%;
    background: white; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 600; color: #475569;
    cursor: pointer; user-select: none;
    transition: background 0.15s;
}
.sp-thermo-btn:hover { background: #f8fafc; }
.sp-thermo-val {
    font-size: 13px; font-weight: 700; color: #1a1a2e;
}

/* Off-state slider */
.sp-slider-off {
    background: #e2e8f0;
}
.s-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 32px;
    animation: badgeFadeIn 1s ease-out;
}
@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.s-hero-content h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    animation: heroFadeUp 0.8s ease-out 0.2s both;
}

.s-gradient-text {
    background: linear-gradient(135deg, #3b82f6, #22c55e, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite alternate;
}
@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.s-hero-sub {
    font-size: 1.15rem;
    color: rgba(30,41,59,0.6);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto 40px;
    animation: heroFadeUp 0.8s ease-out 0.4s both;
}

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

.s-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    animation: heroFadeUp 0.8s ease-out 0.6s both;
}

.s-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
    text-decoration: none;
}
.s-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.4); }
.s-btn-primary.large { padding: 16px 38px; font-size: 16px; }

.s-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 34px;
    border-radius: 12px;
    border: 1px solid rgba(30,41,59,0.2);
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    text-decoration: none;
    background: transparent;
}
.s-btn-ghost:hover { background: rgba(30,41,59,0.06); border-color: rgba(30,41,59,0.35); }
.s-btn-ghost.large { padding: 16px 38px; font-size: 16px; }

/* Hero metrics */
.s-hero-metrics {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    animation: heroFadeUp 0.8s ease-out 0.8s both;
}
.s-metric { text-align: center; }
.s-metric-val { font-size: 2.4rem; font-weight: 800; color: #1e293b; }
.s-metric-unit { font-size: 1.3rem; font-weight: 700; color: rgba(30,41,59,0.5); }
.s-metric-label { display: block; font-size: 12px; color: rgba(30,41,59,0.45); margin-top: 4px; font-weight: 500; }
.s-metric-sep { width: 1px; height: 40px; background: rgba(30,41,59,0.1); }

/* Floating icons */
.s-float-icon {
    position: absolute;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.1);
    backdrop-filter: blur(6px);
    animation: floatIcon 8s ease-in-out infinite;
}
.fi1 { top: 18%; left: 8%; animation-delay: 0s; color: rgba(59,130,246,0.5); }
.fi2 { top: 28%; right: 10%; animation-delay: 1.5s; color: rgba(34,197,94,0.5); }
.fi3 { bottom: 35%; left: 12%; animation-delay: 3s; color: rgba(245,158,11,0.5); }
.fi4 { bottom: 22%; right: 8%; animation-delay: 4.5s; color: rgba(168,85,247,0.5); }
.fi5 { top: 60%; left: 5%; animation-delay: 6s; color: rgba(236,72,153,0.5); }
@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-14px) rotate(5deg); }
    50% { transform: translateY(-6px) rotate(-3deg); }
    75% { transform: translateY(-16px) rotate(2deg); }
}

/* ======== SECTION HEADER (shared) ======== */
.s-section-header { text-align: center; margin-bottom: 56px; }
.s-section-header.light h2 { color: white; }
.s-section-header.light p { color: rgba(255,255,255,0.5); }
.s-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(34,197,94,0.1));
    border: 1px solid rgba(59,130,246,0.2);
    color: #3b82f6;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.s-section-header.light .s-tag { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #60a5fa; }
.s-section-header h2 { font-size: 2.4rem; font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.s-section-header p { font-size: 1.05rem; color: #64748b; max-width: 560px; margin: 0 auto; }

/* ======== 3 PILLARS ======== */
.s-pillars { padding: 100px 24px; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.s-pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1200px; margin: 0 auto; }
.s-pillar-card {
    position: relative; background: white; border-radius: 20px; padding: 36px 28px;
    border: 1px solid #e2e8f0; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); overflow: hidden;
}
.s-pillar-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #3b82f6, #22c55e); opacity: 0; transition: opacity 0.3s;
}
.s-pillar-card:hover::before { opacity: 1; }
.s-pillar-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); border-color: transparent; }
.s-pillar-card.featured { border-color: rgba(34,197,94,0.3); box-shadow: 0 8px 30px rgba(34,197,94,0.08); }
.s-pillar-card.featured::before { opacity: 1; background: linear-gradient(90deg, #22c55e, #16a34a); }
.s-pillar-badge {
    position: absolute; top: 16px; right: 16px;
    background: linear-gradient(135deg, #22c55e, #16a34a); color: white;
    font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 50px;
}
.s-pillar-icon-wrap {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 20px; transition: transform 0.3s;
}
.s-pillar-card:hover .s-pillar-icon-wrap { transform: scale(1.1) rotate(5deg); }
.s-pillar-icon-wrap.blue { background: #eff6ff; color: #3b82f6; }
.s-pillar-icon-wrap.green { background: #f0fdf4; color: #22c55e; }
.s-pillar-icon-wrap.orange { background: #fffbeb; color: #f59e0b; }
.s-pillar-content h3 { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.s-pillar-content > p { font-size: 0.9rem; color: #64748b; line-height: 1.6; margin-bottom: 16px; }
.s-pillar-content ul { list-style: none; padding: 0; margin: 0 0 20px; }
.s-pillar-content ul li { font-size: 0.85rem; color: #475569; padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.s-pillar-content ul li i { color: #22c55e; font-size: 11px; width: 16px; }
.s-pillar-link { display: inline-flex; align-items: center; gap: 6px; color: #3b82f6; font-weight: 600; font-size: 14px; text-decoration: none; transition: gap 0.3s; }
.s-pillar-link:hover { gap: 10px; }

/* ======== TECH STACK ======== */
.s-tech { padding: 100px 24px; background: #fff; }
.s-tech-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    max-width: 1100px; margin: 0 auto;
}
.s-tech-card {
    padding: 32px 24px; border-radius: 16px;
    background: linear-gradient(145deg, #f8fafc, #ffffff);
    border: 1px solid #e2e8f0; transition: all 0.35s; position: relative; overflow: hidden;
}
.s-tech-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6); opacity: 0; transition: opacity 0.3s;
}
.s-tech-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); border-color: transparent; }
.s-tech-card:hover::before { opacity: 1; }
.s-tech-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #6366f1; margin-bottom: 16px; transition: transform 0.3s;
}
.s-tech-card:hover .s-tech-icon { transform: scale(1.1) rotate(-5deg); }
.s-tech-card h4 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.s-tech-card p { font-size: 0.85rem; color: #64748b; line-height: 1.6; }

/* ======== HOW IT WORKS ======== */
.s-how { padding: 100px 24px; background: linear-gradient(135deg, #0a0e27, #0f2847); }
.s-steps { display: flex; align-items: flex-start; justify-content: center; max-width: 1100px; margin: 0 auto; }
.s-step { flex: 1; text-align: center; padding: 20px; position: relative; }
.s-step-num { font-size: 4rem; font-weight: 900; color: rgba(255,255,255,0.03); position: absolute; top: 0; right: 16px; line-height: 1; user-select: none; }
.s-step-icon {
    width: 64px; height: 64px; border-radius: 18px;
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #60a5fa; margin: 0 auto 16px; transition: all 0.3s;
}
.s-step:hover .s-step-icon { background: #3b82f6; color: white; transform: scale(1.1); box-shadow: 0 8px 24px rgba(59,130,246,0.3); }
.s-step h3 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.s-step p { color: rgba(255,255,255,0.45); font-size: 0.83rem; line-height: 1.5; }
.s-step-connector { display: flex; align-items: center; padding-top: 52px; color: rgba(255,255,255,0.12); font-size: 14px; }
.s-connector-line { width: 32px; height: 1px; background: linear-gradient(90deg, rgba(59,130,246,0.3), rgba(59,130,246,0.05)); margin-right: 4px; }

/* ======== USE CASES ======== */
.s-usecases { padding: 100px 24px; background: linear-gradient(180deg, #f8fafc, #fff); }
.s-usecase-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    max-width: 1200px; margin: 0 auto;
}
.s-usecase-card {
    background: white; border-radius: 16px; padding: 28px;
    border: 1px solid #e2e8f0; transition: all 0.35s; overflow: hidden;
}
.s-usecase-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.07); border-color: transparent; }
.s-usecase-header {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px; border-radius: 50px;
    font-size: 12px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.5px;
}
.s-usecase-header.green { background: #f0fdf4; color: #16a34a; }
.s-usecase-header.blue { background: #eff6ff; color: #2563eb; }
.s-usecase-header.orange { background: #fffbeb; color: #d97706; }
.s-usecase-header.purple { background: #faf5ff; color: #7c3aed; }
.s-usecase-header.teal { background: #f0fdfa; color: #0d9488; }
.s-usecase-header.red { background: #fef2f2; color: #dc2626; }
.s-usecase-header i { font-size: 13px; }
.s-usecase-card h4 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.s-usecase-card > p { font-size: 0.85rem; color: #64748b; line-height: 1.65; margin-bottom: 14px; }
.s-usecase-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.s-usecase-tags span {
    background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 50px;
}

/* ======== FEATURES ======== */
.s-features { padding: 100px 24px; background: #fff; }
.s-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.s-feat {
    padding: 32px 24px; border-radius: 16px; border: 1px solid #f1f5f9;
    background: #fafbfc; transition: all 0.3s; position: relative; overflow: hidden;
}
.s-feat::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #3b82f6, #22c55e); opacity: 0; transition: opacity 0.3s;
}
.s-feat:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); border-color: transparent; }
.s-feat:hover::after { opacity: 1; }
.s-feat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #3b82f6; margin-bottom: 16px; transition: transform 0.3s;
}
.s-feat:hover .s-feat-icon { transform: rotate(10deg) scale(1.1); }
.s-feat h4 { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.s-feat p { font-size: 0.85rem; color: #64748b; line-height: 1.6; }

/* ======== CONNECTIVITY ======== */
.s-connectivity { padding: 100px 24px; background: linear-gradient(135deg, #0f172a, #1e293b); }
.s-conn-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    max-width: 900px; margin: 0 auto;
}
.s-conn-item {
    text-align: center; padding: 28px 16px; border-radius: 16px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}
.s-conn-item:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); border-color: rgba(59,130,246,0.2); }
.s-conn-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #60a5fa; margin: 0 auto 12px; transition: all 0.3s;
}
.s-conn-item:hover .s-conn-icon { background: #3b82f6; color: white; transform: scale(1.1); }
.s-conn-item h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.s-conn-item p { color: rgba(255,255,255,0.35); font-size: 0.75rem; margin: 0; }

/* ======== STATS COUNTER ======== */
.s-stats { padding: 80px 24px; background: linear-gradient(135deg, #0f172a, #1e293b); }
.s-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1000px; margin: 0 auto; }
.s-stat-item {
    text-align: center; padding: 24px; border-radius: 16px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); transition: all 0.3s;
}
.s-stat-item:hover { background: rgba(255,255,255,0.06); transform: translateY(-4px); }
.s-stat-icon { font-size: 24px; color: #60a5fa; margin-bottom: 12px; }
.s-stat-num { font-size: 2.5rem; font-weight: 900; color: white; line-height: 1; margin-bottom: 6px; }
.s-stat-label { font-size: 13px; color: rgba(255,255,255,0.4); font-weight: 500; }

/* ======== CTA ======== */
.s-cta {
    padding: 100px 24px;
    background: linear-gradient(135deg, #0a0e27, #0d1b3e, #0f2847);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.s-cta-bg { position: absolute; inset: 0; z-index: 0; }
.s-cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: glowPulse 6s ease-in-out infinite alternate;
}
.s-cta-glow.cg1 { width: 400px; height: 400px; top: -100px; left: -50px; background: rgba(59,130,246,0.15); }
.s-cta-glow.cg2 { width: 350px; height: 350px; bottom: -80px; right: -30px; background: rgba(34,197,94,0.12); animation-delay: 3s; }
.s-cta-content { max-width: 660px; margin: 0 auto; position: relative; z-index: 2; }
.s-cta-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(34,197,94,0.1));
    border: 1px solid rgba(59,130,246,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #60a5fa;
    margin: 0 auto 28px;
    animation: floatIcon 6s ease-in-out infinite;
}
.s-cta h2 {
    font-size: 2.4rem; font-weight: 800; color: white; margin-bottom: 16px;
}
.s-cta p {
    font-size: 1.05rem; color: rgba(255,255,255,0.5); margin-bottom: 36px; line-height: 1.7;
}
.s-cta-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 40px; }
.s-btn-cta-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 38px; border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white; font-weight: 700; font-size: 16px;
    text-decoration: none; transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(59,130,246,0.35);
}
.s-btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(59,130,246,0.45); }
.s-btn-cta-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 38px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8); font-weight: 600; font-size: 16px;
    text-decoration: none; transition: all 0.3s; background: transparent;
}
.s-btn-cta-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); color: white; }
.s-cta-trust { display: flex; justify-content: center; gap: 28px; }
.s-cta-trust-item {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.35); font-size: 13px; font-weight: 500;
}
.s-cta-trust-item i { color: rgba(59,130,246,0.5); font-size: 14px; }

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
    .s-pillars-grid { grid-template-columns: 1fr; max-width: 480px; }
    .s-features-grid { grid-template-columns: repeat(2, 1fr); }
    .s-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .s-usecase-grid { grid-template-columns: repeat(2, 1fr); }
    .s-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .s-conn-grid { grid-template-columns: repeat(4, 1fr); }
    .s-steps { flex-wrap: wrap; gap: 12px; }
    .s-step-connector { display: none; }
    .s-step { min-width: 200px; }
    .s-hero-split { flex-direction: column; text-align: center; gap: 40px; }
    .s-hero-text { text-align: center; }
    .s-hero-phone-wrap { flex: none; }
    .s-phone-frame { width: 320px; height: 640px; }
}

@media (max-width: 768px) {
    .s-hero { padding: 60px 20px 40px; min-height: auto; }
    .s-hero-text h1 { font-size: 2.2rem; }
    .s-hero-actions { flex-direction: column; align-items: center; }
    .s-hero-metrics { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .s-metric-sep { display: none; }
    .s-float-icon { display: none; }
    .s-hero-phone-wrap { display: none; }
    .s-features-grid { grid-template-columns: 1fr; }
    .s-tech-grid { grid-template-columns: 1fr; }
    .s-usecase-grid { grid-template-columns: 1fr; }
    .s-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .s-conn-grid { grid-template-columns: repeat(2, 1fr); }
    .s-steps { flex-direction: column; align-items: center; }
    .s-cta h2 { font-size: 1.6rem; }
    .s-cta-actions { flex-direction: column; align-items: center; }
    .s-cta-trust { flex-direction: column; align-items: center; gap: 12px; }
    .s-pillars, .s-how, .s-features, .s-tech, .s-usecases, .s-connectivity, .s-stats, .s-cta { padding: 60px 20px; }
}

/* ======== SCROLL REVEAL ======== */
.s-pillars, .s-how, .s-features, .s-stats, .s-cta, .s-tech, .s-usecases, .s-connectivity {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.s-pillars.active, .s-how.active, .s-features.active, .s-stats.active, .s-cta.active,
.s-tech.active, .s-usecases.active, .s-connectivity.active {
    opacity: 1;
    transform: translateY(0);
}
