@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --bg-base: #000000;
    --bg-panel: rgba(22, 22, 23, 0.65);
    --bg-panel-hover: rgba(30, 30, 32, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.18);
    
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #515154;
    
    --accent-blue: #0071e3;
    --accent-blue-hover: #147ce5;
    --accent-purple: #8644ff;
    --accent-green: #30d158;
    --accent-green-glow: rgba(48, 209, 88, 0.15);
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-quick: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 10% 40%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #2c2c2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3a3c;
}

/* Top Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background-color: rgba(22, 22, 23, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.navbar-container {
    width: 100%;
    max-width: 1024px;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.navbar-brand svg {
    fill: currentColor;
    color: var(--text-primary);
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.navbar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: var(--transition-quick);
    letter-spacing: -0.1px;
}

.navbar-links a:hover {
    color: var(--text-primary);
}

.navbar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-green);
    cursor: default;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(48, 209, 88, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(48, 209, 88, 0);
    }
}

/* Main Container */
main {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 48px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
}

.hero-tag {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #ffffff 30%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.3px;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
    z-index: 10;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.15px;
    transition: var(--transition-quick);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-base);
}

.btn-primary:hover {
    background-color: #ffffff;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* Hero Asset Showcase */
.hero-showcase {
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16/9;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 50%, rgba(22, 22, 23, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 50px -10px rgba(99, 102, 241, 0.15);
    padding: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    animation: fadeInUpScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    position: relative;
}

.showcase-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.showcase-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.hero-showcase:hover .showcase-inner img {
    transform: scale(1.03);
    opacity: 0.95;
}

.showcase-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 95%);
    pointer-events: none;
}


/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 11px;
    text-decoration: none;
    transition: var(--transition-quick);
}

.scroll-indicator:hover {
    color: var(--text-primary);
}

.scroll-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: bounceDown 2s infinite;
}

/* Interactive Dashboard & Services */
.section {
    width: 100%;
    max-width: 1024px;
    padding: 100px 22px;
}

.section-header {
    margin-bottom: 50px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 16px;
    line-height: 1.5;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.grid-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
    text-decoration: none;
    color: inherit;
}

.grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.grid-card:hover::before {
    opacity: 1;
}

.grid-card:hover {
    transform: translateY(-5px);
    background: var(--bg-panel-hover);
    border-color: var(--border-color-hover);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6);
}

.card-size-lg {
    grid-column: span 3;
}

.card-size-md {
    grid-column: span 3;
}

.card-size-sm {
    grid-column: span 2;
}

.card-size-full {
    grid-column: span 6;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-card:hover .card-icon {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-blue);
}

.card-icon.accent-storage { color: #5856d6; }
.card-icon.accent-code { color: #ff9500; }
.card-icon.accent-manager { color: #0071e3; }
.card-icon.accent-console { color: #30d158; }

.grid-card:hover .card-icon.accent-storage { color: #7d7aff; }
.grid-card:hover .card-icon.accent-code { color: #ffb340; }
.grid-card:hover .card-icon.accent-manager { color: #2997ff; }
.grid-card:hover .card-icon.accent-console { color: #34c759; }

.card-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title svg.arrow-link {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: translate(-5px, 5px);
    transition: var(--transition-smooth);
}

.grid-card:hover .card-title svg.arrow-link {
    opacity: 1;
    transform: translate(0, 0);
}

.card-desc {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.card-meta {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-tertiary);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-green);
}

.card-status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
}



/* Quick Search bar */
.search-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px auto;
    position: relative;
}

.search-input {
    width: 100%;
    background: rgba(22, 22, 23, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    padding: 14px 24px 14px 48px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(10px);
    transition: var(--transition-quick);
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.search-icon-svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Footer style */
footer {
    width: 100%;
    background-color: #161617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    padding: 40px 22px;
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-container {
    width: 100%;
    max-width: 1024px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 120px;
}

.footer-col-title {
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-quick);
}

.footer-col a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

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

/* Animation Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpScale {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-6px) rotate(45deg);
    }
    60% {
        transform: translateY(-3px) rotate(45deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-links, .navbar-status {
        display: none !important;
    }
    
    .navbar-container {
        justify-content: center;
    }
    
    .hero {
        padding: 40px 16px;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem) !important;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 12px;
    }
    
    .hero-showcase {
        margin-top: 20px;
        border-radius: 12px;
    }
    
    .section {
        padding: 60px 16px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .grid-card {
        grid-column: span 1 !important;
        padding: 20px;
        border-radius: 16px;
    }

    .grid-card::before {
        border-radius: 16px;
    }
}
