/* OverViz - Main Stylesheet */

:root {
    --bg-dark: #08080c;
    --bg-card: #0f0f14;
    --bg-elevated: #16161e;
    --bg-hover: #1c1c26;
    
    --accent-lime: #c8ff00;
    --accent-lime-dim: rgba(200, 255, 0, 0.15);
    --accent-coral: #ff6b6b;
    --accent-sky: #00d4ff;
    --accent-violet: #a855f7;
    
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === NAVIGATION === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(8, 8, 12, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

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

.logo-mark {
    width: 44px;
    height: 44px;
    background: var(--accent-lime);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--bg-dark);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
    transform: rotate(0deg) scale(1.05);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-lime);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.btn-primary {
    background: var(--accent-lime);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(200, 255, 0, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--accent-lime);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 255, 0, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(168, 85, 247, 0.06), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(0, 212, 255, 0.05), transparent);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 20%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

.hero-badge span {
    color: var(--accent-lime);
    font-weight: 600;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 800px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-sky) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* === DEMO PREVIEW IN HERO === */
.demo-preview {
    margin-top: 4rem;
    width: 100%;
    max-width: 1100px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.demo-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.demo-dots {
    display: flex;
    gap: 8px;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-dots span:nth-child(1) { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #ffbd2e; }
.demo-dots span:nth-child(3) { background: #28c840; }

.demo-title {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.demo-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 350px;
}

@media (max-width: 800px) {
    .demo-body {
        grid-template-columns: 1fr;
    }
}

.demo-input-side {
    padding: 2rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 800px) {
    .demo-input-side {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

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

.demo-input-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.demo-input-box .highlight-text {
    color: var(--accent-sky);
}

.demo-input-box .highlight-component {
    color: var(--accent-violet);
}

.demo-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-size: 2rem;
    color: var(--accent-lime);
    animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

.demo-output-side {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
}

.demo-output-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-lime);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.demo-diagram-placeholder {
    width: 100%;
    height: 220px;
    background: var(--bg-dark);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.demo-diagram-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.demo-diagram-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === HOW IT WORKS - DETAILED === */
.how-section {
    padding: 8rem 2rem;
    background: var(--bg-card);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-lime);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Step by step with visual cards */
.steps-detailed {
    max-width: 1200px;
    margin: 0 auto;
}

.step-row {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

.step-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .step-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.step-visual {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-visual-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.step-visual-content {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .step-connector {
        flex-direction: row;
        transform: rotate(90deg);
    }
}

.step-number-badge {
    width: 48px;
    height: 48px;
    background: var(--accent-lime);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.step-info {
    padding: 1rem;
}

.step-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.step-tips {
    background: var(--accent-lime-dim);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.step-tips-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-lime);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.step-tips ul {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-tips li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.step-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-lime);
}

/* === TRY IT SECTION === */
.try-section {
    padding: 8rem 2rem;
    position: relative;
}

.try-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(200, 255, 0, 0.06), transparent);
    pointer-events: none;
}

.try-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.try-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
}

.try-box h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.try-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.try-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.try-example-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.try-example-card:hover {
    border-color: var(--accent-lime);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(200, 255, 0, 0.1);
}

.try-example-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.try-example-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.try-example-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === FEATURES SECTION === */
.features {
    padding: 8rem 2rem;
    background: var(--bg-card);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-lime), var(--accent-sky));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-lime-dim);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === STYLES SHOWCASE === */
.styles-showcase {
    padding: 8rem 2rem;
}

.styles-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .styles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.style-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.style-card:hover {
    border-color: var(--accent-lime);
    transform: scale(1.02);
}

.style-preview {
    height: 120px;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.style-preview.neurips { background: linear-gradient(135deg, #f8f8fc 0%, #e8e8f0 100%); }
.style-preview.deepmind { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.style-preview.blueprint { background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 100%); }
.style-preview.dark { background: linear-gradient(135deg, #0a0a0f 0%, #1a1a26 100%); }

.style-card h4 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

/* === FAQ SECTION === */
.faq-section {
    padding: 8rem 2rem;
    background: var(--bg-card);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--accent-lime);
}

.faq-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === CTA SECTION === */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(200, 255, 0, 0.08), transparent);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* === FOOTER === */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}

.footer-logo .logo-text {
    font-size: 1.2rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === APP SECTION === */
.app-section {
    display: none;
    padding: 2rem;
    min-height: 100vh;
}

.app-section.visible {
    display: block;
}

.landing-page.hidden {
    display: none;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-to-home:hover {
    color: var(--accent-lime);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.usage-badge {
    padding: 0.4rem 0.8rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.usage-badge.warning {
    border-color: rgba(255, 107, 107, 0.5);
    color: var(--accent-coral);
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
}

/* App Input Cards */
.input-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .input-section {
        grid-template-columns: 1fr;
    }
}

.input-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.3s ease;
}

.input-card:hover {
    border-color: var(--border-hover);
}

.input-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-lime-dim);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.input-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
}

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

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

/* Results Section */
.results-section {
    display: none;
}

.results-section.visible {
    display: block;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
}

.style-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.style-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-btn.active {
    background: var(--accent-lime);
    color: var(--bg-dark);
    border-color: var(--accent-lime);
}

.style-btn:hover:not(.active) {
    border-color: var(--accent-lime);
    color: var(--text-primary);
}

.architecture-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.arch-summary {
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.arch-summary h3 {
    font-family: var(--font-display);
    color: var(--accent-lime);
    margin-bottom: 0.5rem;
}

.arch-summary p {
    color: var(--text-secondary);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.component-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.component-card:hover {
    border-color: var(--accent-violet);
    transform: translateY(-2px);
}

.component-type {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-violet);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.component-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.component-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.diagram-container {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.diagram-container img {
    max-width: 100%;
    max-height: 600px;
    border-radius: var(--radius-md);
}

.diagram-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.diagram-placeholder svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-generate {
    background: var(--accent-lime);
    color: var(--bg-dark);
}

.btn-download {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-coral));
    color: white;
}

/* Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--accent-coral);
}

.message-success {
    background: rgba(200, 255, 0, 0.1);
    border: 1px solid rgba(200, 255, 0, 0.3);
    color: var(--accent-lime);
}

.message-warning {
    background: rgba(255, 189, 46, 0.1);
    border: 1px solid rgba(255, 189, 46, 0.3);
    color: #ffbd2e;
}

/* Auth Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--bg-elevated);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

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

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

.modal-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--accent-lime);
    cursor: pointer;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions .btn-ghost {
        display: none;
    }

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

    .demo-body {
        grid-template-columns: 1fr;
    }

    .demo-arrow {
        transform: rotate(90deg);
    }

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

    .try-examples {
        grid-template-columns: 1fr;
    }
}

