/* Reset and base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #e4e4e7;
    background: #09090b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(168, 85, 247, 0.08), transparent);
    pointer-events: none;
    z-index: -1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-content {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

.header-cta {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.header-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Layout */
main {
    max-width: 720px;
    margin: 0 auto;
    padding: 140px 24px 140px;
    position: relative;
}

/* Hero */
.hero {
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 28px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 100px;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheadline {
    font-size: 1.25rem;
    color: #a1a1aa;
    margin-bottom: 40px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(99, 102, 241, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-secondary {
    display: inline-block;
    padding: 16px 32px;
    background: transparent;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.cta-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Sections */
.section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section:last-of-type {
    border-bottom: none;
}

.section-header {
    margin-bottom: 32px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6366f1;
    margin-bottom: 12px;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Feature list */
.feature-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.feature-list li {
    position: relative;
    padding: 24px 28px;
    padding-left: 56px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 24px;
    top: 24px;
    color: #6366f1;
    font-weight: 600;
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.feature-list li strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-list li span {
    color: #71717a;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.note {
    margin-top: 28px;
    font-size: 0.875rem;
    color: #52525b;
    padding-left: 4px;
}

/* Steps */
.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 0;
}

.steps li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.steps li:last-child {
    border-bottom: none;
}

.steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
}

.steps li:hover::before {
    background: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.step-content {
    flex: 1;
}

.step-title {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
}

.step-desc {
    color: #71717a;
    font-size: 0.9375rem;
}

/* Not list */
.not-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.not-list li {
    padding: 10px 18px;
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
}

.clarification {
    font-size: 0.9375rem;
    color: #71717a;
    line-height: 1.7;
}

.clarification em {
    font-style: normal;
    color: #a1a1aa;
    font-weight: 500;
}

/* Results */
.results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.result-item {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.result-value {
    display: block;
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-label {
    font-size: 0.875rem;
    color: #71717a;
    line-height: 1.5;
}

.disclaimer {
    font-size: 0.8125rem;
    color: #52525b;
    font-style: italic;
}

/* Audience grid */
.audience-grid {
    display: grid;
    gap: 16px;
}

.audience-item {
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.audience-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.audience-item strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
}

.audience-item span {
    color: #71717a;
    font-size: 0.9375rem;
}

/* Waitlist form */
.waitlist {
    text-align: center;
}

.waitlist h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.waitlist-desc {
    color: #71717a;
    margin-bottom: 8px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 32px auto 0;
    text-align: left;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
}

.optional {
    font-weight: 400;
    color: #52525b;
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: #52525b;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2371717a' 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 14px center;
    padding-right: 44px;
}

.form-group select option {
    background: #18181b;
    color: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.submit-button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.privacy {
    margin-top: 20px;
    font-size: 0.8125rem;
    color: #52525b;
    text-align: center;
}

/* Header nav for demo page */
.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #71717a;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

/* Demo page layout */
.demo-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.demo-header {
    text-align: center;
    margin-bottom: 48px;
}

.demo-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.demo-subtitle {
    font-size: 1.125rem;
    color: #71717a;
    max-width: 560px;
    margin: 0 auto;
}

/* Prompt section */
.prompt-section {
    margin-bottom: 48px;
}

.prompt-container {
    max-width: 720px;
    margin: 0 auto;
}

.prompt-container label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 12px;
}

.prompt-container textarea {
    width: 100%;
    padding: 20px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
}

.prompt-container textarea::placeholder {
    color: #52525b;
}

.prompt-container textarea:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.prompt-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.prompt-hint {
    font-size: 0.8125rem;
    color: #52525b;
}

/* Button states */
.cta-button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Results section */
.results-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Patterns section */
.patterns-section {
    margin-bottom: 32px;
}

.patterns-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.patterns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pattern-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
}

.pattern-id {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    font-family: monospace;
}

.pattern-desc {
    font-size: 0.875rem;
    color: #a1a1aa;
}

.pattern-score {
    font-size: 0.75rem;
    font-weight: 500;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.no-patterns {
    color: #52525b;
    font-size: 0.875rem;
    font-style: italic;
}

/* Stats bar */
.stats-bar {
    display: flex;
    gap: 24px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.stat-item.highlight .stat-value {
    color: #22c55e;
}

/* Comparison grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.comparison-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-column.augmented {
    border-color: rgba(99, 102, 241, 0.3);
}

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

.column-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.column-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: #71717a;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
}

.column-tag.success {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.response-content {
    padding: 20px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #d4d4d8;
    max-height: 500px;
    overflow-y: auto;
}

.response-content .placeholder {
    color: #52525b;
    font-style: italic;
}

.response-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.875em;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.response-content pre {
    margin: 16px 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow-x: auto;
}

.response-content pre code {
    padding: 0;
    background: none;
}

.response-content strong {
    color: #fff;
    font-weight: 600;
}

/* Error message */
.error-message {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 16px 20px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 10px;
    color: #f87171;
    font-size: 0.9375rem;
}

/* Footer */

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 24px 32px;
}

.footer-content {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #71717a;
    font-weight: 600;
}

.footer-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.875rem;
    color: #52525b;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom span {
    font-size: 0.8125rem;
    color: #3f3f46;
}

/* Responsive */
@media (max-width: 640px) {
    .header-content {
        padding: 0 4px;
    }

    .logo-text {
        display: none;
    }

    main {
        padding: 120px 20px 120px;
    }

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

    .hero h1 br {
        display: none;
    }

    .subheadline {
        font-size: 1.0625rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .cta-button,
    .cta-secondary {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }

    h2 {
        font-size: 1.5rem;
    }

    .results {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 2.25rem;
    }

    .not-list {
        flex-direction: column;
    }

    .not-list li {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}