/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0f;
    position: relative;
    overflow-x: hidden;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    background-size: 400% 400%;
    animation: backgroundShift 20s ease infinite;
    z-index: -2;
}

@keyframes backgroundShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.rising-chars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero .rising-chars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero .rising-chars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sections-with-bg {
    position: relative;
}

.scrolling-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;

    /* Optional: add a faint gradient base if you still want some texture */
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.03), transparent 70%);

    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0.15) 100%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0.15) 100%);
}

.scrolling-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(168, 118, 255, 0.04), transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(255, 148, 234, 0.03), transparent 60%);
    animation: subtleFlow 30s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes subtleFlow {
    0%   { transform: scale(1) translate(0%, 0%); opacity: 0.2; }
    100% { transform: scale(1.3) translate(-4%, -6%); opacity: 0.5; }
}

#grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 0 80px;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: heroContentFadeIn 1.2s ease-out 0.3s forwards;
}

.hero-stats {
    text-align: center;
    margin-top: 40px;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
    font-size: 1.1rem;
    color: #666;
}

@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #7877c6 50%, #ffffff 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 6s ease infinite;
    line-height: 1.1;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Sections === */
section {
    padding: 100px 0;
    position: relative;
    min-height: 500px;
    scroll-margin-top: 102.31px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #7877c6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === About Section === */
.about {
    padding: 100px 0;
    position: relative;
}
.about-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}
.feature {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.05), rgba(255, 119, 198, 0.05));
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 16px;
}
.feature:hover {
    transform: translateY(-8px);
    border-color: rgba(120, 119, 198, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.feature:hover::before {
    opacity: 1;
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}
.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}
.feature-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* === Latest Product Section === */
.latest-product {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(3px);
    padding: 100px 0;
    position: relative;
}
.latest-product .section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 0.3s forwards;
}
.product-highlight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out 0.6s forwards;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.product-image {
    flex: 1 1 480px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.product-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(120, 119, 198, 0.12), transparent 70%);
    z-index: -1;
    filter: blur(60px);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}
.product-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    background: #1a1a2e;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.product-info {
    flex: 1 1 440px;
    z-index: 2;
}
.product-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}
.product-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}
.product-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 8px; /* gives headroom for hover pop */
}

/* === CTA Section === */
.cta {
    text-align: center;
    padding: 120px 0;
    position: relative;
}
.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(120, 119, 198, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ctaPulse 8s ease-in-out infinite;
    z-index: -1;
}
@keyframes ctaPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.6; }
}
.cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #7877c6 50%, #ffffff 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 8s ease infinite;
}
.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-eyebrow {
    font-size: 1rem;
    font-weight: 600;
    color: #8E94F2;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.cta-footnote {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-top: 30px;
}
.product-footnote {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-top: 30px;
}

/* === Buttons === */
.btn-hero-primary, .btn-cta-primary {
    background: linear-gradient(135deg, #7877c6 0%, #5a59a6 100%);
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(120, 119, 198, 0.3);
    text-decoration: none;
}
.btn-hero-primary::before, .btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}
.btn-hero-primary:hover, .btn-cta-primary:hover {
    background: linear-gradient(135deg, #8988d4 0%, #6b6ab4 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(120, 119, 198, 0.4);
}
.btn-hero-primary:hover::before, .btn-cta-primary:hover::before {
    left: 100%;
}
.btn-hero-secondary, .btn-cta-secondary, .btn-product-secondary {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 16px 38px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.btn-hero-secondary::before, .btn-cta-secondary::before, .btn-product-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}
.btn-hero-secondary:hover, .btn-cta-secondary:hover, .btn-product-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.btn-hero-secondary:hover::before, .btn-cta-secondary:hover::before, .btn-product-secondary:hover::before {
    left: 100%;
}


/* === Responsive Design === */
