/* Fonts & Reset */
:root {
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Layout */
.main-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.logo-shape {
    width: 24px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    transform: rotate(45deg);
}

.logo-text {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: white;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

/* Hero Section */
.hero-section {
    text-align: center;
}

.badge-new {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #a5b4fc;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-description strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Form */
.subscribe-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.glass-input {
    flex: 1;
    min-width: 0;
    /* Prevents overflow */
    padding: 20px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: white;
    font-size: 18px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.glow-button {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 20px 32px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

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

.glow-button:active {
    transform: translateY(0);
}

.btn-loader {
    display: none;
}

button.loading .btn-text {
    display: none;
}

button.loading .btn-loader {
    display: inline-block;
}

.form-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Stats */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trusted By */
.trusted-by {
    text-align: center;
    width: 100%;
}

.section-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    opacity: 0.7;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.source-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.source-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* Message Styles */
.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: block;
}

.message.error {
    background: rgba(220, 38, 38, 0.1);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.2);
    display: block;
}

/* Success Card UI */
.success-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.success-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .glow-button {
        width: 100%;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }
}