/* =============================================
   ALCHEMY FORUM - Coming Soon Page
   ============================================= */

:root {
    /* Dark, moody palette with gold accent */
    --bg-primary: #0a0a0c;
    --bg-secondary: #111114;
    --bg-tertiary: #18181c;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    --accent: #d4af37;
    --accent-dim: rgba(212, 175, 55, 0.15);
    --accent-glow: rgba(212, 175, 55, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --success: #34c759;
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* =============================================
   BACKGROUND EFFECTS
   ============================================= */

.circuit-bg {
    position: fixed;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    z-index: 0;
    opacity: 0.6;
    transition: transform 0.3s ease-out;
}

.circuit-pattern {
    width: 100%;
    height: 100%;
}

.trace {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
    opacity: 0.2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: trace-draw 8s ease-in-out infinite;
}

.trace-1 { animation-delay: 0s; }
.trace-2 { animation-delay: 2s; }
.trace-3 { animation-delay: 4s; }

@keyframes trace-draw {
    0%, 100% { stroke-dashoffset: 1000; opacity: 0.1; }
    50% { stroke-dashoffset: 0; opacity: 0.3; }
}

.node {
    fill: var(--accent);
    opacity: 0.4;
    animation: pulse 3s ease-in-out infinite;
}

.node:nth-child(odd) { animation-delay: 0.5s; }
.node:nth-child(even) { animation-delay: 1.5s; }

@keyframes pulse {
    0%, 100% { opacity: 0.2; r: 3; }
    50% { opacity: 0.6; r: 5; }
}

/* Waveform at bottom */
.waveform-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.waveform {
    width: 100%;
    height: 100%;
}

.wave {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1;
}

.wave-1 {
    animation: wave-move 4s linear infinite;
}

.wave-2 {
    opacity: 0.5;
    animation: wave-move 6s linear infinite reverse;
}

@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
}

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

.logo-img {
    height: 42px;
    width: auto;
    /* Make black logo white, then tint it gold */
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.nav-logo:hover .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}

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

.logo-accent {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.05em;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
    background: var(--accent-dim);
}

/* =============================================
   MAIN CONTENT
   ============================================= */

.main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 3rem;
    min-height: calc(100vh - 180px);
    align-items: center;
}

/* Hero Section */
.hero {
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    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; }
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-accent {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 480px;
}

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

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    font-size: 1.2rem;
    color: var(--accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 8px;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.cta-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.signup-form {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
}

.email-input {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

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

.email-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

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

.submit-btn:hover svg {
    transform: translateX(3px);
}

.privacy-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.success-message {
    font-size: 1rem;
    color: var(--accent);
    padding: 1rem 1.5rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

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

/* =============================================
   VISUAL SECTION (Schematic Preview)
   ============================================= */

.visual-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.schematic-preview {
    width: 100%;
    max-width: 450px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 100px var(--accent-dim);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

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

.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #febc2e; }
.preview-dot:nth-child(3) { background: #28c840; }

.preview-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
    letter-spacing: 0.05em;
}

.preview-content {
    padding: 2rem;
    background: 
        radial-gradient(circle at 20% 80%, var(--accent-dim) 0%, transparent 50%),
        var(--bg-secondary);
}

.schematic-svg {
    width: 100%;
    height: auto;
    color: var(--accent);
}

.schematic-svg .label {
    font-family: var(--font-mono);
    font-size: 14px;
    fill: var(--text-secondary);
}

.schematic-svg .label.out {
    font-size: 8px;
    fill: var(--accent);
}

.schematic-svg .component-label {
    font-family: var(--font-mono);
    font-size: 10px;
    fill: var(--text-muted);
}

.schematic-svg .component {
    animation: component-draw 3s ease-in-out infinite;
}

.schematic-svg .op-amp { animation-delay: 0s; }
.schematic-svg .resistor { animation-delay: 0.3s; }
.schematic-svg .capacitor { animation-delay: 0.6s; }
.schematic-svg .feedback { animation-delay: 0.9s; }
.schematic-svg .output { animation-delay: 1.2s; }

@keyframes component-draw {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 3rem;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(20px);
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
}

.footer .copyright {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1024px) {
    .main {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
    }
    
    .hero {
        max-width: 100%;
        text-align: center;
    }
    
    .description {
        max-width: 100%;
    }
    
    .features {
        align-items: center;
    }
    
    .feature {
        max-width: 400px;
    }
    
    .signup-form {
        max-width: 100%;
        justify-content: center;
    }
    
    .visual-section {
        order: -1;
    }
    
    .schematic-preview {
        max-width: 380px;
    }
}

@media (max-width: 600px) {
    .nav {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .main {
        padding: 2rem 1.5rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .signup-form {
        flex-direction: column;
    }
    
    .submit-btn {
        justify-content: center;
    }
    
    .feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .schematic-preview {
        max-width: 100%;
    }
}

/* =============================================
   SELECTION & SCROLLBAR
   ============================================= */

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dim);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

