:root {
    --bg-main: #000000;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-hover: rgba(255, 255, 255, 0.04);
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Premium Background - Resend Style */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 80% 50% at 80% 60%, rgba(60, 60, 70, 0.35), transparent),
        radial-gradient(ellipse 60% 80% at 70% 80%, rgba(40, 40, 50, 0.4), transparent),
        radial-gradient(ellipse 40% 60% at 90% 40%, rgba(80, 80, 90, 0.2), transparent),
        linear-gradient(160deg, #000000 0%, #0a0a0a 30%, #111114 50%, #0a0a0a 70%, #000000 100%);
}

.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, transparent 30%, rgba(120, 120, 130, 0.06) 45%, transparent 55%),
        linear-gradient(225deg, transparent 40%, rgba(100, 100, 110, 0.04) 50%, transparent 60%);
    animation: shimmer 15s ease-in-out infinite alternate;
}

.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes shimmer {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0.6; transform: translateX(-5%); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 20px;
    background: rgba(18, 18, 18, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
}

.logo span {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
}

.logo-mark-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-divider {
    width: 2px;
    height: 20px;
    background: var(--border-light);
    border-radius: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s;
}

.nav-links a svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
    transition: all 0.2s;
}

.btn-login:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
}

.btn-login svg {
    width: 13px;
    height: 13px;
}

/* Hero Section */


.hero {
    min-height: 90vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 120px;
    position: relative;
}


.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -100px; /* Extend it a bit so the transition happens smoothly */
    z-index: -2;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 75%, rgba(0,0,0,1) 100%), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 90%, transparent 100%);
}




.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, #e4e4e7, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #d4d4d8;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 16px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #e4e4e7;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: opacity 0.2s;
}

.btn-secondary:hover {
    opacity: 0.8;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
}

.stats-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(to bottom right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-light);
}

@media (max-width: 768px) {
    .stats-panel {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }
    .stat-divider {
        width: 100%;
        height: 1px;
    }
}

/* Features & Pricing Sections */
.features-section {
    padding: 80px 0 40px;
}

.pricing-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pricing-section .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.pricing-section .feature-card {
    flex: 1 1 calc(33.333% - 24px);
    max-width: 350px;
    min-width: 280px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 40px;
    transition: all 0.4s;
}

.feature-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
}

.large-card {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-icon, .feature-icon-small {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
}

.feature-icon svg { width: 28px; height: 28px; }

.feature-icon-small {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
    .large-card { grid-row: auto; }
    .nav-links, .nav-divider, .btn-login { display: none; }
}

/* Hide arrows from number inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Sidebar Layout */
.app-layout {
    display: flex;
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    height: 100vh;
    flex-shrink: 0;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    position: relative;
}

.sidebar .logo {
    margin-bottom: 40px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav a svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-light);
}

.dashboard-content {
    flex: 1;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
}

.dashboard-content::-webkit-scrollbar {
    display: none; /* Chrome / Safari / Opera */
    width: 0;
    height: 0;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.app-layout .navbar-wrapper {
    display: none;
}

@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 16px;
        flex-direction: column;
    }
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .sidebar-nav a {
        white-space: nowrap;
    }
    .sidebar-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
        padding-top: 10px;
    }
    .dashboard-content {
        padding: 20px;
    }
}
