/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    /* LED Colors - Merah=Kualitas, Kuning=Mesin, Hijau=Material/Proses */
    --quality-red: #dc2626;
    --machine-yellow: #f59e0b;
    --process-green: #10b981;
    
    /* Background */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Border */
    --border-color: #334155;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    animation: float 20s infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeIn 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease 0.8s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-center {
    display: block;
    margin: 2rem auto 0;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeIn 1s ease 1s both;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.5s both;
}

.device-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.device {
    width: 200px;
    height: 250px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.device::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.device-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.signal-indicator {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.signal-bar {
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: signalWave 1.5s infinite;
}

.signal-bar:nth-child(1) {
    height: 20px;
    animation-delay: 0s;
}

.signal-bar:nth-child(2) {
    height: 35px;
    animation-delay: 0.2s;
}

.signal-bar:nth-child(3) {
    height: 50px;
    animation-delay: 0.4s;
}

.device-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.device-status {
    font-size: 0.875rem;
    color: var(--success-color);
}

.led-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0.25rem;
}

.led-red {
    background: var(--material-red);
    box-shadow: 0 0 10px var(--material-red);
}

.led-yellow {
    background: var(--quality-yellow);
    box-shadow: 0 0 10px var(--quality-yellow);
}

.led-green {
    background: var(--help-green);
    box-shadow: 0 0 10px var(--help-green);
}

.connection-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    position: relative;
    animation: pulseLine 2s infinite;
}

.connection-line::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid var(--secondary-color);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.about-desc h3 {
    margin-bottom: 0.5rem;
}

.about-desc p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.comparison-item {
    flex: 1;
    text-align: center;
}

.comparison-item h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.comparison-item ul {
    list-style: none;
}

.comparison-item li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.comparison-item.modern {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.comparison-arrow {
    font-size: 2rem;
    color: var(--primary-color);
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: 6rem 0;
}

.workflow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    opacity: 0.5;
    transition: all 0.8s ease;
}

.workflow-step.active {
    opacity: 1;
    transform: scale(1.05);
}

.step-visual {
    position: relative;
    margin-bottom: 1.5rem;
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
    transition: all 0.6s ease;
}

.workflow-step.active .step-icon {
    box-shadow: var(--shadow-glow);
    animation: pulse 2s infinite;
}

.step-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
}

.workflow-step.active .step-pulse {
    animation: ripple 2s infinite;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.workflow-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    animation: arrowPulse 2s infinite;
}

/* ============================================
   Demo Section
   ============================================ */
.demo {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.demo-station {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.demo-station h3 {
    margin-bottom: 2rem;
}

.keypad-demo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.keypad-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.keypad-btn {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 90px;
    position: relative;
}

.keypad-number {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.6;
}

.keypad-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.keypad-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.keypad-btn.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.keypad-quality:hover,
.keypad-quality.active {
    border-color: var(--quality-red);
    background: rgba(220, 38, 38, 0.15);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

.keypad-quality.active {
    animation: qualityPulse 1s infinite;
}

.keypad-machine:hover,
.keypad-machine.active {
    border-color: var(--machine-yellow);
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.keypad-machine.active {
    animation: machinePulse 1.2s infinite;
}

.keypad-process:hover,
.keypad-process.active {
    border-color: var(--process-green);
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.keypad-process.active {
    animation: processPulse 1s infinite;
}

@keyframes qualityPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(220, 38, 38, 0.6);
    }
}

@keyframes machinePulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
    }
}

@keyframes processPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
    }
}

.keypad-reset {
    width: 100%;
}

.demo-visualization {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    margin: 0 auto;
}

.data-flow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
}

.flow-item {
    text-align: center;
    min-width: 200px;
    max-width: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flow-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.flow-item.active .flow-icon {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    animation: pulse 1s infinite;
}

.flow-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

.flow-data {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    min-height: 60px;
    width: 100%;
    max-width: 250px;
    word-break: break-all;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    line-height: 1.5;
    white-space: pre-line;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-arrow-demo {
    font-size: 2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

.flow-arrow-demo.active {
    color: var(--primary-color);
    animation: arrowPulse 1s infinite;
}

/* Arrow active when previous item is active (for horizontal layout) */
.flow-item.active ~ .flow-arrow-demo {
    color: var(--primary-color);
    animation: arrowPulse 1s infinite;
}

.led-display {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.led-display h4 {
    margin-bottom: 1rem;
}

.led-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.led-item {
    text-align: center;
}

.led {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.led.active {
    border-color: currentColor;
    box-shadow: 0 0 20px currentColor;
}

.led-red.active {
    background: var(--quality-red);
    color: var(--quality-red);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
}

.led-red.active.blink {
    animation: blink 1s infinite;
}

.led-yellow.active {
    background: var(--machine-yellow);
    color: var(--machine-yellow);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.led-yellow.active.blink {
    animation: blink 1s infinite;
}

.led-green.active {
    background: var(--process-green);
    color: var(--process-green);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.led-green.active.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-display {
    text-align: center;
}

.status-display h4 {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.25rem;
}

.status-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
    /* align-items: center; */
    width: 100%;
}

.status-container::-webkit-scrollbar {
    width: 6px;
}

.status-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.status-container::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.status-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.status-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-empty i {
    font-size: 2rem;
    opacity: 0.5;
}

.status-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 1000px;
    justify-content: space-between;
}

.status-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.status-card.active {
    border-width: 2px;
}

.status-card.quality.active {
    border-color: var(--quality-red);
    background: rgba(220, 38, 38, 0.05);
}

.status-card.machine.active {
    border-color: var(--machine-yellow);
    background: rgba(245, 158, 11, 0.05);
}

.status-card.process.active {
    border-color: var(--process-green);
    background: rgba(16, 185, 129, 0.05);
}

.status-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    min-width: 2.5rem;
    width: 2.5rem;
    text-align: center;
    flex-shrink: 0;
}

.status-card.active .status-icon {
    animation: pulse 2s infinite;
}

.status-card.quality.active .status-icon {
    color: var(--quality-red);
}

.status-card.machine.active .status-icon {
    color: var(--machine-yellow);
}

.status-card.process.active .status-icon {
    color: var(--process-green);
}

.status-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-station {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
}

.status-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.3;
}

.status-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

.status-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.buzzer-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--machine-yellow);
    justify-content: flex-end;
    width: 100%;
}

.buzzer-indicator i {
    animation: pulse 1s infinite;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Benefits Section
   ============================================ */
.benefits {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
}

.benefit-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.benefit-content h3 {
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.metrics-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
}

.metrics-card h4 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.metric-item {
    margin-bottom: 2rem;
}

.metric-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.metric-bar {
    width: 100%;
    height: 30px;
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    transition: width 1s ease;
    width: 0;
}

.metric-value {
    text-align: right;
    font-weight: 700;
    color: var(--primary-color);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    position: relative;
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.info-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.contact-link:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-link.whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.contact-time {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.contact-form-wrapper {
    position: relative;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.contact-form-card h3 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) translateX(20px) rotate(5deg);
    }
    66% {
        transform: translateY(20px) translateX(-20px) rotate(-5deg);
    }
}

@keyframes signalWave {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 50px;
    }
}

@keyframes pulseLine {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes ripple {
    0% {
        width: 100px;
        height: 100px;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
        z-index: 999;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .logo {
        font-size: 1.125rem;
    }

    .logo i {
        font-size: 1.25rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .device-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .device {
        width: 150px;
        height: 190px;
    }

    .connection-line {
        width: 3px;
        height: 60px;
        transform: rotate(90deg);
    }

    .connection-line::after {
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 10px solid var(--secondary-color);
        border-bottom: none;
    }

    .scroll-indicator {
        bottom: 1rem;
        font-size: 1.25rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* About Section */
    .about {
        padding: 4rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .about-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto;
    }

    .comparison-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .comparison-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }

    /* How It Works Section */
    .how-it-works {
        padding: 4rem 0;
    }

    .workflow-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .workflow-step {
        max-width: 100%;
        min-width: auto;
    }

    .workflow-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }

    .step-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .step-pulse {
        width: 80px;
        height: 80px;
    }

    /* Demo Section */
    .demo {
        padding: 4rem 0;
    }

    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .demo-station {
        padding: 1.5rem;
    }

    .demo-station h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .led-display {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .led-display h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .led-container {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .led {
        width: 50px;
        height: 50px;
    }

    .keypad-grid {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .keypad-btn {
        min-height: 70px;
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .keypad-number {
        font-size: 0.75rem;
        top: 0.375rem;
        left: 0.375rem;
    }

    .keypad-label {
        font-size: 0.625rem;
    }

    .demo-visualization {
        width: 100%;
        padding: 1.5rem;
    }

    .data-flow {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .flow-item {
        min-width: auto;
        max-width: 100%;
        width: 100%;
    }

    .flow-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .flow-label {
        font-size: 0.875rem;
    }

    .flow-data {
        font-size: 0.7rem;
        min-height: 50px;
        max-width: 100%;
        padding: 0.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .flow-arrow-demo {
        transform: rotate(90deg);
        font-size: 1.5rem;
        min-width: auto;
        width: 100%;
        margin: 0.5rem 0;
    }

    .status-display {
        margin-top: 1.5rem;
    }

    .status-display h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .status-container {
        max-height: 250px;
    }

    .status-card {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
        text-align: center;
    }

    .status-left,
    .status-right {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .status-right {
        align-items: center;
    }

    .status-icon {
        width: 100%;
        justify-content: center;
        font-size: 1.25rem;
    }

    .status-title {
        font-size: 0.9375rem;
    }

    .status-desc {
        font-size: 0.8125rem;
    }

    .buzzer-indicator {
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* Features Section */
    .features {
        padding: 4rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1.125rem;
    }

    .feature-card p {
        font-size: 0.9375rem;
    }

    /* Benefits Section */
    .benefits {
        padding: 4rem 0;
    }

    .benefits-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .benefit-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto;
    }

    .benefit-content h3 {
        font-size: 1.125rem;
    }

    .benefit-content p {
        font-size: 0.9375rem;
    }

    .metrics-card {
        padding: 1.5rem;
    }

    .metrics-card h4 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .metric-item {
        margin-bottom: 1.5rem;
    }

    .metric-label {
        font-size: 0.9375rem;
    }

    .metric-bar {
        height: 25px;
    }

    .metric-value {
        font-size: 0.9375rem;
    }

    /* CTA Section */
    .cta {
        padding: 4rem 0;
    }

    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-large {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Contact Section */
    .contact-section {
        padding: 4rem 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-card {
        padding: 1.5rem;
    }

    .contact-form-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .info-card h3 {
        font-size: 1.25rem;
    }

    .contact-link {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        font-size: 1.25rem;
    }

    .footer-section h4 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    /* Floating Shapes - Hide on mobile for performance */
    .floating-shape {
        display: none;
    }

    /* Grid Pattern - Reduce opacity on mobile */
    .grid-pattern {
        opacity: 0.15;
    }
}

/* ============================================
   Landscape Notification
   ============================================ */
.landscape-notification {
    display: none;
    position: sticky;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 15px;
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease;
    pointer-events: none;
}

.landscape-notification.show {
    display: block;
}

.landscape-notification.hide {
    animation: slideUp 0.3s ease forwards;
}

.notification-content {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.7), rgba(139, 92, 246, 0.7));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    pointer-events: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.notification-content:hover {
    opacity: 1;
}

.notification-content i.fa-mobile-alt {
    font-size: 1.25rem;
    color: white;
    animation: rotate 2s ease-in-out infinite;
    flex-shrink: 0;
    opacity: 0.9;
}

.notification-text {
    flex: 1;
    font-size: 0.8125rem;
    line-height: 1.4;
    opacity: 0.95;
}

.notification-text strong {
    font-weight: 600;
}

.notification-close {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    flex-shrink: 0;
    opacity: 0.8;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
    opacity: 1;
}

.notification-close i {
    font-size: 0.875rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-90deg);
    }
    75% {
        transform: rotate(90deg);
    }
}

/* Hide notification on landscape mode */
@media (orientation: landscape) and (max-width: 768px) {
    .landscape-notification {
        display: none !important;
    }
}

/* Show notification only on mobile portrait - but controlled by JS */
@media (orientation: portrait) and (max-width: 768px) {
    .landscape-notification.show {
        display: block;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .landscape-notification {
        display: none !important;
    }
}

/* ============================================
   Floating WhatsApp Button (Desktop Only)
   ============================================ */
.floating-wa-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: float 3s ease-in-out infinite;
    overflow: visible;
}

.floating-wa-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.wa-icon-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 2s ease-in-out infinite;
}

.floating-wa-btn:hover .wa-icon-wrapper {
    animation: iconBounce 0.6s ease-in-out;
}

.wa-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid #25d366;
    border-radius: 50%;
    opacity: 0;
    animation: pulseRing 2s ease-out infinite;
}

.floating-wa-btn:hover .wa-pulse-ring {
    animation: pulseRingFast 1s ease-out infinite;
}

.wa-tooltip {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--bg-card);
}

.floating-wa-btn:hover .wa-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .floating-wa-btn {
        display: none !important;
    }
}

/* Desktop only animations */
@media (min-width: 769px) {
    @keyframes float {
        0%, 100% {
            transform: translateY(0px) rotate(0deg);
        }
        50% {
            transform: translateY(-10px) rotate(5deg);
        }
    }

    @keyframes iconPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
    }

    @keyframes iconBounce {
        0%, 100% {
            transform: scale(1);
        }
        25% {
            transform: scale(0.9) rotate(-5deg);
        }
        75% {
            transform: scale(1.1) rotate(5deg);
        }
    }

    @keyframes pulseRing {
        0% {
            width: 64px;
            height: 64px;
            opacity: 1;
        }
        100% {
            width: 120px;
            height: 120px;
            opacity: 0;
        }
    }

    @keyframes pulseRingFast {
        0% {
            width: 64px;
            height: 64px;
            opacity: 0.8;
        }
        100% {
            width: 140px;
            height: 140px;
            opacity: 0;
        }
    }
}

/* Extra small devices (phones in portrait, less than 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    .keypad-btn {
        min-height: 60px;
        padding: 0.625rem;
    }

    .led {
        width: 40px;
        height: 40px;
    }

    .device {
        width: 120px;
        height: 150px;
    }

    .flow-data {
        font-size: 0.65rem;
        padding: 0.375rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }
}

