:root {
    --brand-purple: #4B2163;
    --brand-purple-light: #6a348a;
    --brand-purple-pale: #f4eff7;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --max-width: 1100px;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--brand-purple);
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.eyebrow {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-purple-light);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-header p { margin-bottom: 1rem; }

.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 50px;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--brand-purple);
}

.btn-primary, .btn-outline {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: none;
}

#try-nav.btn-outline {
    background: var(--brand-purple);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    border-radius: 2px;
}

#try-nav.btn-outline:hover {
    background: var(--brand-purple-light);
}

#login_panel_button.btn-outline {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-underline-offset: 4px;
}

#login_panel_button.btn-outline:hover {
    color: var(--brand-purple);
}

.btn-primary {
    background: var(--brand-purple);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brand-purple-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-purple);
    color: var(--brand-purple);
}

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

.pricing-card {
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--brand-purple);
    background-color: #faf7fc;
    box-shadow: 0 10px 30px rgba(75, 33, 99, 0.1);
}

.card-header .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.card-header .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.billing {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.target {
    font-weight: 700;
    margin-bottom: 2rem;
    min-height: 3em;
}

.features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.features li::before {
    content: "✓";
    color: var(--brand-purple);
    margin-right: 0.5rem;
    font-weight: bold;
}

.contact-card {
    background: var(--brand-purple-pale);
    padding: 4rem;
    border-radius: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.site-footer {
    background: #111;
    color: #eee;
    padding: 4rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
}

.disclaimer {
    font-size: 0.8rem;
    max-width: 600px;
    color: #999;
}

.footer-links a {
    color: #eee;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .pricing-grid, .form-grid {
        grid-template-columns: 1fr;
    }
    
    .header-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .main-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
    }
}

.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.platform-value-prop {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.platform-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.platform-benefits li strong {
    color: var(--brand-purple);
    font-size: 1rem;
    text-transform: uppercase;
    display: block;
}

.platform-benefits li span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #fff;
    border: 1px solid var(--border-color);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--brand-purple-pale);
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    background: var(--brand-purple);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.nav-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
}

.dot.active {
    background: var(--brand-purple);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(75, 33, 99, 0.7);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: var(--brand-purple);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

@media (max-width: 992px) {
    .platform-grid { grid-template-columns: 1fr; gap: 3rem; }
    .lightbox-nav { padding: 0.5rem; font-size: 1.5rem; }
}

.policy-content {
    max-width: 800px;
    margin-top: 3rem;
}

.policy-block {
    margin-bottom: 3rem;
}

.policy-block h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brand-purple);
    text-transform: none;
}

.policy-block p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.policy-block ul {
    list-style: none;
    padding-left: 0;
}

.policy-block li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.policy-block li::before {
    content: "•";
    color: var(--brand-purple);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-footer-links {
    margin-top: 1.5rem;
    text-align: center;
}

.link-btn {
    background: none;
    border: none;
    color: var(--brand-purple);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.link-btn:hover {
    color: var(--brand-purple-light);
}

#send_try_message:disabled, #password_reset_button:disabled {
    background-color: var(--text-muted);
    opacity: 0.6;
    cursor: default;
    border-color: var(--text-muted);
}

#try_form_status {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--brand-purple);
    font-size: 0.95rem;
}

#login_button, #password_reset_button {
    width: 100%;
}

#password_reset_subpanel {
    display: none;
}

#password_reset_phrase {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.error-container {
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-code {
    font-size: 8rem;
    line-height: 1;
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.2;
}

.error-message {
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
