/* ==========================================
   CSS Design Tokens (Variables)
   ========================================== */
:root {
    /* Colors */
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.1);
    --secondary: #64748b;
    --dark: #0f172a;
    --dark-muted: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --text: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Gaps & Paddings */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Font Family */
    --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 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 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.25;
}

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 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-lg {
    padding: 14px 28px;
    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 20px rgba(16, 185, 129, 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-block {
    display: flex;
    width: 100%;
}

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

.text-success { color: var(--success); }
.text-primary { color: #3b82f6; }
.text-warning { color: var(--warning); }

.premium-shadow {
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.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: 16px;
}

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

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 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(12px);
    -webkit-backdrop-filter: blur(12px);
    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.95);
    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: 10px;
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--dark);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    color: var(--text-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.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);
}

.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: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
    min-height: 80vh;
    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: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 36px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border);
}

/* ==========================================
   iPad Screen & Frame Mockup
   ========================================== */
.ipad-frame {
    width: 100%;
    max-width: 520px;
    background-color: #000;
    border-radius: 36px;
    padding: 24px 12px;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.25);
    margin: 0 auto;
    position: relative;
    border: 4px solid #1e293b;
}

.ipad-screen {
    background-color: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
}

.ipad-header {
    height: 52px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
}

.ipad-camera {
    width: 6px;
    height: 6px;
    background-color: #1e293b;
    border-radius: 50%;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.ipad-tabs {
    display: flex;
    width: 100%;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 3px;
    margin: 6px 0;
}

.ipad-tab {
    flex: 1;
    border: none;
    background: none;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.ipad-tab.active {
    background-color: #ffffff;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.ipad-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.mockup-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
    transition: all 0.4s ease;
    padding: 20px;
}

.mockup-view.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Vsitor Mockup View Styles */
.vsitor-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.vsitor-logo {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.vsitor-home h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.vsitor-home p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.vsitor-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.mock-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

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

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

.mock-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.vsitor-footer {
    font-size: 11px !important;
    margin-top: 20px;
    margin-bottom: 0 !important;
}

/* Meeting Mockup View Styles */
.meeting-display {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.room-status-bar {
    padding: 14px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-busy {
    background-color: var(--danger);
}

.status-free {
    background-color: var(--success);
}

.room-info h3 {
    color: white;
    font-size: 16px;
}

.room-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    margin-top: 2px;
}

.status-badge {
    background-color: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.meeting-schedule {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.current-meeting {
    display: flex;
    flex-direction: column;
}

.time-slot {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.status-busy .time-slot {
    color: var(--danger);
}

.meeting-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin: 4px 0;
}

.meeting-organizer {
    font-size: 11px;
    color: var(--text-light);
}

.divider {
    height: 1px;
    background-color: var(--border);
    margin: 12px 0;
}

.upcoming-meetings h4 {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
}

.upcoming-item .time-slot {
    color: var(--text-light);
    width: 90px;
}

.upcoming-item .meeting-title {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 10px;
}

.upcoming-item .meeting-organizer {
    font-size: 11px;
}

.meeting-actions {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background-color: #f8fafc;
}

.mock-btn-success {
    background-color: var(--success);
    color: white;
}

/* ==========================================
   Double Product Showcase Section
   ========================================== */
.showcase {
    padding: 80px 0;
    background-color: var(--light);
}

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

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

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

.product-grid {
    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;
    margin-bottom: 100px;
}

.product-grid:last-child {
    margin-bottom: 0;
}

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

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.badge-vsitor {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.badge-meeting {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.product-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.product-desc {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 28px;
}

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

.feature-list li {
    display: flex;
    gap: 16px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.badge-meeting ~ .feature-list .feature-icon {
    color: #3b82f6;
}

.feature-list h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

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

.product-image {
    position: relative;
}

.product-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.floating-card {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

.floating-card h5 {
    font-size: 13px;
    margin-bottom: 2px;
}

.floating-card p {
    font-size: 11px;
    color: var(--text-light);
}

.c-1 {
    bottom: 20px;
    left: -20px;
}

.c-2 {
    top: 20px;
    right: -20px;
    animation-delay: 2s;
}

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

/* ==========================================
   Bento Grid Section
   ========================================== */
.bento {
    padding: 80px 0;
    background-color: #ffffff;
}

.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;
    grid-template-rows: auto auto;
}

.bento-box {
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-box:hover {
    transform: translateY(-5px);
    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;
    flex-direction: row;
    gap: 40px;
}

.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;
    position: relative;
    min-height: 180px;
}

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

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

.box-content {
    position: relative;
    z-index: 2;
}

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

.bento-large .box-icon {
    background-color: var(--primary-light);
    color: var(--primary);
}

.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 Waves Animation */
.sensor-wave {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-dot {
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 20px var(--primary);
}

.wave-circle {
    position: absolute;
    border: 1px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: wave 3s infinite linear;
}

.wc-1 { width: 40px; height: 40px; animation-delay: 0s; }
.wc-2 { width: 80px; height: 80px; animation-delay: 1s; }
.wc-3 { width: 120px; height: 120px; animation-delay: 2s; }

@keyframes wave {
    0% { transform: scale(0.5); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ==========================================
   Interactive Calculator Section
   ========================================== */
.calculator-section {
    padding: 80px 0;
    background: radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
}

.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: 36px;
    margin-bottom: 16px;
}

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

.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: 10px;
    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(16, 185, 129, 0.4);
    transition: var(--transition);
}

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

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

.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: 12px;
    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;
}

#resCost {
    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.6);
    margin-left: auto;
    text-align: right;
    max-width: 180px;
}

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

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

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    padding: 100px 0;
    background-color: var(--light);
}

.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: 36px;
    margin-bottom: 20px;
}

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

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

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

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

.contact-form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    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: 8px;
    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(16, 185, 129, 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.7);
    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: 20px;
}

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

.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 var(--dark-muted);
    padding: 30px 24px;
    text-align: center;
    font-size: 13px;
}

/* ==========================================
   Toast Notification Styling
   ========================================== */
.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.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

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

.toast-info i {
    color: #3b82f6;
}

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

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

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

@media (max-width: 768px) {
    .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%;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .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);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.lang-dropdown button.active {
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--primary);
    font-weight: 700;
}

/* Circular Flag Icons */
.flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
    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);
}

/* 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; }

/* Prevent nav items from wrapping in longer languages */
.nav-link,
.nav-cta {
    white-space: nowrap;
}

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

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) {
    .lang-switcher {
        width: 100%;
    }
    .lang-btn {
        width: 100%;
        justify-content: center;
    }
    .lang-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        margin-top: 8px;
    }
    .lang-dropdown.open {
        display: flex;
    }
}

/* ==========================================
   RWD Fix: switch to hamburger nav earlier
   (horizontal nav + lang switcher overflows
   between 769px and ~1080px, esp. in JA/EN)
   ========================================== */
@media (max-width: 1080px) {
    .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%;
    }

    .lang-switcher {
        width: 100%;
    }
    .lang-btn {
        width: 100%;
        justify-content: center;
    }
    .lang-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        margin-top: 8px;
    }
    .lang-dropdown.open {
        display: flex;
    }
}

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

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

    .ipad-frame {
        border-radius: 24px;
        padding: 16px 8px;
    }
}

/* ==========================================
   Header actions: lang switcher outside nav,
   always visible next to the hamburger
   ========================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Restore compact switcher 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;
}
