/* ============================================
   TAFdev Landing Page - Premium Styles
   ============================================ */

:root {
    /* Ganti path gambar background hero (contoh: url('images/hero-bg.jpg') atau url('bg.jpg')) */
    --hero-bg-image: url('images/hero-bg.jpg');
    --green-deep: #2D5A27;
    --green-primary: #1a5f3a;
    --green-mid: #4A8B3F;
    --green-light: #4ADE80;
    --green-pale: #e8f5ee;
    --green-glass: rgba(45, 90, 39, 0.08);
    --dark: #0f1a0d;
    --dark-soft: #1a2e16;
    --text-dark: #1a1a2e;
    --text-body: #4a5568;
    --text-muted: #6b7280;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== FADE-UP ANIMATION ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.delay-1 {
    transition-delay: 0.1s;
}

.fade-up.delay-2 {
    transition-delay: 0.2s;
}

.fade-up.delay-3 {
    transition-delay: 0.3s;
}

.fade-up.delay-4 {
    transition-delay: 0.4s;
}

.fade-up.delay-5 {
    transition-delay: 0.5s;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    transition: color var(--transition);
}

.navbar.scrolled .navbar-brand {
    color: var(--text-dark);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* Logo header penuh: TAFdev + tagline (putih di atas hitam) */
.brand-logo-full {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* Logo bulat & logo full: putih di atas hitam - di navbar putih (scrolled) perlu invert */
.navbar.scrolled .brand-logo,
.navbar.scrolled .brand-logo-full {
    filter: invert(1);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-dev {
    font-weight: 500;
    opacity: 0.8;
    font-size: 14px;
}

.brand-tagline {
    font-size: 10px;
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-link {
    color: var(--text-muted);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--green-deep);
    background: var(--green-glass);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar.scrolled .mobile-toggle span {
    background: var(--text-dark);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Background image - path diatur di :root --hero-bg-image */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f1a0d 0%, #1a3a14 30%, #2D5A27 60%, #1a5f3a 100%);
}

/* Overlay gelap agar teks tetap terbaca saat pakai gambar */
.hero-bg.has-bg-image .hero-gradient {
    background: linear-gradient(135deg, rgba(15, 26, 13, 0.92) 0%, rgba(26, 58, 20, 0.88) 30%, rgba(45, 90, 39, 0.85) 60%, rgba(26, 95, 58, 0.9) 100%);
}

/* Subtle noise texture overlay */
.hero-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(rgba(255, 255, 255, 0.02) 0% 25%, transparent 0% 50%) 0 0 / 40px 40px;
    opacity: 0.5;
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.15);
    animation: float 20s ease-in-out infinite;
}

.p1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation-duration: 25s;
}

.p2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -30px;
    animation-duration: 18s;
    animation-delay: -5s;
}

.p3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    animation-duration: 22s;
    animation-delay: -8s;
    background: rgba(255, 255, 255, 0.03);
}

.p4 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 15%;
    animation-duration: 15s;
    animation-delay: -3s;
}

.p5 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 30%;
    animation-duration: 28s;
    animation-delay: -10s;
    background: rgba(255, 255, 255, 0.02);
}

.p6 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 30%;
    animation-duration: 16s;
    animation-delay: -7s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 30px) scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-left {
    max-width: 720px;
}

/* Logos row */
.hero-logos {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

.hero-logo-item {
    display: flex;
    align-items: center;
}

/* Logo putih.png (outline gelap) - invert agar terlihat di background hero hijau gelap */
.hero-logo-img {
    max-height: 100px;
    filter: brightness(0) invert(1);
}

.hero-logo-svg {
    width: 260px;
    height: 130px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title-line {
    display: block;
    opacity: 0.9;
}

.hero-title-highlight {
    display: block;
    background: linear-gradient(135deg, #4ADE80, #86EFAC, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4ADE80, #22c55e);
    color: #0f1a0d;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

/* Hero stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--green-light);
}

.stat-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    z-index: 1;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.3;
    }
}

/* ============ SECTION SHARED ============ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--green-glass);
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(45, 90, 39, 0.15);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============ GARANSI & KEUNGGULAN ============ */
.guarantee-strip {
    padding: 40px 24px;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.06) 0%, rgba(74, 139, 63, 0.08) 50%, rgba(45, 90, 39, 0.05) 100%);
    border-top: 3px solid var(--green-deep);
    border-bottom: 1px solid rgba(45, 90, 39, 0.12);
}

.guarantee-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 280px;
}

.guarantee-divider {
    width: 1px;
    min-height: 60px;
    background: rgba(45, 90, 39, 0.2);
    flex-shrink: 0;
}

.guarantee-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(45, 90, 39, 0.25);
}

.guarantee-icon-wrap.guarantee-icon-cloud {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.guarantee-icon {
    color: white;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.guarantee-text {
    text-align: left;
    min-width: 0;
}

.guarantee-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--green-deep);
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.guarantee-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.55;
    margin: 0;
}

.guarantee-desc strong {
    color: var(--green-deep);
    font-weight: 700;
}

@media (max-width: 700px) {
    .guarantee-inner {
        flex-direction: column;
        gap: 28px;
    }

    .guarantee-divider {
        width: 60px;
        height: 1px;
        min-height: 0;
    }

    .guarantee-item {
        min-width: 0;
    }

    .guarantee-text {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .guarantee-strip {
        padding: 28px 20px;
    }

    .guarantee-title {
        font-size: 18px;
    }

    .guarantee-desc {
        font-size: 13px;
    }
}

/* ============ PRODUK ============ */
.products {
    padding: 100px 0;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    padding: 28px 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-deep), var(--green-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.product-card:hover {
    border-color: var(--green-deep);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover .product-link {
    color: var(--green-deep);
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-icon {
    font-size: 32px;
    line-height: 1;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.product-tagline {
    font-size: 13px;
    color: var(--green-deep);
    font-weight: 600;
    margin: 0;
}

.product-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

.product-features {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.55;
}

.product-features li {
    position: relative;
    padding-left: 1.1em;
    margin-bottom: 6px;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-deep);
    font-weight: 700;
    font-size: 12px;
}

.product-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--green-mid);
    transition: color var(--transition);
}

/* ============ DASHBOARD SHOWCASE ============ */
.showcase {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    background-image: url('images/sawit.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    pointer-events: none;
    z-index: 0;
}

.showcase .container {
    position: relative;
    z-index: 1;
}

.showcase-bg-decor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, transparent, rgba(45, 90, 39, 0.05));
    pointer-events: none;
}

.monitor-wrapper {
    perspective: 1200px;
    display: flex;
    justify-content: center;
}

.monitor {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotateX(2deg);
    transition: transform 0.5s ease;
}

.monitor:hover {
    transform: rotateX(0);
}

.monitor-screen {
    width: 100%;
    max-width: 900px;
    background: #1a1a2e;
    border-radius: 16px 16px 0 0;
    padding: 8px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
}

.monitor-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #2a2a3e;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
}

.monitor-screen::after {
    content: '● ● ●';
    position: absolute;
    top: 6px;
    left: 14px;
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.25);
    z-index: 2;
}

.monitor-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monitor-neck {
    width: 80px;
    height: 40px;
    background: linear-gradient(180deg, #c0c0c0, #9e9e9e);
    border-radius: 0 0 4px 4px;
}

.monitor-base {
    width: 200px;
    height: 12px;
    background: linear-gradient(180deg, #b0b0b0, #8e8e8e);
    border-radius: 0 0 40px 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dashboard preview inside monitor */
.dash-preview {
    display: flex;
    background: var(--gray-50);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    margin-top: 20px;
    min-height: 380px;
}

.dash-sidebar {
    width: 160px;
    background: var(--green-deep);
    padding: 12px;
    flex-shrink: 0;
}

.dash-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dash-menu-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    transition: background 0.2s;
}

.dash-menu-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.dash-menu-icon {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.dash-menu-item.active .dash-menu-icon {
    background: var(--green-light);
}

.dash-menu-text {
    white-space: nowrap;
}

.dash-main {
    flex: 1;
    padding: 12px 16px;
    overflow: hidden;
}

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

.dash-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.dash-title-right {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.dash-cards {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
}

.dash-card {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dash-card-wide {
    grid-column: span 1;
}

.dash-card-full {
    grid-column: span 2;
}

.dash-card-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Donut */
.dash-donut-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.dash-donut {
    width: 70px;
    height: 70px;
}

.dash-donut-label {
    position: absolute;
    font-size: 14px;
    font-weight: 800;
    color: var(--green-deep);
    text-align: center;
    line-height: 1.2;
}

.dash-donut-label small {
    font-size: 8px;
    font-weight: 400;
    color: var(--text-muted);
}

/* Map */
.dash-map {
    background: #0d2b0a;
    border-radius: 6px;
    overflow: hidden;
    height: 80px;
}

.dash-map-svg {
    width: 100%;
    height: 100%;
}

/* Line chart */
.dash-line-chart {
    width: 100%;
    height: 50px;
}

/* Mini stats bars */
.dash-mini-stats {
    height: 60px;
    display: flex;
    align-items: center;
}

.dash-mini-stat {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 50px;
    width: 100%;
}

.dash-mini-bar {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(180deg, var(--green-mid), var(--green-deep));
    border-radius: 3px 3px 0 0;
    min-height: 10px;
}

/* Production */
.dash-prod-wrap {
    text-align: center;
    padding: 8px 0;
}

.dash-prod-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--green-deep);
}

.dash-prod-label {
    font-size: 9px;
    color: var(--text-muted);
    margin: 4px 0;
}

.dash-prod-change {
    font-size: 10px;
    color: var(--green-mid);
    font-weight: 600;
}

/* ============ FEATURES ============ */
.features {
    padding: 100px 0;
    background: var(--white);
    background-image: url('images/sawit.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
    pointer-events: none;
    z-index: 0;
}

.features .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-deep), var(--green-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
}

/* ============ ABOUT ============ */
.about {
    padding: 100px 0;
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-badge {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-content p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* About floating cards */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-card-stack {
    position: relative;
    width: 320px;
    height: 300px;
}

.about-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
    border: 1px solid var(--gray-200);
}

.about-float-card:hover {
    transform: translateY(-4px) !important;
}

.card-1 {
    top: 0;
    left: 0;
    transform: rotate(-3deg);
    z-index: 3;
    animation: float-card-1 6s ease-in-out infinite;
}

.card-2 {
    top: 100px;
    left: 40px;
    transform: rotate(2deg);
    z-index: 2;
    animation: float-card-2 7s ease-in-out infinite;
}

.card-3 {
    top: 200px;
    left: 10px;
    transform: rotate(-1deg);
    z-index: 1;
    animation: float-card-3 8s ease-in-out infinite;
}

@keyframes float-card-1 {

    0%,
    100% {
        transform: rotate(-3deg) translateY(0);
    }

    50% {
        transform: rotate(-3deg) translateY(-8px);
    }
}

@keyframes float-card-2 {

    0%,
    100% {
        transform: rotate(2deg) translateY(0);
    }

    50% {
        transform: rotate(2deg) translateY(-6px);
    }
}

@keyframes float-card-3 {

    0%,
    100% {
        transform: rotate(-1deg) translateY(0);
    }

    50% {
        transform: rotate(-1deg) translateY(-10px);
    }
}

.float-icon {
    font-size: 28px;
    line-height: 1;
}

.float-text {
    display: flex;
    flex-direction: column;
}

.float-text strong {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 700;
}

.float-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* About Video */
.about-video-section {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.about-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    background: #000;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 4px solid var(--white);
    display: block;
    /* Ensure it's rendered as a block element */
}

.about-video-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.about-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    z-index: 10;
}

/* ============ CTA ============ */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f1a0d 0%, #1a3a14 30%, #2D5A27 60%, #1a5f3a 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============ FOOTER ============ */
.footer {
    background: #0a1208;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-name {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.footer-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============ APP FLOW ============ */
.app-flow {
    padding: 100px 0;
    background: var(--gray-50);
}

.flow-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 40px auto 0;
    gap: 16px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.flow-icon-wrap {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 3px solid white;
    transition: all var(--transition);
    overflow: hidden;
}

.flow-step:hover .flow-icon-wrap {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-light);
}

.flow-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flow-info {
    max-width: 180px;
}

.flow-role {
    font-size: 17px;
    font-weight: 800;
    color: var(--green-deep);
    margin-bottom: 8px;
}

.flow-desc {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
}

.flow-connector {
    color: var(--green-mid);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-bottom: 80px;
    /* Align closer to the icons horizontally */
    opacity: 0.6;
}

.flow-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 10px;
}

.flow-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.tag-device {
    background: var(--green-pale);
    color: var(--green-primary);
    border: 1px solid rgba(45, 90, 39, 0.1);
}

.tag-network {
    background: #fffbeb;
    color: #d97706;
    /* amber-600 */
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.tag-online {
    background: #e0f2fe;
    color: #0284c7;
    /* sky-600 */
    border: 1px solid rgba(2, 132, 199, 0.15);
}

@media (max-width: 900px) {
    .flow-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .flow-connector {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .flow-step {
        flex-direction: row;
        text-align: left;
        background: white;
        padding: 20px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        gap: 24px;
        align-items: center;
    }

    .flow-icon-wrap {
        margin-bottom: 0;
        width: 76px;
        height: 76px;
        flex-shrink: 0;
    }

    .flow-info {
        max-width: 100%;
        flex: 1;
    }

    .flow-role {
        font-size: 18px;
    }

    .flow-desc {
        font-size: 14px;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(15, 26, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: right var(--transition);
    }

    .navbar-links.active {
        right: 0;
    }

    .navbar-links .nav-link {
        color: rgba(255, 255, 255, 0.8);
        font-size: 16px;
        padding: 12px 16px;
        width: 100%;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-logos {
        gap: 16px;
        margin-bottom: 28px;
    }

    .hero-logo-svg {
        width: 180px;
        height: 90px;
    }

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

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .scroll-indicator {
        display: none;
    }

    .section-title {
        font-size: 28px;
    }

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

    /* Dashboard monitor */
    .dash-sidebar {
        display: none;
    }

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

    .monitor-screen {
        max-width: 100%;
    }

    .monitor-neck {
        width: 60px;
        height: 30px;
    }

    .monitor-base {
        width: 140px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .about-card-stack {
        width: 260px;
        height: 260px;
    }

    .about-float-card {
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    .hero-logos {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero-stats {
        flex-wrap: wrap;
    }

    .hero-stat-divider {
        display: none;
    }

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

    .dash-card-wide,
    .dash-card-full {
        grid-column: span 1;
    }
}