/* Hero Section - Premium Scroll Experience */
.hero {
    min-height: 100vh;
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(1, 249, 196, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(1, 249, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8rem 3rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

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

/* Features Section - Premium Reveal */
.features {
    padding: 10rem 3rem;
    position: relative;
    background: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.features h2 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.features-intro {
    text-align: center;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(1, 249, 196, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(1, 249, 196, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s;
}

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

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.4);
    border-color: var(--light-green);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-green-darker) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px -5px rgba(1, 249, 196, 0.4);
    transition: all 0.5s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px -5px rgba(1, 249, 196, 0.6);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--dark-green);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-green);
    font-weight: 700;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.8;
    font-weight: 300;
    font-size: 1.0625rem;
}

/* Footer */
.footer {
    background: rgba(0, 42, 36, 0.5);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    font-weight: 300;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(1, 249, 196, 0.1);
}

/* Horizontal Scroll Features */
.features-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0 3rem 0;
}

.features-scroll-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 3rem 2rem 3rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(1, 249, 196, 0.4) transparent;
}

.features-scroll-track::-webkit-scrollbar {
    height: 6px;
}

.features-scroll-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 3rem;
}

.features-scroll-track::-webkit-scrollbar-thumb {
    background: rgba(1, 249, 196, 0.4);
    border-radius: 3px;
}

.features-scroll-track::-webkit-scrollbar-thumb:hover {
    background: rgba(1, 249, 196, 0.6);
}

.feature-scroll-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(1, 249, 196, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-scroll-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(1, 249, 196, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-scroll-card:hover::before {
    opacity: 1;
}

.feature-scroll-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.4);
    border-color: var(--light-green);
}

.feature-scroll-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(1, 249, 196, 0.15);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 1;
}

.feature-scroll-card .feature-icon {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-scroll-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--dark-green);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.feature-scroll-card p {
    color: var(--gray-600);
    line-height: 1.8;
    font-weight: 300;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* ---- Homepage immersive sections ---- */

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: opacity 0.6s ease;
    animation: bounceDown 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Immersive Sections */
.immersive-section {
    position: relative;
    padding: 8rem 3rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.immersive-section.immersive-visible {
    opacity: 1;
    transform: translateY(0);
}

.immersive-bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.immersive-bg-1 {
    width: 600px;
    height: 600px;
    background: rgba(1, 249, 196, 0.08);
    top: -200px;
    right: -100px;
}

.immersive-bg-2 {
    width: 500px;
    height: 500px;
    background: rgba(246, 81, 29, 0.06);
    bottom: -200px;
    left: -150px;
}

.immersive-bg-3 {
    width: 700px;
    height: 700px;
    background: rgba(1, 249, 196, 0.06);
    top: -300px;
    left: -200px;
}

.immersive-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.immersive-right {
    direction: rtl;
}

.immersive-right > * {
    direction: ltr;
}

.immersive-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-green);
    margin-bottom: 1.5rem;
    padding: 0.375rem 1rem;
    border: 1px solid rgba(1, 249, 196, 0.3);
    border-radius: 100px;
}

.immersive-text h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.immersive-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.immersive-text-secondary {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Detail items (roles section) */
.immersive-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.immersive-detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.immersive-detail-marker {
    width: 3px;
    min-height: 100%;
    background: linear-gradient(180deg, var(--light-green) 0%, rgba(1, 249, 196, 0.2) 100%);
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.immersive-detail-item strong {
    display: block;
    font-weight: 700;
    color: var(--white);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.immersive-detail-item span {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1.6;
}

/* Highlight bar (docs section) */
.immersive-highlight {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    padding: 1.25rem 0;
}

.immersive-highlight-bar {
    width: 3px;
    background: var(--action-orange);
    border-radius: 2px;
    flex-shrink: 0;
}

.immersive-highlight span {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1.7;
    font-style: italic;
}

/* Tier pills (standard section) */
.immersive-tiers-mini {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.immersive-tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.tier-pill-icon {
    font-size: 0.875rem;
}

.tier-pill-free {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tier-pill-ai {
    background: rgba(1, 249, 196, 0.15);
    color: var(--light-green);
    border: 1px solid rgba(1, 249, 196, 0.3);
}

.tier-pill-lawyer {
    background: rgba(246, 81, 29, 0.15);
    color: #ff8a65;
    border: 1px solid rgba(246, 81, 29, 0.3);
}

/* ---- Visual elements ---- */

/* Roles stack */
.visual-roles-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 340px;
    margin: 0 auto;
}

.visual-role-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vr-1 { animation: slideInRight 0.8s 0.3s backwards; }
.vr-2 { animation: slideInRight 0.8s 0.5s backwards; transform: translateX(24px); }
.vr-3 { animation: slideInRight 0.8s 0.7s backwards; transform: translateX(48px); }

.immersive-visible .vr-1 { animation: slideInRight 0.8s 0.3s backwards; }
.immersive-visible .vr-2 { animation: slideInRight 0.8s 0.5s backwards; }
.immersive-visible .vr-3 { animation: slideInRight 0.8s 0.7s backwards; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; }
}

.visual-role-emoji {
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 249, 196, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.visual-role-name {
    color: var(--white);
    font-weight: 300;
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}

.visual-role-badge {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vr-badge-owner {
    background: linear-gradient(135deg, var(--light-green), var(--light-green-darker));
    color: var(--dark-green);
}

.vr-badge-admin {
    background: rgba(246, 81, 29, 0.2);
    color: #ff8a65;
    border: 1px solid rgba(246, 81, 29, 0.3);
}

.vr-badge-member {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Document stack */
.visual-doc-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 360px;
    margin: 0 auto;
}

.visual-doc-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    transition: all 0.3s;
}

.vd-1 { animation: slideInLeft 0.7s 0.2s backwards; }
.vd-2 { animation: slideInLeft 0.7s 0.35s backwards; }
.vd-3 { animation: slideInLeft 0.7s 0.5s backwards; }
.vd-4 { animation: slideInLeft 0.7s 0.65s backwards; }

.immersive-visible .vd-1 { animation: slideInLeft 0.7s 0.2s backwards; }
.immersive-visible .vd-2 { animation: slideInLeft 0.7s 0.35s backwards; }
.immersive-visible .vd-3 { animation: slideInLeft 0.7s 0.5s backwards; }
.immersive-visible .vd-4 { animation: slideInLeft 0.7s 0.65s backwards; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.visual-doc-icon {
    width: 40px;
    height: 40px;
    background: rgba(1, 249, 196, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--light-green);
}

.visual-doc-item span {
    flex: 1;
    color: var(--white);
    font-weight: 300;
    font-size: 0.9375rem;
}

.visual-doc-status {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--light-green);
    padding: 0.25rem 0.625rem;
    background: rgba(1, 249, 196, 0.1);
    border-radius: 100px;
    white-space: nowrap;
}

.visual-doc-status.vds-generating {
    color: var(--action-orange);
    background: rgba(246, 81, 29, 0.1);
    animation: pulse-status 1.5s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Certification badge */
.visual-cert-badge {
    text-align: center;
    margin: 0 auto;
}

.visual-cert-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        var(--light-green) 0deg,
        var(--light-green-darker) 120deg,
        rgba(1, 249, 196, 0.2) 120deg,
        rgba(1, 249, 196, 0.2) 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    padding: 4px;
    animation: rotateCert 8s linear infinite;
}

@keyframes rotateCert {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.visual-cert-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dark-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-green);
    animation: rotateCertReverse 8s linear infinite;
}

@keyframes rotateCertReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.visual-cert-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.visual-cert-sub {
    font-size: 0.8125rem;
    color: var(--light-green);
    font-weight: 300;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Final CTA */
.immersive-cta {
    padding: 10rem 3rem;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.immersive-cta.immersive-visible {
    opacity: 1;
    transform: translateY(0);
}

.immersive-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.immersive-cta h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.immersive-cta p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .immersive-inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .immersive-right {
        direction: ltr;
    }

    .immersive-section {
        padding: 6rem 2rem;
    }

    .immersive-text h2 {
        font-size: 2.5rem;
    }

    .visual-roles-stack,
    .visual-doc-stack {
        max-width: 100%;
    }

    .vr-2, .vr-3 {
        transform: none;
    }
}

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-content {
        padding: 4rem 2rem;
    }

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

    .features, .container {
        padding: 2rem 1rem;
    }

    .features {
        padding: 6rem 1rem;
    }

    .features h2 {
        font-size: 2.5rem;
    }

    .features-scroll-track {
        padding: 1rem 1.5rem 2rem 1.5rem;
    }

    .feature-scroll-card {
        flex: 0 0 300px;
        padding: 2rem;
    }

    .feature-scroll-number {
        font-size: 3rem;
    }

    .immersive-section {
        padding: 4rem 1.5rem;
    }

    .immersive-text h2 {
        font-size: 2rem;
    }

    .immersive-cta {
        padding: 6rem 1.5rem;
    }

    .immersive-cta h2 {
        font-size: 2rem;
    }

    .immersive-tiers-mini {
        flex-direction: column;
    }

    .visual-cert-ring {
        width: 140px;
        height: 140px;
    }

    .visual-cert-inner svg {
        width: 36px;
        height: 36px;
    }
}
