:root {
    --connect-deep: #0b1120;
    --connect-card: linear-gradient(135deg, rgba(91, 33, 182, 0.92), rgba(37, 99, 235, 0.88));
    --connect-overlay: rgba(15, 23, 42, 0.35);
    --connect-border: rgba(148, 163, 184, 0.25);
    --connect-input: rgba(15, 23, 42, 0.55);
    --connect-input-border: rgba(148, 163, 184, 0.2);
    --connect-text: #e2e8f0;
    --connect-muted: rgba(226, 232, 240, 0.7);
    --connect-accent: #4f46e5;
}

.connect-hub {
    position: relative;
    padding: clamp(96px, 12vw, 140px) 0 clamp(100px, 12vw, 150px);
    background: linear-gradient(180deg, rgba(10, 12, 28, 0.9) 0%, rgba(8, 10, 24, 0.98) 100%);
    overflow: hidden;
}

.connect-hub::before,
.connect-hub::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.25), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
}

.connect-hub::after {
    background: radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.18), transparent 60%);
    mix-blend-mode: screen;
}

.connect-shell {
    position: relative;
    padding: clamp(48px, 6vw, 72px);
    border-radius: 36px;
    background: var(--connect-card);
    border: 1px solid var(--connect-border);
    box-shadow: 0 45px 80px -45px rgba(37, 99, 235, 0.65);
    overflow: hidden;
}

.connect-shell::before {
    content: "";
    position: absolute;
    inset: -30% -10% 40% 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0.5;
    pointer-events: none;
}

.connect-header {
    max-width: 760px;
    color: var(--connect-text);
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}

.connect-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.32);
    background: rgba(15, 23, 42, 0.25);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.8);
    margin: 0 auto 1.2rem;
}

.connect-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    letter-spacing: -0.03em;
    margin: 0 0 1rem 0;
}

.connect-header p {
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--connect-muted);
    line-height: 1.8;
}

.connect-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 48px);
}

.connect-grid {
    display: grid;
    gap: clamp(20px, 3vw, 28px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.connect-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    grid-column: 1;
}

.connect-field label,
.connect-message label {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.75);
}

.connect-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    background: var(--connect-input);
    border: 1px solid var(--connect-input-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.connect-input i {
    color: rgba(226, 232, 240, 0.65);
    font-size: 1rem;
}

.connect-input input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: var(--connect-text);
    font-family: 'Poppins', Arial, sans-serif;
}

.connect-input input::placeholder,
.connect-textarea textarea::placeholder {
    color: rgba(226, 232, 240, 0.4);
}

.connect-input:focus-within {
    border-color: rgba(226, 232, 240, 0.5);
    box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.8);
    transform: translateY(-2px);
}

.connect-message {
    grid-column: 2;
    grid-row: 1 / span 4;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.connect-textarea {
    position: relative;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1.1rem 1.2rem 1.5rem;
    min-height: 100%;
    display: flex;
}

.connect-textarea textarea {
    width: 100%;
    min-height: 220px;
    background: transparent;
    border: none;
    resize: none;
    color: var(--connect-text);
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Poppins', Arial, sans-serif;
}

.char-count {
    position: absolute;
    bottom: 1rem;
    right: 1.2rem;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.55);
    letter-spacing: 0.05em;
}

.connect-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.95rem;
}

.connect-footer a {
    color: #bfdbfe;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.3s ease;
}

.connect-footer a:hover {
    border-color: #bfdbfe;
}

.connect-submit {
    padding: 0.9rem 2.6rem;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 20px 40px -20px rgba(37, 99, 235, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.connect-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 45px -18px rgba(37, 99, 235, 0.75);
}

.connect-submit:active {
    transform: translateY(0);
}

.connect-fallback [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.connect-fallback [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .connect-grid {
        grid-template-columns: 1fr;
    }

    .connect-message {
        grid-column: 1;
        grid-row: auto;
    }

    .connect-textarea textarea {
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .connect-shell {
        padding: 40px 28px;
        border-radius: 28px;
    }

    .connect-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .connect-submit {
        width: 100%;
        text-align: center;
    }
}

