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

:root {
    /* Color Palette - Professional & Clean */
    --primary-color: #2a2a98;
    --primary-dark: #1a1a4e;
    --primary-light: #a78bfa;
    --secondary-color: #0f172a;
    --secondary-light: #1e293b;
    --accent-color: #06b6d4;

    /* Neutral Colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-dark: #1e293b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* Layout */
    --global-nav-height: 32px;
    --prelaunch-banner-height: 44px;
}

/* Pre-launch banner */
.prelaunch-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--prelaunch-banner-height);
    background: linear-gradient(90deg, var(--primary-dark, #0c2340) 0%, var(--primary, #1a3d6d) 100%);
    color: #ffffff;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    font-size: 0.85rem;
    line-height: 1.3;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.prelaunch-banner-text {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    line-height: 1.3;
}

.prelaunch-banner-text strong {
    color: #ffffff;
    margin-right: 0.4em;
}

.prelaunch-banner-text a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.6);
    transition: text-decoration-color var(--transition-fast);
}

.prelaunch-banner-text a:hover {
    text-decoration-color: #ffffff;
}

@media (max-width: 640px) {
    :root {
        --prelaunch-banner-height: 60px;
    }
    .prelaunch-banner {
        font-size: 0.75rem;
        padding: 0 0.75rem;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.navbar .container {
    max-width: 100%;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 3.25rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: var(--font-weight-regular);
}

.global-nav {
    display: block;
    position: fixed;
    top: var(--prelaunch-banner-height);
    left: 0;
    right: 0;
    height: var(--global-nav-height);
    background-color: #0a0f1a;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.global-nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0.4rem 0;
}

.global-nav-link {
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.75rem;
    transition: color var(--transition-fast);
}

.global-nav-link:hover,
.global-nav-link.active {
    color: var(--primary-light);
}

.global-nav-link + .global-nav-link {
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.navbar {
    position: fixed;
    top: calc(var(--global-nav-height) + var(--prelaunch-banner-height));
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px 10px rgba(0, 0, 0, 0.35);
    z-index: 1100;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px 10px rgba(0, 0, 0, 0.35);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-img {
    height: 54px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: stretch;
    margin-left: auto;
    height: 100%;
}

.nav-menu > li {
    display: flex;
    align-items: stretch;
}

.nav-link {
    font-size: 0.938rem;
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.85);
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
    padding: 0.75rem 1.1rem;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
}

.nav-link-demo {
    background-color: #2a2a98;
    color: #ffffff !important;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
}

.nav-link-login {
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
}

.page-lei .nav-link-login {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1102;
    position: relative;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    margin: 3px 0;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
    transform-origin: center;
}

.mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-backdrop.active {
    display: block;
    opacity: 1;
}

.hero-label {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.hero-title {
    margin-bottom: var(--spacing-lg);
}

.hero-main {
    font-family: 'Lora', serif;
    font-size: 3.25rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    max-width: 640px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.35s forwards;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.hero-cta .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    white-space: nowrap;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.5;
    vertical-align: middle;
    box-sizing: border-box;
}

.btn-accent {
    background-color: var(--bg-white);
    color: #2a2a98;
    border-color: #2a2a98;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 82vw);
        height: 100vh;
        height: 100dvh;
        background-color: var(--bg-dark);
        padding: 5rem var(--spacing-lg) var(--spacing-xl);
        z-index: 1100;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
        list-style: none;
        margin: 0;
    }
    .nav-menu.active {
        transform: translateX(0);
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    .nav-menu li:nth-last-child(2) {
        margin-top: auto;
        padding-top: var(--spacing-lg);
    }
    .nav-menu .nav-link {
        display: block;
        padding: 0.875rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 1.0625rem;
        letter-spacing: 0.01em;
        color: #ffffff;
        background: none;
    }
    .nav-menu .nav-link.active {
        color: var(--primary-light);
    }
    .nav-menu .nav-link-login {
        display: block;
        text-align: center;
        padding: 0.75rem var(--spacing-lg);
        border: 1.5px solid rgba(255, 255, 255, 0.35);
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
        border-radius: var(--radius-md);
        color: #ffffff !important;
        background: transparent;
        font-size: 1.0625rem;
        font-weight: var(--font-weight-semibold);
        margin-bottom: 0.625rem;
        width: 100%;
        box-sizing: border-box;
    }
    .nav-menu .nav-link-demo {
        display: block;
        text-align: center;
        padding: 0.75rem var(--spacing-lg);
        border-bottom: none;
        border-radius: var(--radius-md);
        font-size: 1.0625rem;
        background-color: var(--primary-color);
        color: #ffffff !important;
        width: 100%;
        box-sizing: border-box;
    }
    .page-lei .nav-menu .nav-link {
        color: #ffffff;
        background: none;
    }
    .page-lei .nav-menu .nav-link:hover,
    .page-lei .nav-menu .nav-link.active {
        color: var(--primary-light);
        background: none;
    }
}

.section-contact {
    background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
}

.section-contact > .container {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-xl);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.875rem;
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
}

.contact-form {
    display: grid;
    gap: var(--spacing-md);
}

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

.form-group label {
    font-size: 0.938rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a2a98;
}

.form-group textarea {
    resize: vertical;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.page-lei .navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85); /* For default dark navbar */
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.page-home .logo-subtitle,
.page-lei .logo-subtitle {
    color: var(--text-dark);
}

.page-lei .navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.page-lei .nav-link {
    color: var(--text-dark);
}

.page-lei .mobile-menu-toggle span {
    background-color: var(--text-primary);
}

.lei-hero {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0f1a 0%, #1a1a4e 50%, #2a2a98 100%);
    color: #ffffff;
    padding-top: 0;
    padding-bottom: 0;
    min-height: auto;
    overflow: hidden;
}

.lei-hero-skyline {
    flex: 0 0 50%;
    max-width: 50%;
    height: auto;
    align-self: flex-end;
    opacity: 0.18;
    pointer-events: none;
    margin-left: auto;
    margin-top: 112px;
}

.lei-hero-badge {
    position: absolute;
    left: 58%;
    top: 38%;
    transform: translate(-50%, -50%) rotate(-12deg);
    width: 150px;
    height: 150px;
    z-index: 2;
    animation: badge-appear 0.6s ease-out 1.5s both;
}

.lei-badge-burst {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: badge-spin 30s linear infinite;
}

.lei-badge-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    line-height: 1.15;
}

.lei-badge-line1 {
    font-size: 0.7rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.lei-badge-line2 {
    font-size: 0.7rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.04em;
    opacity: 0.85;
    margin-bottom: 4px;
}

.lei-badge-divider {
    display: block;
    width: 30px;
    height: 1px;
    background: var(--primary-light);
    opacity: 0.6;
    margin-bottom: 4px;
}

.lei-badge-line3 {
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@keyframes badge-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-12deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-12deg) scale(1);
    }
}

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

@keyframes draw-building {
    from {
        stroke-dashoffset: 1200;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-window {
    from {
        stroke-dashoffset: 68;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.lei-hero-skyline .building {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw-building 2.5s ease-out forwards;
}

.lei-hero-skyline .window {
    stroke-dasharray: 68;
    stroke-dashoffset: 68;
    animation: draw-window 0.6s ease-out forwards;
    animation-delay: 1.8s;
}

.lei-hero-skyline .spire {
    stroke-dasharray: 28;
    stroke-dashoffset: 28;
    animation: draw-window 0.5s ease-out forwards;
    animation-delay: 2.2s;
}

.lei-hero-skyline .door {
    stroke-dasharray: 84;
    stroke-dashoffset: 84;
    animation: draw-window 0.6s ease-out forwards;
    animation-delay: 1.8s;
}

.lei-hero .hero-label {
    color: var(--primary-light);
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.9375rem;
}

.lei-hero .hero-title,
.lei-hero .hero-main {
    color: #ffffff;
}

.lei-hero .hero-description {
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
}

.lei-hero .hero-turnaround {
    color: var(--primary-light);
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    margin-top: -0.5rem;
    margin-bottom: var(--spacing-md);
}

.lei-trust-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
}

.lei-trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.lei-trust-item {
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.lei-trust-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.lei-hero .container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.lei-hero-content {
    max-width: 50%;
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(112px + var(--global-nav-height) + var(--prelaunch-banner-height));
    padding-bottom: var(--spacing-2xl);
    margin-top: 100px;
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-base);
}

.section-what-is-lei {
    background: #ffffff;
    padding: var(--spacing-3xl) 0;
}

.lei-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.lei-feature-card {
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.lei-feature-card h3 {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1.375rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.lei-feature-card p {
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.7;
}

.lei-features-cta {
    margin-top: var(--spacing-lg);
    text-align: center;
    font-weight: var(--font-weight-semibold);
}

.lei-features-cta a {
    color: var(--primary-color);
    text-decoration: none;
}

.lei-features-cta a:hover {
    text-decoration: underline;
}

.section-lei-pricing {
    background: var(--bg-light);
    padding: var(--spacing-3xl) 0;
}

.section-partner {
    background: #ffffff;
    padding: var(--spacing-3xl) 0;
}

.section-industries {
    background: var(--bg-light);
    padding: var(--spacing-3xl) 0;
}

/* LEI Lookup Widget */
.section-lookup {
    background: #ffffff;
    padding: var(--spacing-3xl) 0;
}

.lei-lookup-widget {
    max-width: 720px;
    margin: var(--spacing-xl) auto 0;
}

.lei-lookup-label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.lei-lookup-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.lei-lookup-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.lei-lookup-status {
    min-height: 1.5rem;
    margin: var(--spacing-sm) 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.lei-lookup-status[data-tone='error'] {
    color: #b91c1c;
}

.lei-lookup-status[data-tone='loading'] {
    color: var(--primary-color);
}

.lei-lookup-results {
    list-style: none;
    padding: 0;
    margin: var(--spacing-sm) 0 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.lei-lookup-results:empty {
    display: none;
}

.lei-lookup-result {
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.lei-lookup-result:last-child {
    border-bottom: none;
}

.lei-lookup-result-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition-base);
}

.lei-lookup-result-link:hover,
.lei-lookup-result-link:focus {
    background: var(--bg-light);
    outline: none;
}

.lei-lookup-result-name {
    display: block;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.lei-lookup-result-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.lei-lookup-result-lei {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
    background: var(--bg-light);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.lei-lookup-result-status {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    font-weight: var(--font-weight-semibold);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-color);
}

.lei-lookup-result-status[data-status='LAPSED'],
.lei-lookup-result-status[data-status='ANNULLED'],
.lei-lookup-result-status[data-status='RETIRED'] {
    background: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
}

.lei-lapse-callout {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-lg);
}

.lei-lapse-callout-content h3 {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1.375rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.lei-lapse-callout-content p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.lei-lapse-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0 0 var(--spacing-sm);
    color: var(--text-dark);
    line-height: 1.7;
}

.lei-lapse-list li {
    margin-bottom: 0.35rem;
}

.lei-lapse-cta {
    margin-bottom: 0;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* Article / regulations page */
.section-article h1 {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 2.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-article h2 {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.section-article h3 {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.section-article p,
.section-article ul,
.section-article ol {
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: var(--spacing-md);
}

.section-article ul,
.section-article ol {
    padding-left: 1.5rem;
}

.section-article li {
    margin-bottom: 0.4rem;
}

.section-article a {
    color: var(--primary-color);
}

.article-meta {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 0.95rem;
}

.article-lede {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.article-steps {
    counter-reset: step;
}

.article-cta-row {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.regulations-table-wrap {
    overflow-x: auto;
    margin: var(--spacing-lg) 0 var(--spacing-xl);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.regulations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.regulations-table thead {
    background: var(--bg-light);
}

.regulations-table th,
.regulations-table td {
    text-align: left;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.55;
}

.regulations-table th {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.regulations-table tbody tr:last-child th,
.regulations-table tbody tr:last-child td {
    border-bottom: none;
}

.regulations-table td:first-child {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .regulations-table td:first-child {
        white-space: normal;
    }
    .regulations-table {
        font-size: 0.875rem;
    }
}

.lei-industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.lei-industry-card {
    background: linear-gradient(160deg, #6d28d9 0%, #4c1d95 60%, #3b0764 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 10px 30px -12px rgba(59, 7, 100, 0.45);
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.lei-industry-icon {
    width: 56px;
    height: 56px;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.lei-industry-card h3 {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
}

.lei-industry-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.lei-industry-card strong {
    color: #ffffff;
}

.lei-industry-link {
    margin-top: auto;
    margin-bottom: 0;
    font-weight: var(--font-weight-semibold);
}

.lei-industry-link a {
    color: #e9d5ff;
    text-decoration: none;
}

.lei-industry-link a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.lei-partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.lei-partner-card {
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.lei-partner-card h3 {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.lei-partner-card p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.lei-partner-link {
    margin-top: auto;
    margin-bottom: 0;
    font-weight: var(--font-weight-semibold);
}

.lei-partner-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.lei-partner-link a:hover {
    text-decoration: underline;
}

.image-placeholder {
    margin: var(--spacing-xl) auto 0;
    max-width: 720px;
    padding: var(--spacing-lg);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    text-align: center;
}

.image-placeholder figcaption {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.image-placeholder code {
    font-size: 0.8125rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.image-illustration {
    margin: var(--spacing-xl) auto 0;
    max-width: 720px;
    text-align: center;
}

.image-illustration img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.lei-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.lei-pricing-card {
    background: #ffffff;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lei-pricing-card h3 {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1.375rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.lei-price {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.lei-price-period {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.lei-price-total {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.lei-price-custom {
    font-size: 2rem;
}

.lei-pricing-card > p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.lei-pricing-card ul {
    list-style: none;
    text-align: left;
    width: 100%;
    margin-bottom: var(--spacing-xl);
}

.lei-pricing-card ul li {
    padding: var(--spacing-xs) 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-left: 1.5rem;
    position: relative;
}

.lei-pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: var(--font-weight-bold);
}

.lei-pricing-card .btn {
    margin-top: auto;
}

.lei-pricing-featured {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.section-how-it-works {
    background: #ffffff;
    padding: var(--spacing-3xl) 0;
}

.lei-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.lei-service-card {
    background: #f7f8fc;
    border: 1px solid rgba(42, 42, 152, 0.1);
    border-radius: 12px;
    padding: var(--spacing-lg);
}

.lei-service-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.lei-service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.lei-transfer-notice {
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    padding: var(--spacing-lg);
    border-left: 4px solid var(--accent, #d97706);
    background: #fff8ec;
    border-radius: 8px;
}

.lei-transfer-notice p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .lei-services-grid {
        grid-template-columns: 1fr;
    }
}

.lei-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.lei-step {
    text-align: center;
    padding: var(--spacing-xl);
}

.lei-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a98, #1a1a4e);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.lei-step h3 {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.lei-step p {
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.7;
}

.section-lei-faq {
    background: linear-gradient(135deg, #0a0f1a 0%, #1a1a4e 100%);
    padding: var(--spacing-3xl) 0;
}

.section-lei-faq .section-title {
    color: #ffffff;
}

.lei-faq-list {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
}

.lei-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.lei-faq-item h3 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
}

.lei-faq-item p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.lei-faq-item p:last-child {
    margin-bottom: 0;
}

.lei-faq-item a {
    color: var(--primary-light);
    text-decoration: underline;
}

.lei-faq-item a:hover {
    color: #ffffff;
}

.lei-faq-callout {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(167, 139, 250, 0.15);
    border-left: 3px solid var(--primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #ffffff;
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-detail-item {
    margin-bottom: var(--spacing-sm);
}

.contact-detail-item h4 {
    margin-bottom: 0.25rem;
}

.contact-detail-item a {
    display: block;
}

@media (max-width: 1180px) {
    .lei-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .lei-features-grid,
    .lei-pricing-grid,
    .lei-partner-grid,
    .lei-industries-grid,
    .lei-steps {
        grid-template-columns: 1fr;
    }
    .lei-hero {
        padding-top: calc(140px + var(--global-nav-height) + var(--prelaunch-banner-height));
    }
    .global-nav-wrapper {
        gap: var(--spacing-lg);
    }
    .global-nav-link {
        font-size: 0.6875rem;
    }
}

@media (max-width: 640px) {
    .lei-hero {
        padding-top: calc(140px + var(--global-nav-height) + var(--prelaunch-banner-height));
        min-height: auto;
        padding-bottom: var(--spacing-xl);
    }
    .lei-hero .hero-main {
        font-size: 2rem;
    }
}

.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-compliance {
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-compliance p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
    word-break: break-all;
}

.footer-compliance a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition:
        color var(--transition-fast),
        text-decoration-color var(--transition-fast);
}

.footer-compliance a:hover {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom p a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition:
        color var(--transition-fast),
        text-decoration-color var(--transition-fast);
}

.footer-bottom p a:hover {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

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

@media (max-width: 968px) {
    .hero-main {
        font-size: 2.5rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 0;
        background: transparent;
    }
    .form-group input,
    .form-group textarea {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 640px) {
    * {
        max-width: 100%;
    }
    body {
        overflow-x: hidden;
    }
    .container {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    .section {
        padding: var(--spacing-lg) 0.5rem;
    }
    .section-why-trc > .container,
    .section-platform > .container,
    .section-platform-ui > .container,
    .section-contact > .container,
    .section-services > .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-main {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-cta {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: 2rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.75rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-body h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
 * Pre-launch gate modal
 * Triggered by [data-prelaunch="login"|"register"]; injected from JS.
 * Remove with the pre-launch banner at June 2026 launch.
 * ======================================== */
.prelaunch-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.prelaunch-modal[hidden] {
    display: none;
}

.prelaunch-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 35, 64, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.prelaunch-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    color: var(--text-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    animation: prelaunchModalIn 180ms ease-out;
}

@keyframes prelaunchModalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.prelaunch-modal-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.35rem;
    line-height: 1.25;
    color: var(--primary-dark, #0c2340);
}

.prelaunch-modal-body {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.55;
}

.prelaunch-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.prelaunch-modal-actions .btn {
    min-width: 8rem;
}

.prelaunch-modal-close {
    color: var(--text-primary);
    border-color: rgba(12, 35, 64, 0.25);
    background: transparent;
}

.prelaunch-modal-close:hover,
.prelaunch-modal-close:focus {
    background: rgba(12, 35, 64, 0.06);
    border-color: rgba(12, 35, 64, 0.4);
    color: var(--text-primary);
}

body.prelaunch-modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .prelaunch-modal-dialog {
        padding: 1.5rem;
    }
    .prelaunch-modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .prelaunch-modal-actions .btn {
        width: 100%;
    }
}
