@font-face {
    font-family: 'SetupGrotesk';
    src: url('/static/fonts/SetupGrotesk-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'SetupGrotesk';
    src: url('/static/fonts/SetupGrotesk-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --white: #fff;
    --black: #000;
    --light-green: #01f9c4;
    --light-green-darker: #00cba7;
    --dark-green: #002a24;
    --dark-green-lighter: #026a54;
    --action-orange: #f6511d;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'SetupGrotesk', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--dark-green) 0%, #003d35 50%, var(--dark-green-lighter) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

strong, b {
    font-weight: lighter;
    font-family: 'SetupGrotesk', sans-serif;
}

/* Navigation */
.navbar, .navbar-app {
    background: rgba(0, 42, 36, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(1, 249, 196, 0.1);
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.2s;
    text-transform: uppercase;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand img {
    height: 28px;
    width: auto;
}

.nav-brand-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 300;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--light-green);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-hero, .btn-text, .btn-sm, .btn-action {
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 300;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-size: 0.9375rem;
    text-align: center;
    font-family: 'SetupGrotesk', sans-serif;
}

.btn-primary {
    background: var(--action-orange);
    color: var(--white);
    font-weight: 700;
}

.btn-primary:hover {
    background: #e04615;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px rgba(246, 81, 29, 0.4);
}

.btn-action {
    background: var(--action-orange);
    color: var(--white);
    font-weight: 700;
}

.btn-action:hover {
    background: #e04615;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px rgba(246, 81, 29, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-green);
    border: 2px solid var(--dark-green);
}

.btn-secondary:hover {
    background: var(--dark-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-hero {
    background: var(--action-orange);
    color: var(--white);
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 20px 40px -10px rgba(246, 81, 29, 0.3);
}

.btn-hero:hover {
    background: #e04615;
    transform: translateY(-3px);
    box-shadow: 0 30px 60px -10px rgba(246, 81, 29, 0.5);
}

.btn-text {
    background: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    font-weight: 300;
}

.btn-text:hover {
    color: var(--white);
}

.btn-logout {
    background: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    font-weight: 300;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-logout:hover {
    color: var(--white);
}

.btn-edit {
    background: var(--dark-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-edit:hover {
    background: var(--black);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: var(--action-orange);
    color: var(--white);
    font-weight: 700;
}

.btn-sm:hover {
    background: #e04615;
    transform: translateY(-2px);
}

/* 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;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(1, 249, 196, 0.2);
    backdrop-filter: blur(20px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-green);
    font-weight: 700;
}

.auth-header p {
    color: var(--gray-500);
    font-weight: 300;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group {
    min-width: 0;
}

.form-row .form-group input {
    width: 100%;
    min-width: 0;
}

.form-group label {
    font-weight: 300;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.form-group input, .form-group select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 300;
    transition: all 0.2s;
    font-family: 'SetupGrotesk', sans-serif;
    background: var(--white);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--light-green);
    box-shadow: 0 0 0 4px rgba(1, 249, 196, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray-500);
    font-weight: 300;
}

.auth-footer a {
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 300;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 700;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    font-weight: 300;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.company-overview-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(246, 81, 29, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    position: relative;
}

.company-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.company-overview-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 0.25rem;
}

.company-overview-title p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

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

.company-overview-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-overview-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.company-overview-value {
    font-size: 1.125rem;
    color: var(--gray-900);
    font-weight: 300;
}

.document-automation-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(246, 81, 29, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    position: relative;
}

.document-automation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.document-automation-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin: 0;
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 300;
}

.powered-by-badge {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-green-darker) 100%);
    color: var(--dark-green);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* LEXR Standard Certification Card */
.certification-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(246, 81, 29, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.certification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.certification-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
}

.certification-header p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 300;
}

.certification-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.certification-tier {
    position: relative;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.certification-tier:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.15);
}

.tier-free {
    border-color: var(--gray-300);
}

.tier-premium {
    border-color: var(--light-green);
    background: linear-gradient(135deg, rgba(1, 249, 196, 0.05) 0%, var(--white) 100%);
}

.tier-premium:hover {
    border-color: var(--light-green-darker);
    box-shadow: 0 8px 24px -4px rgba(1, 249, 196, 0.3);
}

.tier-expert {
    border-color: var(--action-orange);
    background: linear-gradient(135deg, rgba(246, 81, 29, 0.05) 0%, var(--white) 100%);
}

.tier-expert:hover {
    border-color: #e04615;
    box-shadow: 0 8px 24px -4px rgba(246, 81, 29, 0.3);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tier-badge-free {
    background: var(--gray-200);
    color: var(--gray-700);
}

.tier-badge-premium {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-green-darker) 100%);
    color: var(--dark-green);
    box-shadow: 0 4px 12px -2px rgba(1, 249, 196, 0.4);
}

.tier-badge-expert {
    background: linear-gradient(135deg, var(--action-orange) 0%, #e04615 100%);
    color: var(--white);
    box-shadow: 0 4px 12px -2px rgba(246, 81, 29, 0.4);
}

.certification-tier h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.tier-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tier-features {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.tier-features li {
    font-size: 0.8125rem;
    color: var(--gray-700);
    font-weight: 300;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.tier-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--dark-green);
    font-weight: 700;
}

.tier-premium .tier-features li::before {
    color: var(--light-green-darker);
}

.tier-expert .tier-features li::before {
    color: var(--action-orange);
}

.btn-tier {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: 'SetupGrotesk', sans-serif;
    margin-top: auto;
}

.btn-tier-free {
    background: var(--gray-900);
    color: var(--white);
}

.btn-tier-free:hover {
    background: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.3);
}

.btn-tier-premium {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-green-darker) 100%);
    color: var(--dark-green);
}

.btn-tier-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(1, 249, 196, 0.5);
}

.btn-tier-expert {
    background: linear-gradient(135deg, var(--action-orange) 0%, #e04615 100%);
    color: var(--white);
}

.btn-tier-expert:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(246, 81, 29, 0.5);
}

@media (max-width: 768px) {
    .certification-tiers {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .certification-tier {
        padding: 1.5rem;
    }
    
    .tier-badge {
        right: 1rem;
        left: auto;
        transform: none;
    }
}

.document-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.3s;
}

.document-link:hover {
    border-color: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.document-link-icon {
    width: 40px;
    height: 40px;
    background: var(--light-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-link-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--dark-green);
}

.document-link-text {
    flex: 1;
    font-weight: 300;
    font-size: 0.9375rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(246, 81, 29, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    position: relative;
}

.card:hover {
    box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: rgba(246, 81, 29, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.stat-item:hover {
    border-color: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-green);
    line-height: 1.2;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.company-info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.company-info-item:last-child {
    border-bottom: none;
}

.company-info-label {
    color: var(--gray-500);
    font-size: 0.9375rem;
    font-weight: 300;
}

.company-info-value {
    color: var(--gray-900);
    font-weight: 300;
    text-align: right;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.98);
    color: var(--dark-green);
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(1, 249, 196, 0.3);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(1, 249, 196, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
}

.welcome-card p {
    margin-bottom: 2.5rem;
    opacity: 0.8;
    font-size: 1.125rem;
    font-weight: 300;
    position: relative;
    color: var(--gray-700);
}

/* Company Profile */
.zefix-search {
    margin-bottom: 2.5rem;
    position: relative;
}

.zefix-search-group {
    display: flex;
    gap: 1rem;
    position: relative;
}

.zefix-search-group input {
    flex: 1;
}

.zefix-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-300);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.zefix-autocomplete.active {
    display: block;
}

.zefix-autocomplete-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s;
    user-select: none;
}

.zefix-autocomplete-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.zefix-autocomplete-item:hover {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-left: 3px solid var(--light-green);
    padding-left: calc(1.25rem - 3px);
}

.zefix-autocomplete-item.loading {
    text-align: center;
    color: var(--gray-500);
    cursor: default;
    padding: 1.5rem;
}

.zefix-autocomplete-item.loading:hover {
    background: white;
    border-left: none;
    padding-left: 1.25rem;
}

.zefix-company-name {
    font-weight: 300;
    color: var(--gray-900);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.zefix-company-name strong {
    font-weight: 700;
}

.zefix-company-details {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.helper-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
    font-weight: 300;
}

/* 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);
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar, .navbar-app {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-content {
        padding: 4rem 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .features, .container, .dashboard-container {
        padding: 2rem 1rem;
    }
    
    .features {
        padding: 6rem 1rem;
    }
    
    .features h2 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .zefix-search-group {
        flex-direction: column;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
}

/* User Profile Dropdown */
.user-profile {
    position: relative;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-profile-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.user-profile-name {
    color: var(--white);
    font-weight: 300;
    font-size: 0.9375rem;
}

.user-profile-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(1, 249, 196, 0.2);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.user-profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-profile-card {
    padding: 1.5rem;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.user-profile-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-green-darker) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-profile-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 0.25rem;
}

.user-profile-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 300;
}

.user-profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-profile-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-profile-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.user-profile-value {
    font-size: 0.9375rem;
    color: var(--gray-900);
    font-weight: 300;
}

.user-profile-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-green-darker) 100%);
    color: var(--dark-green);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-profile-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.user-profile-actions a {
    display: block;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 300;
}

.user-profile-actions a:hover {
    background: var(--gray-50);
    color: var(--dark-green);
}

/* Settings Page */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(246, 81, 29, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
}

.emoji-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emoji-suggestions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.emoji-option {
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    user-select: none;
}

.emoji-option:hover {
    background: var(--gray-100);
    transform: scale(1.1);
}

.role-display {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 300;
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--action-orange);
    border: 1px solid #e04615;
    color: var(--white);
}

.alert-error {
    background: #c53030;
    border: 1px solid #9b2c2c;
    color: var(--white);
}

/* Update profile actions to have separators */
.user-profile-actions a:not(:last-child) {
    border-bottom: 1px solid var(--gray-200);
}

.user-profile-actions a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-profile-actions a:last-child {
    border-radius: 0 0 8px 8px;
}


/* Document Automation Description */
.document-automation-description {
    color: var(--gray-600);
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* LEXR Standard Tooltip */
.lexr-standard-label {
    position: relative;
    cursor: pointer;
    border-bottom: 2px dashed var(--light-green-darker);
    transition: all 0.2s;
    padding-bottom: 1px;
}

.lexr-standard-label:hover {
    color: var(--light-green-darker);
    border-bottom-color: var(--light-green);
}

.lexr-standard-label::after {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-green-darker) 100%);
    color: var(--dark-green);
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 700;
    margin-left: 0.375rem;
    vertical-align: super;
    line-height: 1;
    transition: all 0.2s;
}

.lexr-standard-label:hover::after {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(1, 249, 196, 0.4);
}

.lexr-standard-tooltip {
    position: relative;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
}

.lexr-standard-tooltip.active {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 2rem;
}

.lexr-standard-tooltip-arrow {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, rgba(1, 249, 196, 0.08) 0%, rgba(1, 249, 196, 0.04) 100%);
    border-left: 1px solid rgba(1, 249, 196, 0.3);
    border-top: 1px solid rgba(1, 249, 196, 0.3);
    transform: rotate(45deg);
    position: absolute;
    top: -6px;
    left: 2rem;
}

.lexr-standard-tooltip-content {
    background: linear-gradient(135deg, rgba(1, 249, 196, 0.08) 0%, rgba(1, 249, 196, 0.04) 100%);
    border: 1px solid rgba(1, 249, 196, 0.3);
    border-radius: 14px;
    padding: 1.5rem;
}

.lexr-standard-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.lexr-standard-tooltip-header strong {
    font-weight: 700;
    color: var(--dark-green);
    font-size: 0.9375rem;
}

.lexr-standard-tooltip-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.lexr-standard-tooltip-close:hover {
    color: var(--gray-900);
}

.lexr-standard-tooltip-content p {
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.lexr-standard-tooltip-content p:last-child {
    margin-bottom: 0;
}

/* 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;
}

/* Hide old feature-grid on homepage if needed */

@media (max-width: 768px) {
    .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;
    }
}

/* ---- Dashboard card description consistency ---- */
.section-card-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.document-automation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.document-automation-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin: 0 0 0 0;
}

/* ---- LEXR Standard Tooltip (dashboard) ---- */
.lexr-standard-label {
    position: relative;
    cursor: pointer;
    border-bottom: 2px dashed var(--light-green-darker);
    transition: all 0.2s;
    padding-bottom: 1px;
}

.lexr-standard-label:hover {
    color: var(--light-green-darker);
    border-bottom-color: var(--light-green);
}

.lexr-standard-label::after {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-green-darker) 100%);
    color: var(--dark-green);
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 700;
    margin-left: 0.375rem;
    vertical-align: super;
    line-height: 1;
    transition: all 0.2s;
}

.lexr-standard-label:hover::after {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(1, 249, 196, 0.4);
}

.lexr-standard-tooltip {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin 0.4s ease;
    margin-bottom: 0;
}

.lexr-standard-tooltip > .lexr-standard-tooltip-content {
    overflow: hidden;
}

.lexr-standard-tooltip.active {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-bottom: 2rem;
}

.lexr-standard-tooltip-content {
    background: linear-gradient(135deg, rgba(1, 249, 196, 0.08) 0%, rgba(1, 249, 196, 0.03) 100%);
    border: 1px solid rgba(1, 249, 196, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
}

.lexr-standard-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.lexr-standard-tooltip-header strong {
    font-weight: 700;
    color: var(--dark-green);
    font-size: 0.9375rem;
}

.lexr-standard-tooltip-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.lexr-standard-tooltip-close:hover {
    color: var(--gray-700);
}

.lexr-standard-tooltip-content p {
    color: var(--gray-700);
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.lexr-standard-tooltip-content p:last-child {
    margin-bottom: 0;
}

/* ---- 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) {
    .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;
    }
}