/* Jaze.io Global Styles */

/* CSS Variables */
:root {
    /* Brand Colors */
    --jaze-orange: #E8632A;
    --jaze-orange-hover: #d4551e;
    --jaze-purple: #3C2A6B;

    /* Hero/Dark Background Colors */
    --jaze-hero-bg: #1e1440;
    --jaze-hero-input-bg: #160e30;
    --jaze-hero-input-border: #35295e;
    --jaze-hero-headline: #f5f2ff;
    --jaze-hero-text: #9b8fc4;
    --jaze-hero-muted: #5a4e80;
    --jaze-hero-examples: #8578aa;
    --jaze-hero-dividers: #2a1e50;

    /* Body/Light Background Colors */
    --jaze-body-bg: #faf9f6;
    --jaze-body-headline: #1a1a1a;
    --jaze-body-text: #666666;
    --jaze-body-muted: #8a8780;
    --jaze-body-border: #e4e1db;
    --jaze-card-bg: #ffffff;

    /* Response Box Colors */
    --jaze-response-bg: #160e30;
    --jaze-response-border: #E8632A;
    --jaze-response-label: #E8632A;
    --jaze-response-text: #cdc6e0;

    /* Typography */
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'DM Sans', sans-serif;
}

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

/* Base Styles */
body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--jaze-body-headline);
    background-color: var(--jaze-body-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.jaze-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 20, 64, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1rem 1.5rem;
}

.jaze-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jaze-nav-logo {
    display: flex;
    align-items: center;
    gap: 2px;
}

.jaze-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.jaze-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--jaze-hero-text);
    transition: all 0.3s ease;
}

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

.jaze-nav-links a {
    color: var(--jaze-hero-text);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.jaze-nav-cta {
    background: var(--jaze-orange);
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.jaze-nav-cta:hover {
    background: var(--jaze-orange-hover);
}

/* Logo Styles */
.jaze-logo-img {
    height: 32px;
    display: block;
}

.jaze-logo-hero .jaze-logo-img {
    height: 48px;
}

.jaze-logo-footer .jaze-logo-img {
    height: 28px;
}

/* Hero Section */
.jaze-hero {
    background: var(--jaze-hero-bg);
    padding: 7rem 1.5rem 3.5rem;
    text-align: center;
    margin-top: 60px;
}

.jaze-hero-inner {
    max-width: 640px;
    margin: 0 auto;
}

.jaze-logo-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 3rem;
}

.jaze-hero h1 {
    font-size: 42px;
    color: var(--jaze-hero-headline);
    margin-bottom: 1.25rem;
}

.jaze-hero-subtitle {
    font-size: 16px;
    line-height: 1.65;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    color: var(--jaze-hero-text);
}

/* Textarea */
.jaze-textarea {
    width: 100%;
    max-width: 540px;
    min-height: 200px;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    background: white;
    border: 1px solid var(--jaze-hero-input-border);
    border-radius: 12px;
    color: black;
    resize: vertical;
    transition: border-color 0.2s;
    display: block;
    margin: 0 auto;
}

.jaze-textarea:focus {
    outline: none;
    border-color: var(--jaze-orange);
}

.jaze-textarea::placeholder {
    color: black;
}

/* Buttons */
.jaze-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.25rem;
    padding: 13px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: var(--jaze-orange);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.jaze-btn-primary:hover {
    background: var(--jaze-orange-hover);
    transform: translateY(-1px);
}

.jaze-btn-primary:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.jaze-btn-primary.loading {
    background: var(--jaze-orange);
    cursor: wait;
    animation: pulse 2s ease-in-out infinite;
}

/* Sparks */
.jaze-sparks {
    margin-top: 1.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.jaze-sparks-label {
    font-size: 11px;
    color: #5a4e80;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    text-align: center;
}

.jaze-spark {
    font-size: 13px;
    color: #8578aa;
    padding: 6px 0;
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

/* AI Response Box */
.jaze-response {
    max-width: 540px;
    margin: 2rem auto 0;
    padding: 1.5rem 1.75rem;
    background: var(--jaze-response-bg);
    border-radius: 12px;
    border-left: 3px solid var(--jaze-response-border);
    display: none;
}

.jaze-response.visible {
    display: block;
    animation: fadeUp 0.4s ease;
}

.jaze-response-label {
    font-size: 11px;
    color: var(--jaze-response-label);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.jaze-response-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--jaze-response-text);
    text-align: left;
}

/* Lead Capture Form */
.jaze-capture {
    max-width: 540px;
    margin: 1.25rem auto 0;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--jaze-hero-input-border);
    border-radius: 12px;
    display: none;
    text-align: left;
}

.jaze-capture.visible {
    display: block;
    animation: fadeUp 0.4s ease 0.15s both;
}

.jaze-capture h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--jaze-hero-headline);
    margin-bottom: 0.25rem;
}

.jaze-capture p {
    font-size: 14px;
    color: var(--jaze-hero-examples);
    margin-bottom: 1.25rem;
}

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

.jaze-form-row input {
    flex: 1;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--jaze-hero-input-bg);
    border: 1px solid var(--jaze-hero-input-border);
    border-radius: 8px;
    color: #e8e4f0;
}

.jaze-form-row input::placeholder {
    color: var(--jaze-hero-muted);
}

.jaze-form-row input:focus {
    outline: none;
    border-color: var(--jaze-orange);
}

.jaze-btn-capture {
    width: 100%;
    padding: 13px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: var(--jaze-orange);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.jaze-btn-capture:hover {
    background: var(--jaze-orange-hover);
}

.jaze-btn-capture:disabled {
    background: #666;
    cursor: not-allowed;
}

.jaze-capture-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.jaze-capture-success p {
    color: #4ade80;
    font-size: 16px;
    font-weight: 500;
}

.jaze-capture.success .jaze-capture-success {
    display: block;
}

.jaze-capture.success form {
    display: none;
}

/* Gradient Transition */
.jaze-transition {
    height: 60px;
}

/* Body Content */
.jaze-body {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Divider */
.jaze-divider {
    height: 1px;
    background: var(--jaze-body-border);
    margin: 3rem 0;
}

/* Section Label */
.jaze-section-label {
    font-size: 11px;
    color: #b0ada5;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

/* Proof Stats */
.jaze-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.jaze-proof-item {
    padding: 1.25rem 1rem;
    border-radius: 8px;
    background: var(--jaze-card-bg);
    border: 1px solid var(--jaze-body-border);
    text-align: center;
}

.jaze-proof-number {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--jaze-orange);
    margin-bottom: 0.2rem;
}

.jaze-proof-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--jaze-body-headline);
    margin-bottom: 0.25rem;
}

.jaze-proof-desc {
    font-size: 12px;
    color: var(--jaze-body-muted);
    line-height: 1.4;
}

/* Case Studies */
.jaze-case {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--jaze-body-border);
}

.jaze-case:last-child {
    border-bottom: none;
}

.jaze-case-type {
    font-size: 11px;
    color: var(--jaze-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.jaze-case-problem {
    font-size: 15px;
    line-height: 1.55;
    color: var(--jaze-body-headline);
    margin-bottom: 0.35rem;
}

.jaze-case-result {
    font-size: 14px;
    color: var(--jaze-body-text);
    font-style: italic;
}

/* Steps */
.jaze-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 0.75rem 0;
}

.jaze-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--jaze-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.jaze-step-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--jaze-body-headline);
    margin-bottom: 0.15rem;
}

.jaze-step-desc {
    font-size: 14px;
    color: var(--jaze-body-muted);
    line-height: 1.5;
}

/* About Section */
.jaze-about {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.jaze-about-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.jaze-about-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--jaze-body-text);
}

.jaze-about-text strong {
    color: var(--jaze-body-headline);
    font-weight: 500;
}

/* FAQ Section */
.jaze-faq-item {
    margin-bottom: 0.75rem;
    border: 1px solid var(--jaze-body-border);
    border-radius: 8px;
    overflow: hidden;
}

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

.jaze-faq-question {
    width: 100%;
    background: var(--jaze-card-bg);
    border: none;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--jaze-body-headline);
    text-align: left;
    line-height: 1.4;
    transition: background 0.2s ease;
}

.jaze-faq-question:hover {
    background: #f5f4f0;
}

.jaze-faq-icon {
    font-size: 20px;
    color: var(--jaze-orange);
    flex-shrink: 0;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.jaze-faq-question[aria-expanded="true"] .jaze-faq-icon {
    transform: rotate(45deg);
}

.jaze-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--jaze-card-bg);
}

.jaze-faq-answer.open {
    max-height: 500px;
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.jaze-faq-answer p {
    font-size: 14px;
    color: var(--jaze-body-text);
    line-height: 1.65;
    margin: 0;
}

/* Event Card */
.jaze-event-card {
    background: var(--jaze-card-bg);
    border: 1px solid var(--jaze-body-border);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.jaze-event-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f0eaf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--jaze-purple);
    letter-spacing: 0.5px;
}

.jaze-event-content {
    flex: 1;
}

.jaze-event-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--jaze-body-headline);
    margin-bottom: 0.2rem;
}

.jaze-event-desc {
    font-size: 14px;
    color: var(--jaze-body-muted);
}

.jaze-event-link {
    font-size: 14px;
    color: var(--jaze-orange);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.jaze-event-link:hover {
    text-decoration: underline;
}

/* Final CTA */
.jaze-final-cta {
    text-align: center;
    padding: 2rem 0;
}

.jaze-final-cta h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--jaze-body-headline);
    margin-bottom: 0.75rem;
}

.jaze-final-cta p {
    font-size: 14px;
    color: var(--jaze-body-muted);
    margin-bottom: 1.25rem;
}

/* Footer */
.jaze-footer {
    background: var(--jaze-hero-bg);
    color: var(--jaze-hero-text);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.jaze-footer-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
}

.jaze-footer-brand p {
    font-size: 14px;
    color: var(--jaze-hero-muted);
    margin-top: 0.5rem;
}

.jaze-logo-footer {
    display: flex;
    align-items: center;
    gap: 2px;
}

.jaze-footer-links {
    display: flex;
    gap: 3rem;
}

.jaze-footer-column h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--jaze-hero-headline);
    margin-bottom: 1rem;
}

.jaze-footer-column a {
    display: block;
    font-size: 14px;
    color: var(--jaze-hero-text);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.jaze-footer-column a:hover {
    color: var(--jaze-orange);
}

.jaze-footer-bottom {
    max-width: 640px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--jaze-hero-dividers);
    text-align: center;
}

.jaze-footer-bottom p {
    font-size: 13px;
    color: var(--jaze-hero-muted);
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(0.98);
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    /* Navigation */
    .jaze-nav-toggle {
        display: flex;
    }

    .jaze-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--jaze-hero-bg);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--jaze-hero-dividers);
    }

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

    /* Hero */
    .jaze-hero {
        padding: 5rem 1rem 3rem;
    }

    .jaze-hero h1 {
        font-size: 30px;
    }

    /* Forms */
    .jaze-form-row {
        flex-direction: column;
    }

    /* Proof Grid */
    .jaze-proof-grid {
        grid-template-columns: 1fr;
    }

    /* Event Card */
    .jaze-event-card {
        flex-direction: column;
        text-align: center;
    }

    /* Footer */
    .jaze-footer-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .jaze-footer-links {
        gap: 2rem;
    }
}