/* ===== LEGAL BOB — Global Styles ===== */
:root {
    --navy: #0a1628;
    --navy-light: #111d35;
    --navy-mid: #162544;
    --gold: #c9a84c;
    --gold-light: #e0c76a;
    --gold-dim: rgba(201, 168, 76, 0.15);
    --white: #ffffff;
    --gray-100: #f4f5f7;
    --gray-200: #e2e4e9;
    --gray-300: #c1c5ce;
    --gray-400: #8b90a0;
    --gray-500: #6b7080;
    --text: #e8eaf0;
    --text-muted: #a0a5b8;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--navy);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gold {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(201, 168, 76, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-nav {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy) !important;
    padding: 10px 24px;
    border-radius: 8px;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.btn-admin-nav {
    background: transparent !important;
    border: 1px solid rgba(201, 168, 76, 0.4) !important;
    color: var(--gold) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
}

.btn-admin-nav:hover {
    background: rgba(201, 168, 76, 0.1) !important;
    border-color: var(--gold) !important;
}

.btn-login {
    background: rgba(201, 168, 76, 0.08) !important;
    border: 1px solid rgba(201, 168, 76, 0.35) !important;
    color: var(--gold) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
}

.btn-login:hover {
    background: rgba(201, 168, 76, 0.15) !important;
    border-color: var(--gold) !important;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: rgba(201, 168, 76, 0.08);
    color: var(--gold);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--gold);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    background: rgba(201, 168, 76, 0.06);
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURES GRID ===== */
.features-section {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--navy-mid);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== PRACTICE AREAS ===== */
.practice-section {
    background: var(--navy-light);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.practice-card {
    background: var(--navy-mid);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.practice-card:hover {
    border-color: rgba(201, 168, 76, 0.2);
    transform: translateY(-2px);
}

.practice-card.featured {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--navy-mid) 0%, rgba(201, 168, 76, 0.06) 100%);
    grid-column: span 1;
}

.practice-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.practice-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.practice-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-section {
    background: var(--navy);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing-section {
    background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--navy-mid);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.popular {
    border-color: var(--gold);
    background: linear-gradient(180deg, var(--navy-mid) 0%, rgba(201, 168, 76, 0.05) 100%);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-tier {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 36px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 28px;
    font-family: 'Playfair Display', serif;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===== DEMO SECTION ===== */
.demo-section {
    background: var(--navy);
    padding: 80px 0 100px;
}

.demo-card {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius-lg);
    padding: 64px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.demo-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.demo-card > p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.demo-form {
    text-align: left;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--navy);
    color: var(--white);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

select.form-input {
    appearance: none;
    cursor: pointer;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    width: 100%;
}

.form-row:last-of-type {
    margin-bottom: 24px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-400);
}

.disclaimer {
    margin-top: 12px;
    font-size: 11px !important;
    color: var(--gray-500) !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ADMIN DEMO BUTTON (floating) ===== */
.admin-demo-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 8000;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(201, 168, 76, 0.4);
    transition: var(--transition);
}

.admin-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(201, 168, 76, 0.55);
}

/* ===== ADMIN PANEL ===== */
.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.admin-overlay.active {
    display: flex;
}

.admin-panel {
    background: var(--navy-light);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
}

.admin-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.admin-close:hover {
    background: rgba(255, 50, 50, 0.3);
}

.admin-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.admin-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gold);
}

.admin-form-group {
    margin-bottom: 14px;
}

.admin-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.admin-code-box {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.admin-link-input {
    flex: 1;
    font-family: 'Inter', monospace;
    font-size: 13px !important;
    background: var(--navy) !important;
    color: var(--gold) !important;
    border-color: rgba(201, 168, 76, 0.3) !important;
}

.admin-copy-btn {
    white-space: nowrap;
    padding: 14px 18px !important;
    font-size: 13px !important;
}

.admin-meta {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.admin-codes-list {
    max-height: 200px;
    overflow-y: auto;
}

.admin-empty {
    font-size: 13px;
    color: var(--gray-400);
    text-align: center;
    padding: 16px;
}

.admin-code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--navy);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-code-item .code-val {
    color: var(--gold);
    font-family: monospace;
    font-weight: 600;
}

.admin-code-item .code-info {
    color: var(--text-muted);
    font-size: 11px;
}

.admin-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid,
    .practice-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 999;
    }

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

    .nav-links a {
        font-size: 20px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .features-grid,
    .practice-grid,
    .pricing-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: none;
    }

    .hero-stats {
        gap: 32px;
    }

    .demo-card {
        padding: 40px 24px;
    }

    .form-row {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero {
        padding: 100px 0 60px;
    }
}
