:root {
    --bg-main: #0B0F19; /* Deep indigo/black, more premium than pure black */
    --bg-card: rgba(18, 24, 43, 0.6);
    --bg-card-hover: rgba(26, 35, 61, 0.8);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(212, 165, 116, 0.3);

    --brand-primary: #D4A574; /* Legal Gold/Amber */
    --brand-secondary: #B8860B; /* Dark Goldenrod */
    --brand-tertiary: #8B6508; 

    --brand-accent: #2563EB; /* Trust Blue */
    --brand-success: #10B981;

    --gradient-glow: linear-gradient(135deg, var(--brand-primary) 0%, var(--text-primary) 100%);
    --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    --font-main: 'Inter', -apple-system, system-ui, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse at 50% -20%, rgba(212, 165, 116, 0.08), transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(37, 99, 235, 0.03), transparent 50%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        filter: blur(40px);
    }
    50% {
        opacity: 0.6;
        filter: blur(60px);
    }
    100% {
        opacity: 0.3;
        filter: blur(40px);
    }
}

/* Typography elements */
h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
    line-height: 1.6;
}

.gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-gold {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo-area {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px; /* Slightly squarer than LocalPDF for professional legal feel */
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000000;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(212, 165, 116, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: rgba(212, 165, 116, 0.4);
    background: rgba(212, 165, 116, 0.05);
}

.btn-glow {
    position: relative;
    background: transparent;
    color: var(--text-primary);
}

.btn-glow::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 9px;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.btn-glow::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 8px;
    background: var(--bg-main);
    z-index: -1;
}

.btn-glow:hover::before {
    opacity: 1;
    filter: blur(4px);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 99px;
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
    z-index: 10;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

/* Visual element placeholder (e.g. laptop mockup or glass box UI) */
.hero-visual {
    margin-top: 80px;
    border-radius: 16px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 165, 116, 0.05);
    position: relative;
    animation: fadeUp 0.8s ease-out 0.5s both;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.demo-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 165, 116, 0.08), transparent 70%);
    z-index: -1;
    animation: pulseGlow 8s infinite;
}

/* Features - Bento grid */
.features {
    padding: 120px 0;
    position: relative;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: minmax(300px, auto);
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(212, 165, 116, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.bento-large {
    grid-column: span 2;
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--brand-primary);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.bento-card:hover .bento-icon {
    background: rgba(212, 165, 116, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.2);
}

.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Waitlist section (replaces pricing) */
.waitlist-section {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(212, 165, 116, 0.02) 50%, transparent);
}

.waitlist-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 0 60px rgba(212, 165, 116, 0.03), 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.waitlist-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

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

.form-group {
    margin-bottom: 16px;
    text-align: left;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
    min-height: 36px; /* Forces labels to take up 2 lines of space for grid alignment */
    display: flex;
    align-items: flex-end; /* Bottom align the text if it's only 1 line */
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-select option {
    background: var(--bg-main);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.2);
}

.btn-submit {
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: 8px;
    width: 100%;
    margin-top: 16px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.9rem;
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

/* Base styles for inner pages (privacy, terms, about, help) */
.page-header {
    padding: 180px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.page-header h1 {
    font-size: 3.5rem;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    animation: fadeUp 0.6s ease-out both;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.content {
    padding: 80px 0;
    max-width: 760px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.content h2 {
    font-size: 1.75rem;
    margin: 48px 0 24px;
    color: var(--brand-primary);
}

.content h3 {
    font-size: 1.25rem;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.content ul {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 20px;
}

.content li {
    margin-bottom: 8px;
}

.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    margin-top: 64px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.error-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 180px 24px 80px;
    position: relative;
    min-height: 60vh;
}

.error-content .error-icon {
    color: var(--brand-primary);
    margin-bottom: 32px;
    opacity: 0.8;
    animation: fadeUp 0.6s ease-out both;
}

.error-content h1 {
    font-size: 5rem;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.error-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    animation: fadeUp 0.6s ease-out 0.2s both;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 140px 0 60px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .features, .waitlist-section {
        padding: 80px 0;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-large {
        grid-column: span 1;
    }

    .bento-card {
        padding: 24px;
    }

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

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

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

    .nav-links {
        display: none;
    }

    .page-header {
        padding: 140px 20px 40px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .content {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}
