/* 
   Poosta Coming Soon Stylesheet
   Theme: Midnight High-Tech AI & Social Network Automation
*/

:root {
    /* Color Palette */
    --bg-dark: #060713;
    --bg-card: rgba(13, 17, 39, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(147, 51, 234, 0.3);
    
    --text-primary: #f7fafc;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --primary-purple: #9333ea;
    --primary-cyan: #06b6d4;
    --primary-violet: #6366f1;
    --error-red: #ef4444;
    --success-green: #10b981;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & General Configurations */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Canvas background styles */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 30%, #0d1330 0%, var(--bg-dark) 70%);
}

/* Main Container */
#app-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
#app-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3.5rem;
}

#logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

#brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

#brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #fff 0%, #cbd5e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main Layout & Hero */
#main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

#hero-section {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glowing Badge */
#launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid var(--border-glow);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.15);
    animation: pulseGlow 3s infinite alternate;
}

#badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-cyan);
    display: inline-block;
    animation: blink 1.5s infinite;
}

#badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e9d5ff;
}

/* Headings & Text */
#main-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 50%, var(--primary-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

#sub-heading {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Subscription Form Card */
#subscription-card {
    width: 100%;
    max-width: 580px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

#subscription-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 60%);
    pointer-events: none;
}

#subscription-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#subscription-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Input group styling */
.input-group {
    display: flex;
    gap: 0.75rem;
    position: relative;
    width: 100%;
}

#email-input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    padding: 1.1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

#email-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

#subscribe-button {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-violet) 100%);
    border: none;
    padding: 1.1rem 1.8rem;
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.3);
}

#subscribe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.5);
    background: linear-gradient(135deg, #a855f7 0%, #4f46e5 100%);
}

#subscribe-button:active {
    transform: translateY(1px);
}

.arrow-icon {
    transition: var(--transition-smooth);
}

#subscribe-button:hover .arrow-icon {
    transform: translateX(4px);
}

.error-text {
    color: var(--error-red);
    font-size: 0.85rem;
    text-align: left;
    margin-top: 0.5rem;
    min-height: 1.25rem;
    font-weight: 400;
}

/* Success State Styles */
.hidden {
    display: none !important;
}

#success-message {
    padding: 1rem 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

#success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

#success-message p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

.success-icon-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--success-green);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: var(--success-green);
    fill: none;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Features Grid */
#features-section {
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.feature-card {
    padding: 2.25rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-radius: 20px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.purple-glow svg { color: var(--primary-purple); filter: drop-shadow(0 0 5px rgba(147, 51, 234, 0.4)); }
.cyan-glow svg { color: var(--primary-cyan); filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.4)); }
.violet-glow svg { color: var(--primary-violet); filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.4)); }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

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

/* Contact/Support Widget */
#contact-section {
    width: 100%;
    max-width: 580px;
    padding: 1.5rem 2rem;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.contact-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

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

.email-badge-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    border-radius: 10px;
}

.email-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.email-link:hover {
    color: white;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

#copy-email-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 7px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

#copy-email-button:hover {
    background: var(--primary-violet);
    border-color: var(--primary-violet);
    color: white;
}

.copy-icon {
    flex-shrink: 0;
}

/* Footer Styling */
#app-footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

#app-footer p {
    margin-bottom: 0.5rem;
}

.footer-team {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(147, 51, 234, 0.1); }
    100% { box-shadow: 0 0 25px rgba(147, 51, 234, 0.3); border-color: rgba(147, 51, 234, 0.5); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* Media Queries */
@media (max-width: 640px) {
    #app-container {
        padding: 1.5rem 1rem;
    }
    
    #main-content {
        gap: 3rem;
    }
    
    #subscription-card {
        padding: 1.75rem 1.25rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #email-input, #subscribe-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .contact-details {
        flex-direction: column;
        text-align: center;
    }
    
    .email-badge-container {
        width: 100%;
        justify-content: space-between;
    }
}
