:root {
    /* Colors */
    --primary-900: #0f172a;
    /* Deep Navy */
    --primary-800: #1e293b;
    --primary-700: #334155;

    --accent-500: #06b6d4;
    /* Cyan */
    --accent-400: #22d3ee;

    --success-500: #10b981;
    --warning-500: #f59e0b;
    --danger-500: #ef4444;

    --text-100: #f1f5f9;
    --text-200: #e2e8f0;
    --text-400: #94a3b8;

    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --container-width: 1200px;

    /* Font */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-900);
    color: var(--text-200);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--accent-400), #6366f1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 16px;
}

/* Glow Background */
.glow-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.glow-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    transform: translate(-50%, -50%);
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-100);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

p {
    color: var(--text-400);
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-500);
    color: var(--primary-900);
}

.btn-primary:hover {
    background: var(--accent-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-200);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-200);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-100);
}

.logo-icon {
    color: var(--accent-500);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-200);
}

.nav-links a:not(.btn):hover {
    color: var(--accent-400);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-100);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-400);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 30px;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-store,
.btn-web {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    /* slightly stronger than typical glass */
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-200);
    transition: all 0.3s;
    min-width: 160px;
}

.btn-store:hover,
.btn-web:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: var(--accent-500);
    color: white;
}

.btn-store i,
.btn-web i {
    font-size: 24px;
    width: 24px;
    text-align: center;
}

.btn-store div,
.btn-web div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-store small,
.btn-web small {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.btn-store span,
.btn-web span {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.1;
}

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

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--text-400);
    font-size: 0.875rem;
}

.trust-indicators i {
    color: var(--success-500);
    margin-right: 8px;
}

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
}

.app-mockup {
    position: relative;
    padding: 20px;
    aspect-ratio: 16/10;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

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

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.mockup-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    height: calc(100% - 40px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-row,
.skeleton-card,
.skeleton-chart {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.skeleton-row.header {
    height: 40px;
    width: 40%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    flex: 1;
}

.skeleton-chart {
    height: 30%;
}

.floating-badge {
    position: absolute;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.floating-badge i {
    font-size: 24px;
}

.floating-badge div {
    display: flex;
    flex-direction: column;
}

.floating-badge span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-100);
    line-height: tight;
}

.floating-badge small {
    color: var(--text-400);
    font-size: 0.75rem;
}

.badge-1 {
    bottom: -30px;
    left: -30px;
    border-left: 4px solid var(--accent-500);
    animation: float 5s ease-in-out infinite reverse;
}

.badge-1 i {
    color: var(--accent-500);
}

.badge-2 {
    top: 40px;
    right: -40px;
    border-left: 4px solid var(--success-500);
    animation: float 7s ease-in-out infinite 1s;
}

.badge-2 i {
    color: var(--success-500);
}

/* Features Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    padding: 32px;
    transition: 0.4s;
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(30, 41, 59, 0.4) 100%);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-500);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.15);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-400);
    margin-bottom: 24px;
}

/* Roles */
.roles-content {
    flex: 1;
}

.roles-wrapper {
    display: flex;
    gap: 40px;
    padding: 40px;
    overflow: hidden;
}

.role-list li {
    padding: 24px;
    border-left: 3px solid transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.role-list li.active {
    opacity: 1;
    border-left-color: var(--accent-500);
    background: rgba(255, 255, 255, 0.03);
}

.role-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.roles-image {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ui-preview {
    width: 90%;
    height: 90%;
    background: var(--primary-800);
    border-radius: 8px;
    display: flex;
    border: 1px solid var(--glass-border);
}

.ui-sidebar {
    width: 60px;
    border-right: 1px solid var(--glass-border);
}

.ui-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ui-card-sm {
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.ui-card-lg {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Contact / CTA */
.cta-card {
    text-align: center;
    padding: 80px 40px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.cta-form {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form input {
    flex: 1;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-100);
    outline: none;
}

.cta-form input:focus {
    border-color: var(--accent-500);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-group h4 {
    color: var(--text-100);
    margin-bottom: 8px;
}

.link-group a {
    color: var(--text-400);
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--accent-400);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
    font-size: 0.875rem;
    color: var(--text-400);
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 80px;
    }

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

    .trust-indicators {
        justify-content: center;
    }

    .roles-wrapper {
        flex-direction: column;
    }

    .app-mockup {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simplification for mobile menu without JS yet */
    }

    .mobile-menu-btn {
        display: block;
    }

    h1 {
        font-size: 2.2rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .floating-badge {
        display: none;
        /* Hide floating elements on very small screens if they overflow */
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary-900);
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}