:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-elevated: #1a1a24;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --accent: #00d4aa;
    --accent-glow: rgba(0, 212, 170, 0.4);
    --accent-subtle: rgba(0, 212, 170, 0.1);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
}

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

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Grain overlay for texture */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent);
    animation: pulse 3s ease-in-out infinite;
}

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

.logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 7rem 5rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-subtle);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Headline */
.headline {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent);
    position: relative;
}

.subheadline {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.feature-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 10px;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.feature-text strong {
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Learn More Button */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.learn-more-btn:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.learn-more-btn .btn-icon {
    transition: transform 0.3s ease;
}

.learn-more-btn:hover .btn-icon {
    transform: translateY(3px);
}

/* Signup Form */
.signup-form {
    max-width: 480px;
}

.input-wrapper {
    display: flex;
    gap: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.4rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submit-btn:hover {
    background: #00e6b8;
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    background: var(--accent);
    transform: none;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.form-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 0.5rem;
}

/* Success Message */
.success-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--accent-subtle);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 14px;
    color: var(--accent);
    font-weight: 500;
    max-width: 480px;
}

.success-message.show {
    display: flex;
    animation: fadeInUp 0.5s ease-out;
}

.success-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    font-weight: 700;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.preview-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.flow-arrow {
    color: var(--accent);
    font-size: 1.25rem;
    opacity: 0.6;
}

.assistant-preview {
    width: 100%;
    max-width: 340px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.assistant-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.assistant-preview.step-1 {
    transform: scale(0.95);
    opacity: 0.85;
}

.assistant-preview.step-2 {
    transform: scale(0.97);
    opacity: 0.9;
}

.assistant-preview.step-3 {
    transform: scale(1);
    opacity: 1;
}

.assistant-preview.step-1:hover,
.assistant-preview.step-2:hover,
.assistant-preview.step-3:hover {
    opacity: 1;
    transform: scale(1);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.preview-dots span:first-child { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:last-child { background: #28ca42; }

.preview-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.preview-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Preview Form Fields */
.preview-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.preview-field label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.preview-input {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.preview-input.textarea {
    min-height: 60px;
    line-height: 1.4;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.preview-input.small {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
}

.preview-btn {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: default;
}

.preview-btn.secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px dashed var(--border);
}

/* Command Row */
.command-row {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.85rem;
    background: var(--bg-elevated);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.command-part {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.command-label {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.chat-bubble {
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-size: 0.75rem;
    line-height: 1.45;
    max-width: 90%;
}

.step-3 .preview-content {
    gap: 0.5rem;
}

.chat-bubble.user {
    background: var(--accent);
    color: var(--bg-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-bubble.assistant {
    background: var(--bg-elevated);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.typing-indicator {
    display: none;
}

.chat-bubble.assistant .response {
    animation: typeIn 0.5s ease-out 1.5s both;
}

@keyframes typeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-glow);
    top: 100px;
    right: -80px;
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(100, 100, 255, 0.2);
    bottom: 100px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* ==================== */
/* Modal Styles         */
/* ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 100px var(--accent-subtle);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.modal-content {
    padding: 3rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.modal-icon {
    display: inline-block;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    animation: pulse 3s ease-in-out infinite;
}

.modal-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1rem;
}

.modal-section p em {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

.modal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 2.5rem 0;
}

/* Modal Features */
.modal-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-feature {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.modal-feature:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.modal-feature-icon {
    font-size: 1.75rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 12px;
    flex-shrink: 0;
}

.modal-feature-content h4 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.modal-feature-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Use Cases */
.use-cases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.use-case {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.use-case:hover {
    border-color: rgba(0, 212, 170, 0.3);
    background: var(--accent-subtle);
    color: var(--text-primary);
}

.use-case-icon {
    font-size: 1.1rem;
}

/* Highlight Section */
.highlight-section {
    background: var(--accent-subtle);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.highlight-section h3 {
    color: var(--accent);
}

.highlight-section p {
    color: var(--text-primary);
}

/* Modal CTA */
.modal-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.modal-cta p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-cta-btn:hover {
    background: #00e6b8;
    transform: scale(1.05);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* Modal Scrollbar */
.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 7rem 3rem 3rem;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .subheadline {
        max-width: 600px;
    }

    .features {
        max-width: 400px;
    }

    .signup-form {
        width: 100%;
        max-width: 500px;
    }

    .hero-visual {
        order: 1;
    }

    .preview-flow {
        gap: 0.4rem;
    }

    .assistant-preview {
        max-width: 320px;
    }

    .success-message {
        margin: 0 auto;
    }

    .modal-content {
        padding: 2rem;
    }

    .use-cases {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 6rem 1.5rem 2rem;
    }

    .headline {
        font-size: 1.5rem;
    }

    .subheadline {
        font-size: 1rem;
    }

    .input-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .input-wrapper input {
        text-align: center;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .feature {
        padding: 0.9rem 1rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .assistant-preview {
        max-width: 300px;
    }

    .assistant-preview.step-1,
    .assistant-preview.step-2,
    .assistant-preview.step-3 {
        transform: scale(1);
        opacity: 1;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .modal {
        max-height: 90vh;
        border-radius: 20px;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-feature {
        flex-direction: column;
        text-align: center;
    }

    .modal-feature-icon {
        margin: 0 auto;
    }
}