/* ==========================================
   CSS Design Tokens (Salto Systems Inspired)
   ========================================== */
:root {
    /* Color Palette */
    --primary-rgb: 26, 152, 215;
    --primary: rgb(var(--primary-rgb));
    --primary-hover: #127cb4;
    --primary-light: rgba(var(--primary-rgb), 0.08);
    --secondary: #475569;
    --dark: #0b0f19; /* Deep charcoal slate */
    --dark-muted: #1e293b;
    --light: #f8fafc;
    --light-accent: #f1f5f9;
    --border: #e2e8f0;
    --text: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Gaps & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 25px 50px -12px rgba(11, 15, 25, 0.08);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   Base Resets & Typography
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

/* ==========================================
   Utility Classes
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
}

.btn-secondary {
    background-color: var(--light);
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--border);
    transform: translateY(-2px);
}

.btn-success {
    background-color: #10b981;
    color: var(--text-white);
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.btn-block {
    display: flex;
    width: 100%;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #0080ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    color: var(--dark);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: var(--text-white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    padding: calc(var(--header-height) + 60px) 0 80px 0;
    background: 
        linear-gradient(100deg, rgba(11, 15, 25, 0.85) 35%, rgba(11, 15, 25, 0.6) 65%, rgba(11, 15, 25, 0.1) 100%),
        url('img/bg.jpg') no-repeat center center;
    background-size: cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

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

.hero-title {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-description {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 40px;
}

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

.hero-trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-trust p {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.trust-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.trust-icons span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-icons span i {
    font-size: 16px;
    color: #94a3b8;
}

/* ==========================================
   Hero Visual Layout (Device Mockups)
   ========================================== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 380px;
}

.visual-wrapper {
    position: relative;
    width: 320px;
    height: 360px;
}

/* Phone Mockup */
.phone-mockup {
    width: 200px;
    height: 340px;
    background-color: #000000;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    border: 3px solid #334155;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    transition: var(--transition);
}

.phone-screen {
    background-color: #0b0f19;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.phone-time {
    font-family: var(--font-heading);
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.phone-speaker {
    width: 40px;
    height: 4px;
    background-color: #334155;
    border-radius: 2px;
    margin-right: 25px;
}

.wallet-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 16px;
    aspect-ratio: 1.58/1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.wallet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    color: white;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nfc-logo {
    color: rgba(255,255,255,0.6);
    font-size: 10px;
}

.wallet-card-body h3 {
    color: white;
    font-size: 14px;
    margin-bottom: 2px;
}

.wallet-card-body p {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
}

.wallet-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.nfc-icon {
    font-size: 12px;
    color: white;
}

.phone-instruction {
    margin-top: auto;
    text-align: center;
    color: white;
}

.pulse-icon {
    width: 38px;
    height: 38px;
    background-color: rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
    animation: fingerprint-pulse 1.8s infinite ease-in-out;
}

.phone-instruction p {
    font-size: 10px;
    color: #94a3b8;
}

@keyframes fingerprint-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

/* IoT Smart Lock Mockup */
.lock-mockup {
    width: 140px;
    height: 290px;
    background-color: #f1f5f9;
    border-radius: 20px;
    border: 2px solid var(--border);
    position: absolute;
    top: 25px;
    right: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    transition: var(--transition);
}

.lock-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.lock-reader {
    width: 70px;
    height: 70px;
    background-color: #1e293b;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
    position: relative;
    border: 3px solid #334155;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.reader-led {
    position: absolute;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.pulse-blue {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.pulse-green {
    background-color: var(--success);
    box-shadow: 0 0 12px var(--success);
    animation: led-glow 0.8s infinite alternate;
}

@keyframes led-glow {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.lock-handle {
    width: 32px;
    height: 100px;
    background-color: #94a3b8;
    border-radius: 8px;
    position: relative;
    margin-top: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.lock-handle::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #64748b;
    border-radius: 50%;
}

/* ==========================================
   Industry Solutions Section
   ========================================== */
.solutions {
    padding: 100px 0;
    background-color: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px auto;
    padding: 0 24px;
}

.section-title {
    font-size: 38px;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.solutions-grid {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.solution-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.solution-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.solution-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.solution-icon {
    width: 56px;
    height: 56px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: absolute;
    top: -28px;
    left: 40px;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.15);
}

.solution-content h3 {
    font-size: 22px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.solution-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.solution-features li i {
    color: var(--primary);
}

.solution-content .btn {
    margin-top: auto;
}

/* ==========================================
   Product Matrix Section (Products)
   ========================================== */
.products {
    padding: 100px 0;
    background-color: #ffffff;
}

.products-grid {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card-item {
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.p-icon {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-card-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-card-item p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-badge {
    margin-top: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   Core Technology Bento Section
   ========================================== */
.technology {
    padding: 100px 0;
    background-color: var(--light);
    border-top: 1px solid var(--border);
}

.bento-grid {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    grid-gap: 24px;
}

.bento-box {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.bento-large {
    grid-column: 1 / 3;
    background-color: var(--dark);
    color: var(--text-white);
    border: none;
    display: flex;
    gap: 40px;
}

.bento-large-right {
    grid-column: 2 / 4;
}

.bento-large h3, .bento-large p {
    color: white;
}

.bento-large .box-content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-large .bento-visual {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.bento-medium {
    grid-column: span 1;
}

.bento-small {
    grid-column: span 1;
}

.box-icon {
    width: 48px;
    height: 48px;
    background-color: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 24px;
}

.bento-large .box-icon {
    background-color: rgba(255,255,255,0.06);
    color: var(--primary);
    border: 1px solid rgba(255,255,255,0.1);
}

.bento-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.bento-box p {
    font-size: 14px;
    color: var(--text-light);
}

.bento-large p {
    color: rgba(255,255,255,0.7);
}

/* MQTT Node Animation */
.pulsing-network {
    width: 140px;
    height: 140px;
    position: relative;
}

.node {
    position: absolute;
    background-color: var(--primary);
    border-radius: 50%;
}

.n-center {
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--primary);
    z-index: 5;
}

.n-1 { width: 10px; height: 10px; top: 15%; left: 20%; animation: pulse-node 1.5s infinite alternate; }
.n-2 { width: 10px; height: 10px; top: 80%; left: 15%; animation: pulse-node 1.5s infinite alternate 0.5s; }
.n-3 { width: 10px; height: 10px; top: 45%; left: 80%; animation: pulse-node 1.5s infinite alternate 1s; }

@keyframes pulse-node {
    from { transform: scale(0.9); opacity: 0.5; }
    to { transform: scale(1.15); opacity: 1; }
}

.line {
    position: absolute;
    background-color: rgba(var(--primary-rgb), 0.2);
    transform-origin: top left;
}

.l-1 {
    width: 60px;
    height: 1px;
    top: 23%;
    left: 27%;
    transform: rotate(35deg);
}

.l-2 {
    width: 62px;
    height: 1px;
    top: 77%;
    left: 21%;
    transform: rotate(-30deg);
}

.l-3 {
    width: 45px;
    height: 1px;
    top: 50%;
    left: 50%;
    transform: rotate(-5deg);
}

/* ==========================================
   Calculator Section
   ========================================== */
.calculator-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.calc-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.calc-info h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.calc-info p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Cost features list styles */
.calc-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.calc-feature-item .p-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    background-color: var(--primary-light);
    color: var(--primary);
    border: none;
}

.calc-feature-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--dark);
}

.calc-feature-item p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.calc-sliders {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.slider-group {
    display: flex;
    flex-direction: column;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
}

.slider-value {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
}

.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    outline: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
    transition: var(--transition);
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background-color: var(--primary-hover);
}

/* Tier Selector Button Group */
.tier-select-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tier-btn {
    padding: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: #ffffff;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.tier-btn:hover {
    background-color: var(--light);
}

.tier-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

.calc-results {
    background-color: var(--dark);
    color: var(--text-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.calc-results h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--dark-muted);
    padding-bottom: 12px;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.result-icon {
    width: 48px;
    height: 48px;
    background-color: var(--dark-muted);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.result-data {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.result-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
}

#resHardware {
    color: #ffffff;
}

#resSoftware {
    color: var(--primary);
}

.result-unit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.result-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: auto;
    text-align: right;
    max-width: 180px;
}

.calc-cta p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
    display: flex;
    gap: 6px;
}

.calc-cta .calc-hint-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 16px;
    margin-bottom: 20px;
    line-height: 1.55;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
    text-align: left;
    display: block;
}

.text-emerald {
    color: #34d399;
}

/* ==========================================
   Cell-Nexus Software Platform Section
   ========================================== */
.software-platform {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border);
}

.software-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.software-info h2 {
    font-size: 38px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 800;
}

.software-info p.lead {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 36px;
}

.software-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.software-feature-card {
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
}

.software-feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.software-feature-card .sf-icon {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--primary);
}

.software-feature-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark);
}

.software-feature-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Dashboard Mockup Visual */
.software-visual {
    background-color: var(--dark);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.dash-logo {
    color: white;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-status {
    font-size: 11px;
    background-color: rgba(52, 211, 153, 0.15);
    color: #34d399;
    padding: 2px 10px;
    border-radius: 99px;
    font-weight: 600;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.dash-stat-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.dash-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.dash-stat-val {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.dash-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #34d399;
}

.dash-item-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.dash-item-badge {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.software-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================
   Software Platform Responsive
   ========================================== */
@media (max-width: 992px) {
    .software-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .software-info h2 {
        font-size: 32px;
        text-align: center;
    }
    
    .software-info p.lead {
        text-align: center;
        margin-bottom: 24px;
    }
    
    .software-actions {
        justify-content: center;
    }
    
    .software-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .software-features {
        grid-template-columns: 1fr;
    }
    
    .software-info h2 {
        font-size: 26px;
    }
    
    .software-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .software-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   Downloads Section (PDF Center)
   ========================================== */
.downloads {
    padding: 100px 0;
    background-color: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.downloads-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: var(--transition);
}

.download-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.doc-icon {
    font-size: 40px;
    color: var(--danger);
    flex-shrink: 0;
}

.doc-info {
    flex: 1;
}

.doc-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.doc-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.btn-download {
    font-size: 13px;
    padding: 10px 16px;
    position: relative;
    overflow: hidden;
    min-width: 130px;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary);
    width: 0;
    transition: width 0.1s linear;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    padding: 100px 0;
    background-color: #ffffff;
}

.contact-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.contact-info h2 {
    font-size: 38px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-item i {
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.map-placeholder {
    width: 100%;
    height: 200px;
    background-color: #e2e8f0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px), radial-gradient(#cbd5e1 1.5px, #f1f5f9 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    border: 1px solid var(--border);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(11, 15, 25, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    gap: 8px;
    font-family: var(--font-heading);
}

.map-overlay i {
    font-size: 28px;
}

.contact-form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.contact-form label {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 0 0;
    border-top: 1px solid var(--dark-muted);
}

.footer-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px 60px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 80px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 24px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 340px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 24px;
    text-align: center;
    font-size: 13px;
}

/* ==========================================
   Toast Notifications
   ========================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 18px;
}

.toast-success i {
    color: var(--success);
}

.toast-info i {
    color: var(--primary);
}

.toast-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-content p {
    font-size: 12px;
    color: var(--text-light);
}

/* ==========================================
   Responsive RWD Queries
   ========================================== */
@media (max-width: 1024px) {
    .hero-container,
    .solutions-grid,
    .calc-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 40px);
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .bento-large,
    .bento-large-right {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .nav-menu.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    .nav-cta {
        width: 100%;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large,
    .bento-large-right {
        grid-column: span 1;
    }
    
    .bento-large {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================
   Language Switcher (i18n)
   ========================================== */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-caret {
    font-size: 10px;
    opacity: 0.6;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 6px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: var(--transition);
    z-index: 1200;
}

.lang-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-dropdown button {
    text-align: left;
    padding: 10px 14px;
    background: none;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.lang-dropdown button:hover {
    background-color: var(--light-accent);
    color: var(--primary);
}

.lang-dropdown button.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

/* i18n Font Stacks (JA / TH) */
body.lang-ja,
body.lang-ja h1, body.lang-ja h2, body.lang-ja h3,
body.lang-ja h4, body.lang-ja h5, body.lang-ja h6,
body.lang-ja .btn {
    font-family: 'Noto Sans JP', 'Inter', system-ui, sans-serif;
}

body.lang-th,
body.lang-th h1, body.lang-th h2, body.lang-th h3,
body.lang-th h4, body.lang-th h5, body.lang-th h6,
body.lang-th .btn {
    font-family: 'Noto Sans Thai', 'Inter', system-ui, sans-serif;
}

body.lang-th { line-height: 1.75; }

/* Circular Flag Icons */
.flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    position: relative;
}

.flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.flag::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.lang-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Prevent nav items from wrapping in longer languages (JA/TH/EN) */
.nav-link,
.nav-cta,
.lang-btn {
    white-space: nowrap;
}

body.lang-ja .nav-menu,
body.lang-th .nav-menu {
    gap: 20px;
}

body.lang-ja .nav-link,
body.lang-th .nav-link {
    font-size: 14px;
}

body.lang-ja .nav-cta,
body.lang-th .nav-cta {
    font-size: 14px;
    padding: 10px 16px;
}

@media (max-width: 768px) {
    body.lang-ja .nav-menu,
    body.lang-th .nav-menu {
        gap: 20px;
    }
}

/* ==========================================
   RWD Fix: switch to hamburger nav earlier
   (6 nav links + lang switcher overflow the
   header below ~1150px, esp. in JA/EN)
   ========================================== */
@media (max-width: 1150px) {
    .header-container {
        position: relative;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: var(--transition);
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-cta {
        width: 100%;
    }

}

/* Small screens: stack form rows */
@media (max-width: 480px) {
    .form-group-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }
}

/* ==========================================
   Lang switcher outside nav (in header-actions):
   restore compact pill at ALL widths
   (overrides earlier full-width mobile rules)
   ========================================== */
.lang-switcher {
    width: auto;
    margin-left: 0;
}
.lang-btn {
    width: auto;
    justify-content: center;
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: auto;
    min-width: 150px;
    box-shadow: var(--shadow-md);
    display: flex;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    margin-top: 0;
}
.lang-dropdown.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Footer CTA buttons (Cell-Nexus / Space / Nestech) */
.footer-cta {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px 40px 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-cta .btn {
    padding: 13px 28px;
    font-size: 15px;
}

.btn-godspeed-grad {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-godspeed-grad:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-nestech {
    background-color: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.btn-nestech:hover {
    transform: translateY(-2px);
    background-color: #172554;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.4);
}

.btn-godspeed-key {
    background-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-godspeed-key:hover {
    transform: translateY(-2px);
    background-color: #4338ca;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

/* Footer CTA: keep all four buttons on one row */
.footer-cta {
    gap: 12px;
    flex-wrap: nowrap;
}

.footer-cta .btn {
    padding: 12px 16px;
    font-size: 13.5px;
    white-space: nowrap;
    flex-shrink: 1;
}

@media (max-width: 1100px) {
    .footer-cta {
        flex-wrap: wrap;
    }
}
