:root {
    color-scheme: dark;
    --bg-dark: #0a0706; /* Deep warm black */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-spice: rgba(255, 77, 0, 0.15);

    --primary: #ff4d00;      /* Rica Red-Orange */
    --primary-light: #ff7733;
    --secondary: #ffb800;    /* Golden Ginger */
    --secondary-light: #ffd666;
    --accent: #00f0ff;       /* Tech Cyan */

    --text-main: #f9fafb;
    --text-muted: #9ca3af;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Universal Dark Form Resets */
input, select, textarea, button {
    font-family: inherit;
    color: var(--text-main);
    background-color: #120e0d;
    border: 1px solid var(--border-glass);
    color-scheme: dark;
}

select option {
    background-color: #161210;
    color: #f9fafb;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    position: relative;
    min-height: 100vh;
}

/* Background Glowing Orbs */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}

body::before {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

body::after {
    bottom: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

/* Logo Design for TTalongka Jaya */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 6%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 7, 6, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 6%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 77, 0, 0.3);
}

/* Buttons */
.btn-primary,
.btn-primary-sm,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.9rem 2.2rem;
    box-shadow: 0 4px 20px rgba(255, 77, 0, 0.35);
    border: none;
}

.btn-primary-sm {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    border: none;
}

.btn-primary:hover,
.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 184, 0, 0.45);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.9rem 2.2rem;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 6% 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1.1;
}

.hero-content h1 {
    font-size: 3.6rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

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

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.kpi-badges {
    display: flex;
    gap: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 77, 0, 0.06);
    border: 1px solid var(--border-spice);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

.hero-visual {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

/* Premium Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.8rem;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 77, 0, 0.2);
    transform: translateY(-4px);
}

.hero-visual .main-stat {
    padding: 2rem;
    border-color: var(--border-spice);
}

.chart-mockup {
    height: 180px;
    background: linear-gradient(180deg, rgba(255, 77, 0, 0.1) 0%, transparent 100%);
    border-radius: 12px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--primary);
}

.chart-mockup::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -10%;
    width: 120%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--primary), transparent);
    transform: rotate(-10deg);
}

.sub-stat {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 280px;
    position: absolute;
}

.sub-stat i {
    font-size: 1.8rem;
    color: var(--primary);
    background: rgba(255, 77, 0, 0.1);
    padding: 1rem;
    border-radius: 15px;
}

.stat-1 {
    bottom: -30px;
    left: -50px;
}

.stat-2 {
    top: -30px;
    right: -30px;
}

/* Features Section */
.features-section {
    padding: 8rem 6%;
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: left;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 77, 0, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-spice);
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.4);
}

.icon-wrapper i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper i {
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Target Users / Products Section */
.target-section {
    padding: 6rem 6%;
    background: rgba(255, 77, 0, 0.01);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.target-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition);
}

.target-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.target-image {
    height: 180px;
    background: linear-gradient(135deg, rgba(255, 77, 0, 0.1), rgba(255, 184, 0, 0.2));
    position: relative;
}

.target-image::before {
    content: 'TalongkaMart Furniture';
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.owner-img::before { content: 'Living Room Set'; }
.marketing-img::before { content: 'Dining Room Jati'; }
.researcher-img::before { content: 'Ergonomic Workspace'; }

.target-content {
    padding: 2rem;
}

.target-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.target-content ul {
    list-style: none;
}

.target-content ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.target-content ul li i {
    color: var(--secondary);
}

/* Performance Metrics Section */
.performance-section {
    padding: 8rem 6%;
    text-align: center;
}

.metrics-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.metric-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--bg-dark) 79%, transparent 80% 100%),
                conic-gradient(var(--primary) calc(var(--val) * 1%), rgba(255, 255, 255, 0.05) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.1);
}

.metric-circle span {
    background: linear-gradient(135deg, var(--text-main), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric p {
    font-weight: 600;
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 6%;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer span {
    color: var(--primary);
    font-weight: 600;
}

/* Utilities for Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    padding-top: 0;
}

.sidebar {
    width: 260px;
    background: rgba(10, 7, 6, 0.95);
    border-right: 1px solid var(--border-glass);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-brand {
    margin-bottom: 3rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu li.active a {
    color: var(--text-main);
    background: rgba(255, 77, 0, 0.08);
    border-left: 3px solid var(--primary);
}

.sidebar-menu a i {
    font-size: 1.2rem;
    width: 20px;
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2.5rem;
    min-height: 100vh;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .kpi-badges {
        justify-content: center;
    }
    .hero-visual {
        margin-top: 3rem;
        width: 100%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .stat-1 {
        left: -20px;
    }
    .stat-2 {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.25rem 4%;
    }
    .nav-links {
        display: none; /* simple burger menu fallback or hidden */
    }
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: 1.5rem;
    }
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}
