 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 :root {
     --primary-blue: #3B82F6;
     --primary-green: #10B981;
     --primary-purple: #8B5CF6;
     --primary-amber: #F59E0B;
     --primary-red: #EF4444;
     --slate-900: #0F172A;
     --slate-800: #1E293B;
     --slate-700: #334155;
     --slate-600: #475569;
     --slate-500: #64748B;
     --slate-400: #94A3B8;
     --slate-300: #CBD5E1;
     --slate-100: #F1F5F9;
     --white: #FFFFFF;
 }

 body {
     font-family: 'Inter', sans-serif;
     background-color: var(--slate-900);
     color: var(--white);
     line-height: 1.6;
 }

 .hero {
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 8rem 5% 4rem;
     position: relative;
     overflow: hidden;
 }

 .hero-bg {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background:
         radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
         radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
         radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
 }

 .hero-grid {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background-image:
         linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
         linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
     background-size: 60px 60px;
 }

 .hero-content {
     max-width: 1200px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 4rem;
     align-items: center;
     position: relative;
     z-index: 1;
 }

 .hero-text h1 {
     font-size: 3.5rem;
     font-weight: 700;
     line-height: 1.1;
     margin-bottom: 1.5rem;
 }

 .hero-text h1 span {
     background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
 }

 .hero-text p {
     font-size: 1.125rem;
     color: var(--slate-400);
     margin-bottom: 2rem;
     max-width: 500px;
 }

 .hero-buttons {
     display: flex;
     gap: 1rem;
     margin-bottom: 3rem;
 }

 .btn-large {
     padding: 1rem 2rem;
     font-size: 1rem;
 }

 .hero-stats {
     display: flex;
     gap: 3rem;
 }

 .stat {
     text-align: left;
 }

 .stat-number {
     font-size: 2rem;
     font-weight: 700;
     color: var(--white);
 }

 .stat-label {
     font-size: 0.875rem;
     color: var(--slate-500);
 }

 /* Dashboard Preview */
 .dashboard-preview {
     background: var(--slate-800);
     border-radius: 16px;
     border: 1px solid var(--slate-700);
     padding: 1.5rem;
     box-shadow:
         0 25px 50px -12px rgba(0, 0, 0, 0.5),
         0 0 0 1px rgba(255, 255, 255, 0.05);
 }

 .dashboard-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 1.5rem;
 }

 .dashboard-title {
     font-size: 1rem;
     font-weight: 600;
 }

 .status-badge {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.375rem 0.75rem;
     background: rgba(16, 185, 129, 0.1);
     border: 1px solid rgba(16, 185, 129, 0.3);
     border-radius: 20px;
     font-size: 0.75rem;
     color: var(--primary-green);
 }

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

 @keyframes pulse {

     0%,
     100% {
         opacity: 1;
     }

     50% {
         opacity: 0.5;
     }
 }

 .sensor-cards {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 1rem;
     margin-bottom: 1.5rem;
 }

 .sensor-card {
     background: var(--slate-900);
     border-radius: 12px;
     padding: 1rem;
     border: 1px solid var(--slate-700);
 }

 .sensor-card-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 0.5rem;
 }

 .sensor-label {
     font-size: 0.75rem;
     color: var(--slate-500);
     text-transform: uppercase;
     letter-spacing: 0.05em;
 }

 .sensor-icon {
     width: 24px;
     height: 24px;
     border-radius: 6px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.75rem;
 }

 .sensor-icon.temp {
     background: rgba(239, 68, 68, 0.2);
     color: var(--primary-red);
 }

 .sensor-icon.humid {
     background: rgba(59, 130, 246, 0.2);
     color: var(--primary-blue);
 }

 .sensor-icon.light {
     background: rgba(245, 158, 11, 0.2);
     color: var(--primary-amber);
 }

 .sensor-icon.volt {
     background: rgba(16, 185, 129, 0.2);
     color: var(--primary-green);
 }

 .sensor-value {
     font-size: 1.5rem;
     font-weight: 700;
 }

 .sensor-unit {
     font-size: 0.875rem;
     color: var(--slate-500);
     font-weight: 400;
 }

 .sensor-trend {
     font-size: 0.75rem;
     color: var(--primary-green);
     display: flex;
     align-items: center;
     gap: 0.25rem;
 }

 .sensor-trend.down {
     color: var(--primary-red);
 }

 /* Mini Chart */
 .mini-chart {
     background: var(--slate-900);
     border-radius: 12px;
     padding: 1rem;
     border: 1px solid var(--slate-700);
 }

 .chart-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 1rem;
 }

 .chart-title {
     font-size: 0.875rem;
     font-weight: 600;
 }

 .chart-period {
     font-size: 0.75rem;
     color: var(--slate-500);
 }

 #dashboard-graph {
     width: 100%;
     height: 120px;
     display: block;
     border-radius: 8px;
 }

 /* Features Section */
 .features {
     padding: 6rem 5%;
     background: var(--slate-800);
 }

 .section-header {
     text-align: center;
     max-width: 600px;
     margin: 0 auto 4rem;
 }

 .section-label {
     font-size: 0.875rem;
     font-weight: 600;
     color: var(--primary-blue);
     text-transform: uppercase;
     letter-spacing: 0.1em;
     margin-bottom: 1rem;
 }

 .section-title {
     font-size: 2.5rem;
     font-weight: 700;
     margin-bottom: 1rem;
 }

 .section-desc {
     color: var(--slate-400);
     font-size: 1.125rem;
 }



 /* Connection Section */
 .connection {
     padding: 6rem 5%;
 }

 .connection-content {
     max-width: 1200px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 4rem;
     align-items: center;
 }

 .connection-types {
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
 }

 .connection-card {
     background: var(--slate-800);
     border-radius: 16px;
     padding: 1.5rem;
     border: 1px solid var(--slate-700);
     display: flex;
     align-items: flex-start;
     gap: 1.5rem;
     transition: all 0.3s ease;
 }

 .connection-card:hover {
     border-color: var(--primary-blue);
 }

 .connection-icon {
     width: 56px;
     height: 56px;
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.5rem;
     flex-shrink: 0;
 }

 .connection-icon.usb {
     background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
 }

 .connection-icon.wifi {
     background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
 }

 .wifi-icon {
     margin-top: 20px;
     --n: 3;
     /* number of bars */
     height: 50px;
     aspect-ratio: 1;
     border-radius: 50%;
     --s: calc(100%/(2*var(--n) - 1));
     background:
         repeating-radial-gradient(50% 50%,
             #0000 0, #178feb 1px calc(var(--s) - 1px),
             #0000 var(--s) calc(2*var(--s)));
     mask:
         conic-gradient(#000 0 0) no-repeat 50%/var(--s) var(--s),
         conic-gradient(from -45deg at 50% calc(50% + var(--s)/2),
             #000 90deg, #0000 0);
 }

 .connection-info h3 {
     font-size: 1.25rem;
     font-weight: 600;
     margin-bottom: 0.5rem;
 }

 .connection-info p {
     color: var(--slate-400);
     font-size: 0.9375rem;
     margin-bottom: 1rem;
 }

 .connection-tags {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
 }

 .tag {
     padding: 0.25rem 0.75rem;
     background: var(--slate-700);
     border-radius: 20px;
     font-size: 0.75rem;
     color: var(--slate-300);
 }

 /* Code Preview */
 .code-preview {
     background: var(--slate-800);
     border-radius: 16px;
     border: 1px solid var(--slate-700);
     overflow: hidden;
 }

 .code-header {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     padding: 1rem 1.5rem;
     background: var(--slate-900);
     border-bottom: 1px solid var(--slate-700);
 }

 .code-dot {
     width: 12px;
     height: 12px;
     border-radius: 50%;
 }

 .code-dot.red {
     background: #EF4444;
 }

 .code-dot.yellow {
     background: #F59E0B;
 }

 .code-dot.green {
     background: #10B981;
 }

 .code-body {
     padding: 1.5rem;
     font-family: 'Monaco', 'Menlo', monospace;
     font-size: 0.875rem;
     line-height: 1.8;
     overflow-x: auto;
 }

 .code-line {
     display: flex;
 }

 .line-number {
     color: var(--slate-600);
     min-width: 2rem;
     user-select: none;
 }

 .code-comment {
     color: var(--slate-500);
 }

 .code-keyword {
     color: var(--primary-purple);
 }

 .code-function {
     color: var(--primary-blue);
 }

 .code-string {
     color: var(--primary-green);
 }

 .code-number {
     color: var(--primary-amber);
 }

 /* CTA Section */
 .cta {
     padding: 6rem 5%;
     text-align: center;
     position: relative;
     overflow: hidden;
 }

 .cta-bg {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background:
         radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
 }

 .cta-content {
     position: relative;
     z-index: 1;
     max-width: 700px;
     margin: 0 auto;
 }

 .cta h2 {
     font-size: 2.5rem;
     font-weight: 700;
     margin-bottom: 1rem;
 }

 .cta p {
     color: var(--slate-400);
     font-size: 1.125rem;
     margin-bottom: 2rem;
 }

 .cta-buttons {
     display: flex;
     justify-content: center;
     gap: 1rem;
 }


 /* Responsive */
 @media (max-width: 1024px) {
     .hero-content {
         grid-template-columns: 1fr;
         text-align: center;
     }

     .hero-text p {
         margin: 0 auto 2rem;
     }

     .hero-buttons {
         justify-content: center;
     }

     .hero-stats {
         justify-content: center;
     }

     .dashboard-preview {
         max-width: 500px;
         margin: 0 auto;
     }

     .features-grid {
         grid-template-columns: repeat(2, 1fr);
     }

     .connection-content {
         grid-template-columns: 1fr;
     }

     .footer-content {
         grid-template-columns: repeat(2, 1fr);
     }
 }

 @media (max-width: 768px) {
     .navbar {
         padding: 1rem;
     }

     .nav-links {
         display: none;
     }

     .hero-text h1 {
         font-size: 2.5rem;
     }

     .features-grid {
         grid-template-columns: 1fr;
     }

     .sensor-cards {
         grid-template-columns: 1fr;
     }

     .hero-stats {
         flex-direction: column;
         gap: 1.5rem;
     }

     .footer-content {
         grid-template-columns: 1fr;
         gap: 2rem;
     }

     .footer-bottom {
         flex-direction: column;
         gap: 1rem;
         text-align: center;
     }

     .cta h2 {
         font-size: 2rem;
     }

     .cta-buttons {
         flex-direction: column;
         align-items: center;
     }
 }

 .features {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 2.5rem;
     padding: 5rem 3rem;
     max-width: 1900px;
     margin: 0 auto;
 }

 .feature-card {
     background: black;
     border-radius: 20px;
     padding: 2.5rem;
     text-align: center;
     transition: transform 0.3s, box-shadow 0.3s;
     border: 1px solid #21262d;
 }

 .feature-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 15px 40px rgba(58, 134, 255, 0.15);
     border-color: var(--primary-color);
 }

 .widget-preview {
     width: 150px;
     height: 150px;
     margin: 0 auto 2rem;
     background: #0d1117;
     border-radius: 50%;
     /* Circle preview */
     display: flex;
     align-items: center;
     justify-content: center;
     position: relative;
     box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.5);
 }

 .feature-card h3 {
     font-size: 1.5rem;
     margin-bottom: 0.5rem;
     color: var(--text-color-light);
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
 }

 .feature-card h3 i {
     color: var(--primary-color);
     font-size: 1.2em;
 }

 .feature-card p {
     color: var(--text-color-dark);
     line-height: 1.6;
 }

 .beta-tag {
     background: #ff5757;
     padding: 2px 8px;
     border-radius: 20px;
     color: #ffffff;
     font-size: 0.8rem;
     font-weight: 500;
 }

 .action-btn {
     margin-top: 1.5rem;
     background: var(--primary-color);
     color: #fff;
     text-decoration: none;
     border: none;
     padding: 0.8rem 1.8rem;
     border-radius: 6px;
     font-size: 1rem;
     font-weight: 600;
     cursor: pointer;
     transition: background 0.3s, transform 0.2s;
 }

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

 .action-help {
     /* background: #21262d; */
     background: var(--primary-color);
     color: var(--text-color-light);
 }

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

 .icon-help {
     font-size: 4rem;
     color: var(--text-color-dark);
 }

 .toggle-switch {
     width: 120px;
     height: 60px;
     background: #ff5252;
     /* Off state */
     border-radius: 30px;
     position: relative;
     cursor: pointer;
     box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
     transition: background 0.4s ease-in-out;
 }

 .toggle-knob {
     width: 50px;
     height: 50px;
     background: white;
     border-radius: 50%;
     position: absolute;
     top: 5px;
     right: 60px;
     /* Adjust for larger switch */
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
     transition: right 0.4s ease-in-out;
 }

 /* Gauge */
 .gauge {
     width: 120px;
     height: 120px;
     border-radius: 50%;
     border: 15px solid #333;
     border-top-color: #00e676;
     /* Initial Green */
     border-right-color: #00e676;
     position: relative;
     transform: rotate(-90deg);
     /* Start at 0 */
 }

 .gauge-value {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     font-size: 2.5rem;
     font-weight: bold;
     color: #00e676;
     transition: color 0.3s;
 }

 /* Chart Preview */
 .chart {
     width: 130px;
     height: 90px;
     background: linear-gradient(to top, #3a86ff 0%, transparent 100%);
     clip-path: polygon(0% 80%, 10% 40%, 20% 60%, 30% 30%, 40% 50%, 50% 20%, 60% 45%, 70% 25%, 80% 50%, 90% 30%, 100% 60%);
     transition: clip-path 1s linear, background 0.5s;
 }

 /* Slider Preview */
 .slider-preview-container {
     background: none;
     box-shadow: none;
 }

 .slider-preview {
     width: 180px;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 15px;
 }

 .slider-value-display {
     font-size: 3rem;
     font-weight: 700;
     color: #3a86ff;
     transition: color 0.3s;
 }

 .slider-bar {
     width: 100%;
     height: 10px;
     background: #444;
     border-radius: 5px;
     position: relative;
     background: linear-gradient(to right, #3a86ff, #8338ec);
 }

 .slider-thumb {
     width: 25px;
     height: 25px;
     background: #3a86ff;
     border-radius: 50%;
     position: absolute;
     top: -8px;
     left: 50%;
     transform: translateX(-50%);
     box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
     border: 3px solid #0d1117;
     transition: all 0.2s ease-in-out;
 }

 /* Rocket Launch CTA Card - Simplified */
 .cta-card .widget-preview {
     background: linear-gradient(to bottom, #1d1d1d 30%, #0d1117 100%);
 }

 .start-icon {
     font-size: 4rem;
     color: var(--primary-color);
     animation: none;
     /* Removed complex animation for a simpler look */
 }

 .cta-card .action-btn {
     background: var(--primary-color);
 }

 .cta-card .action-btn:hover {
     background: var(--secondary-color);
 }