*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0f172a;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #1d4ed8;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --gradient-start: #0f172a;
    --gradient-end: #1e3a5f;
    --green: #10b981;
    --green-light: #d1fae5;
    --amber: #f59e0b;
    --amber-light: #fef3c7;
    --red: #ef4444;
    --red-light: #fee2e2;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.nav.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 50%, #0e2940 100%);
    position: relative;
    overflow: hidden;
    padding-top: 64px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.preview-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.preview-dots span:nth-child(1) {
    background: #ef4444;
}

.preview-dots span:nth-child(2) {
    background: #f59e0b;
}

.preview-dots span:nth-child(3) {
    background: #10b981;
}

.device-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.device-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.3s, background 0.3s;
}

.device-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.device-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.device-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-icon svg {
    width: 16px;
    height: 16px;
}

.device-icon.online {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.device-icon.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.device-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.device-icon.moving {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-online .status-dot {
    background: #10b981;
}

.status-online {
    color: #10b981;
}

.status-offline .status-dot {
    background: #ef4444;
}

.status-offline {
    color: #ef4444;
}

.status-warning .status-dot {
    background: #f59e0b;
}

.status-warning {
    color: #f59e0b;
}

.device-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
}

.device-meta {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.device-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 0.75rem;
    overflow: hidden;
}

.device-bar-fill {
    height: 100%;
    border-radius: 2px;
}

.bar-green {
    background: #10b981;
}

.bar-amber {
    background: #f59e0b;
}

.bar-red {
    background: #ef4444;
}

.bar-blue {
    background: #3b82f6;
}

/* Floating counter */
.float-counter {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.float-counter-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

.float-counter-label {
    font-size: 0.65rem;
    color: #94a3b8;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Features */
.features {
    padding: 6rem 1.5rem;
    background: var(--surface);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.08);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.fi-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.fi-green {
    background: #ecfdf5;
    color: #10b981;
}

.fi-amber {
    background: #fffbeb;
    color: #f59e0b;
}

.fi-purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.fi-rose {
    background: #fff1f2;
    color: #f43f5e;
}

.fi-cyan {
    background: #ecfeff;
    color: #06b6d4;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: 6rem 1.5rem;
    background: var(--surface-alt);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6, var(--green));
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 1.5rem 1rem;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.step-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA */
.cta {
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: 3rem 1.5rem;
    background: var(--primary);
    color: #64748b;
    text-align: center;
    font-size: 0.8rem;
}

.footer a {
    color: var(--accent-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ─── Modern Animations ─── */

/* Scroll-reveal base states */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-down"] {
    transform: translateY(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(60px);
}

[data-animate="fade-right"] {
    transform: translateX(-60px);
}

[data-animate="zoom-in"] {
    transform: scale(0.85);
}

[data-animate="fade-up"].visible,
[data-animate="fade-down"].visible,
[data-animate="fade-left"].visible,
[data-animate="fade-right"].visible {
    transform: translate(0);
}

[data-animate="zoom-in"].visible {
    transform: scale(1);
}

/* Stagger delays for children */
[data-delay="1"] {
    transition-delay: 0.1s;
}

[data-delay="2"] {
    transition-delay: 0.2s;
}

[data-delay="3"] {
    transition-delay: 0.3s;
}

[data-delay="4"] {
    transition-delay: 0.4s;
}

[data-delay="5"] {
    transition-delay: 0.5s;
}

[data-delay="6"] {
    transition-delay: 0.6s;
}

[data-delay="7"] {
    transition-delay: 0.7s;
}

[data-delay="8"] {
    transition-delay: 0.8s;
}

/* Hero entrance — plays on load, no scroll trigger needed */
.hero-content .hero-badge {
    opacity: 0;
    animation: heroSlideUp 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 {
    opacity: 0;
    animation: heroSlideUp 0.7s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content>p {
    opacity: 0;
    animation: heroSlideUp 0.7s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-actions {
    opacity: 0;
    animation: heroSlideUp 0.7s 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stats {
    opacity: 0;
    animation: heroSlideUp 0.7s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-visual {
    opacity: 0;
    animation: heroSlideLeft 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSlideLeft {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Device card staggered pop-in */
.device-card {
    opacity: 0;
    animation: cardPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.device-card:nth-child(1) {
    animation-delay: 0.7s;
}

.device-card:nth-child(2) {
    animation-delay: 0.85s;
}

.device-card:nth-child(3) {
    animation-delay: 1.0s;
}

.device-card:nth-child(4) {
    animation-delay: 1.15s;
}

@keyframes cardPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Battery bar fill animation */
.device-bar-fill {
    transform-origin: left;
    animation: barGrow 1s 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes barGrow {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

/* Floating counter enhanced */
.float-counter {
    opacity: 0;
    animation: floatAppear 0.6s 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        float 3s 1.9s ease-in-out infinite;
}

@keyframes floatAppear {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Feature card hover glow */
.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.4));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(12px);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Feature icon pulse on hover */
.feature-card:hover .feature-icon {
    animation: iconPulse 0.5s ease;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}

/* Step number ring pulse */
.step-number {
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: ringPulse 2.5s ease-in-out infinite;
}

.step-card:nth-child(1) .step-number::after {
    animation-delay: 0s;
}

.step-card:nth-child(2) .step-number::after {
    animation-delay: 0.5s;
}

.step-card:nth-child(3) .step-number::after {
    animation-delay: 1.0s;
}

.step-card:nth-child(4) .step-number::after {
    animation-delay: 1.5s;
}

@keyframes ringPulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}

/* Hero grid subtle shimmer */
.hero-grid {
    animation: gridShimmer 8s linear infinite;
}

@keyframes gridShimmer {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

/* CTA glow animation */
.cta::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ctaGlow 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ctaGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
    }
}

/* Button ripple micro-interaction */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-primary:active::after {
    opacity: 1;
    transition: opacity 0s;
}

/* Status dot live-pulse */
.status-online .status-dot {
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
}

/* Section label icon spin-in */
.section-label svg {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-label:hover svg {
    transform: rotate(360deg);
}

/* Smooth gradient text shimmer for hero title */
.hero h1 .gradient-text {
    background-size: 200% auto;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* ─── Mobile Nav Toggle ─── */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-mobile-drawer {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border);
}

.nav-mobile-drawer a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0;
}

.nav-mobile-drawer.open {
    display: flex;
}

/* ─── Trust Band ─── */
.trust-band {
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    overflow: hidden;
}

.trust-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.trust-track-wrapper {
    overflow: hidden;
}

.trust-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: trustScroll 28s linear infinite;
}

.trust-track:hover {
    animation-play-state: paused;
}

@keyframes trustScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    user-select: none;
    transition: color 0.2s;
}

.trust-item:hover {
    color: var(--accent);
}

.trust-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Inline emoji icons per industry using CSS content */
.trust-icon::before {
    font-style: normal;
}

.trust-icon-logistics::before {
    content: '🚚';
}

.trust-icon-shipping::before {
    content: '🚢';
}

.trust-icon-warehousing::before {
    content: '🏭';
}

.trust-icon-coldchain::before {
    content: '❄️';
}

.trust-icon-mining::before {
    content: '⛏️';
}

.trust-icon-energy::before {
    content: '⚡';
}

.trust-icon-customs::before {
    content: '🛃';
}

.trust-icon-ecommerce::before {
    content: '📦';
}

/* ─── Device Showcase ─── */
.device-showcase {
    padding: 6rem 1.5rem;
    background: var(--surface);
}

.showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Left visual */
.showcase-visual {
    display: flex;
    justify-content: center;
}

.device-card-3d {
    position: relative;
    width: 320px;
    height: 380px;
    border-radius: 24px;
}

.device-card-3d-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at 50% 40%, rgba(59, 130, 246, 0.18) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.device-card-3d-body {
    position: relative;
    height: 100%;
    background: linear-gradient(145deg, #1e3a5f 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transition: transform 0.4s ease;
}

.device-card-3d-body:hover {
    transform: translateY(-6px) rotateX(2deg);
}

.device-3d-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: inline-block;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.device-3d-graphic {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-3d-graphic svg {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(59, 130, 246, 0.25));
}

.device-3d-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.d3-chip {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Right: Specs */
.showcase-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
    margin-top: 0.75rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.spec-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.spec-row:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.07);
}

.spec-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-icon svg {
    width: 15px;
    height: 15px;
}

.spec-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.spec-green {
    background: #ecfdf5;
    color: #10b981;
}

.spec-purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.spec-amber {
    background: #fffbeb;
    color: #f59e0b;
}

.spec-cyan {
    background: #ecfeff;
    color: #06b6d4;
}

.spec-rose {
    background: #fff1f2;
    color: #f43f5e;
}

.spec-teal {
    background: #f0fdfa;
    color: #14b8a6;
}

.spec-indigo {
    background: #eef2ff;
    color: #6366f1;
}

.spec-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.15rem;
}

/* ─── API Section ─── */
.api-section {
    padding: 6rem 1.5rem;
    background: linear-gradient(160deg, #0a0f1e 0%, #0f172a 50%, #0a1628 100%);
    position: relative;
    overflow: hidden;
}

.api-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 45%);
}

.api-section .section-inner {
    position: relative;
    z-index: 1;
}

.api-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

/* Code panel */
.api-code-panel {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.code-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) {
    background: #ef4444;
}

.code-dots span:nth-child(2) {
    background: #f59e0b;
}

.code-dots span:nth-child(3) {
    background: #10b981;
}

.code-panel-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.code-lang-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    letter-spacing: 0.05em;
}

.code-panel-body {
    padding: 1.5rem 1.25rem;
}

.code-panel-body pre {
    margin: 0;
    overflow-x: auto;
}

.code-panel-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    line-height: 1.75;
    color: #e2e8f0;
    display: block;
}

.c-method {
    color: #34d399;
    font-weight: 700;
}

.c-url {
    color: #60a5fa;
}

.c-comment {
    color: #475569;
    font-style: italic;
}

.c-key {
    color: #a78bfa;
}

.c-str {
    color: #fbbf24;
}

.c-num {
    color: #f472b6;
}

.c-bool {
    color: #34d399;
}

/* API feature cards */
.api-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.3s, border-color 0.3s;
}

.api-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.api-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-card-icon svg {
    width: 18px;
    height: 18px;
}

.aci-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.aci-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

.aci-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.aci-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.api-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.api-card-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
}

/* ─── Expanded Footer ─── */
.footer-expanded {
    background: #060d1a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 1.5rem 3rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1rem;
}

.footer-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.footer-tagline {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.footer-social-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.footer-social-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-light);
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    font-size: 0.82rem;
    color: #475569;
    text-decoration: none;
    margin-bottom: 0.7rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #94a3b8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: #334155;
}

.footer-powered {
    color: #1e40af;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid::before {
        display: none;
    }

    .showcase-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .showcase-visual {
        display: none;
    }

    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .api-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .nav-auth {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}