:root {
    --bg-color: #0A0A0E;
    --primary-color: #7C6EFF;
    --primary-glow: rgba(124, 110, 255, 0.4);
    --secondary-color: #FF7E6E;
    --text-main: #FFFFFF;
    --text-muted: #A0A0B0;
    --glass-bg: rgba(10, 10, 14, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1400px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

/* Glassmorphism */
.glass {
    background: rgba(10, 10, 14, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

nav.glass {
    background: rgba(10, 10, 14, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-actions {
    display: flex;
    align-items: center;
}

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

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

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

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    outline: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.gradient-text {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFF 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-phone {
    width: 350px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
    position: relative;
    height: 700px; /* Adjust based on your screenshot aspect ratio */
}

.hero-slider .screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 30px;
    border: 8px solid #1A1A20;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: scale(0.95);
}

.hero-slider .screenshot.active {
    opacity: 1;
    transform: scale(1);
    position: relative; /* Only the active one takes up space to maintain container height */
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-bg .glow {
    position: absolute;
    top: 0;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

/* Features */
.features {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
}

/* Features: compact horizontal snap-scroll tile strip.
   No arrows / dots / JS — native touch & scroll with CSS scroll-snap. */
.feature-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 4rem;
    padding: 0.5rem 4rem 1.5rem;
    margin: 0 -4rem; /* bleed strip to the container edges */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* legacy Edge */
}

.feature-grid::-webkit-scrollbar {
    display: none; /* Chrome / Safari / Opera */
}

.feature-card {
    flex: 0 0 auto;
    width: min(260px, 82%); /* mobile: one full tile plus a peek of the next */
    scroll-snap-align: start;
    padding: 1.25rem 1.125rem;
    border-radius: 18px;
    text-align: left;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    background: rgba(124, 110, 255, 0.05);
}

.feature-card .icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

@media (min-width: 900px) {
    .feature-grid {
        gap: 1.25rem;
    }

    .feature-card {
        width: 260px;
    }
}

/* Showcase */
.showcase {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(124, 110, 255, 0.05), transparent);
}

.showcase-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.showcase-img {
    height: 500px;
    border-radius: 24px;
    flex-shrink: 0;
}

/* Footer */
footer {
    padding: 4rem 0;
    margin-top: 100px;
    border-top: 1px solid var(--glass-border);
}

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

.footer-left p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
}

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

.footer-right a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-right a:hover {
    color: white;
}

.app-icon-small {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    border-radius: 32px;
    position: relative;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.beta-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.modal-body p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.modal-actions {
    margin-top: 2.5rem;
}

.btn-close-modal {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Pie Chart Styling */
.weight-pie {
    max-width: 300px;
    margin: auto;
    display: block;
}

/* Learn More Page */
.theory-visual {
    max-width: 500px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
}

.theory-visual canvas.weight-pie {
    width: 100% !important;
    height: auto !important;
}

.caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}
.learn-more-content {
    padding-top: 140px;
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.theory-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-bottom: 100px;
}

.theory-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.capacity-levels {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.level-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.range {
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 80px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.level-info strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.level-info p {
    color: var(--text-muted);
}

.theory-visual {
    padding: 3rem;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theory-visual h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.weight-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.weight-bar {
    height: 40px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.weight-bar:nth-child(2) { opacity: 0.8; }
.weight-bar:nth-child(3) { opacity: 0.6; }
.weight-bar:nth-child(4) { opacity: 0.4; }

.caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Custom chart legend */
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.chart-legend .legend-item {
  color: #000;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}


.feature-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 100px;
}

.detail-card {
    padding: 3rem;
    border-radius: 24px;
}

.detail-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.detail-card h3 {
    margin-bottom: 1rem;
}

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

.cta-section {
    padding-bottom: 100px;
}

.cta-card {
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-card p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Responsive adjustments for Learn More */
@media (max-width: 968px) {
    .theory-grid, .feature-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 3rem 2rem;
    }
    
    .cta-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gradient-text {
        font-size: 2.5rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .floating-phone {
        width: 260px; /* Slightly smaller phone on mobile */
        height: 520px;
    }

    .nav-content {
        padding: 1rem;
    }

    nav.menu-active, nav.glass.menu-active {
        -webkit-backdrop-filter: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: none !important;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 14, 0.75) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem;
        gap: 2.5rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 2rem;
        width: auto;
        text-align: center;
        font-weight: 600;
        color: var(--text-main);
    }

    .nav-links a:hover {
        color: var(--primary-color) !important;
    }

    .nav-links .btn-primary {
        width: auto;
        min-width: 220px;
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
        border-radius: 14px;
        text-align: center;
        margin-top: 1rem;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .chart-legend {
        flex-wrap: wrap; /* Wrap legend items on small screens */
        gap: 0.5rem;
    }

    .legend-item {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .btn-large {
        width: 100%; /* Stack buttons on very small screens */
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
}
