:root {
    --bg-dark: #030712;
    --bg-card: rgba(17, 24, 39, 0.7);
    --primary: #6366f1;
    --secondary: #a855f7;
    --accent: #06b6d4;
    --accent-pink: #ec4899;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Enhanced Ambient Background */
.ambient-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.2), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.2), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.15), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.12), transparent 25%);
    z-index: -1;
    pointer-events: none;
    animation: ambientPulse 15s ease-in-out infinite;
}

@keyframes ambientPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Particle System */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(var(--drift)) scale(1);
        opacity: 0;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
}

.logo-text {
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #fff;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s !important;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.6);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
    gap: 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 2rem;
    color: #c7d2fe;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 4px 25px rgba(99, 102, 241, 0.4);
        transform: scale(1.02);
    }
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 90%;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s;
    font-weight: 600;
}

.cta-button.primary-btn {
    padding: 1rem 2rem;
    box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.4);
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s;
}

.glow-effect:hover::after {
    opacity: 0.7;
}

.btn-content {
    display: flex;
    flex-direction: column;
}

.btn-title {
    font-weight: 700;
    line-height: 1.2;
}

.btn-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Visual (Phone) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    z-index: 1;
}

.phone-container {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.phone-frame {
    width: 320px;
    height: 650px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 40px;
    border: 8px solid #334155;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1e293b;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.screen-content {
    padding: 40px 20px 20px;
    height: 100%;
    background: linear-gradient(to bottom, #1e293b 0%, #0f172a 100%);
}

.app-header {
    margin-bottom: 20px;
}

.app-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.app-title {
    font-size: 2rem;
    font-weight: 800;
}

.news-card {
    background: linear-gradient(135deg, #334155, #1e293b);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    height: 200px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img {
    height: 120px;
    background: linear-gradient(135deg, #475569, #64748b);
    position: relative;
    overflow: hidden;
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.card-text {
    padding: 12px;
}

.card-tag {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.card-head {
    font-weight: 700;
    font-size: 1rem;
}

/* Floating Elements */
.floating-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    top: 15%;
    left: -60px;
    transform: translateZ(40px);
}

.float-2 {
    bottom: 20%;
    right: -40px;
    transform: translateZ(60px);
    animation-delay: 2s;
}

.floating-card .icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    padding: 0.5rem;
    border-radius: 0.8rem;
}

.floating-card .text {
    display: flex;
    flex-direction: column;
}

.floating-card .label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.floating-card .value {
    font-weight: 700;
    color: #fff;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateZ(40px);
    }

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

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Features Section (Bento) */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.item-large {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(17, 24, 39, 0.7));
}

.item-wide {
    grid-column: span 3;
    flex-direction: row;
    align-items: center;
}

.bento-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bento-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

/* Showcase Section */
.showcase {
    padding: 6rem 0;
    overflow: hidden;
    background: linear-gradient(to bottom, transparent, rgba(17, 24, 39, 0.3), transparent);
}

.showcase-scroller {
    width: 100%;
    overflow-x: auto;
    padding: 2rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.showcase-scroller::-webkit-scrollbar {
    display: none;
}

.scroller-inner {
    display: flex;
    gap: 2rem;
    padding: 0 2rem;
    justify-content: center;
    align-items: center;
}

.screenshot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.screenshot-wrapper:hover {
    transform: translateY(-10px);
}

.screenshot {
    width: 300px;
    height: 650px;
    border-radius: 2rem;
    border: 2px solid var(--glass-border);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.screenshot-wrapper:hover .screenshot {
    box-shadow: 0 30px 80px -15px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
}

.screenshot-caption {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }

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

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .item-large,
    .item-wide {
        grid-column: span 1;
    }

    .item-wide {
        flex-direction: column;
        text-align: center;
    }

    .bento-item {
        min-height: 250px;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-links a:not(.primary-btn) {
        display: none;
    }

    .screenshot {
        width: 240px;
        height: 500px;
    }

    .phone-frame {
        width: 280px;
        height: 570px;
    }
}