/* * OMADA COMPATIBLE CSS 
 * Zero external dependencies. System fonts only.
 */
:root {
    --neon-green: #90FF00; /* Matching the button in the image */
    --glow-green: #39FF14;
    --dark-bg: #050a00;
    --box-bg: rgba(0, 20, 0, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    min-height: 100vh;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Recreating the comic halftone dot background and radial glow */
.background-fx {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(57, 255, 20, 0.2) 0%, var(--dark-bg) 80%);
    z-index: 0;
}

/* Moving Background Orbs */
.orbs {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(144,255,0,0.8) 0%, rgba(57,255,20,0) 70%);
    filter: blur(20px);
    opacity: 0.8;
    animation: bounceOrb ease-in-out infinite alternate;
}

.orb-1 { width: 120px; height: 120px; top: 10%; left: 10%; animation-duration: 4s; animation-delay: 0s; }
.orb-2 { width: 150px; height: 150px; bottom: 20%; right: 10%; animation-duration: 5s; animation-delay: -2s; }
.orb-3 { width: 90px; height: 90px; top: 40%; left: 60%; animation-duration: 3.5s; animation-delay: -1s; }

@keyframes bounceOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.1); }
    100% { transform: translate(-20px, 50px) scale(0.9); }
}

.halftone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#112200 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.6;
    z-index: 2;
}

/* Main container border matching the white/green inset from the image */
.portal-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    height: auto;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    margin: auto 0; /* Centers vertically if space allows */
}

@media (max-width: 768px) {
    .portal-container {
        max-width: 400px;
        border: 3px solid #ffffff;
        border-radius: 10px;
        box-shadow: 0 0 20px var(--glow-green), inset 0 0 20px var(--glow-green);
        background: radial-gradient(circle at top, rgba(144, 255, 0, 0.2), transparent 60%);
        padding: 30px 20px;
    }
}

/* Logo layout */
.logo-container {
    margin-bottom: 15px;
    text-align: center;
    flex-shrink: 0; /* Prevents the browser from squishing the logo */
}

.logo-image {
    max-width: 380px;
    width: 100%;
    height: auto;
    margin-bottom: 5px;
    /* Double layered drop shadow perfectly hugs the transparent edges of the PNG */
    filter: drop-shadow(0 0 15px rgba(144, 255, 0, 1)) drop-shadow(0 0 35px rgba(57, 255, 20, 0.9));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-btn {
    0% { box-shadow: 0 0 15px rgba(144, 255, 0, 0.5); transform: scale(1.02); }
    50% { box-shadow: 0 0 35px rgba(144, 255, 0, 1), 0 0 10px #ffffff; transform: scale(1.06); }
    100% { box-shadow: 0 0 15px rgba(144, 255, 0, 0.5); transform: scale(1.02); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

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

/* Glowing text effect from the "COMING SOON" text */
.glow-headline {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--glow-green), 0 0 40px var(--glow-green);
    margin-bottom: 30px;
    line-height: 1.1;
}

.sub-text {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e0e0e0;
    flex-shrink: 0;
}

/* Terms wrapper for chasing glow effect */
.terms-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    min-height: 120px; /* Anti-squish limit */
    flex-shrink: 0; /* Prevents the browser from crushing the box */
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 2px; /* Thickness of the chasing border */
    box-shadow: 0 0 15px rgba(144, 255, 0, 0.2);
}

.terms-wrapper::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 70%, var(--neon-green) 100%);
    animation: rotate-border 3s linear infinite;
    z-index: 1;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Terms and conditions scroll box */
.terms-box {
    position: relative;
    z-index: 2;
    background-color: rgba(5, 10, 0, 0.95);
    border-radius: 6px;
    padding: 15px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #dddddd;
    box-shadow: inset 0 0 10px rgba(0,0,0,1);
}

/* Social Wrapper - Now Transparent */
.social-wrapper {
    position: relative;
    width: 90%;
    max-width: 450px;
    margin-bottom: 30px;
    opacity: 0;
    pointer-events: none;
}

.social-wrapper.hidden {
    display: none;
}

.social-wrapper.revealed {
    opacity: 1;
    pointer-events: auto;
}

/* Staggered Reveal Animation for Buttons */
.social-wrapper.revealed .social-link {
    animation: fadeUpStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.social-wrapper.revealed .social-link:nth-child(1) { animation-delay: 0.1s; }
.social-wrapper.revealed .social-link:nth-child(2) { animation-delay: 0.25s; }
.social-wrapper.revealed .social-link:nth-child(3) { animation-delay: 0.4s; }
.social-wrapper.revealed .social-link:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeUpStagger {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.social-box {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Minimalist transparent border */
    border-radius: 50px;
    padding: 15px 20px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0; /* Hidden before fadeUpStagger */
}

/* Unique glowing subtle border effect using pseudo-element to avoid animation conflicts */
.social-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    box-shadow: inset 0 0 10px rgba(57, 255, 20, 0.0), 0 0 10px rgba(57, 255, 20, 0.0);
    transition: box-shadow 0.4s ease;
    pointer-events: none;
    animation: subtle-glow-pulse 4s infinite alternate;
}

/* Stagger the pulsing of the borders so they breathe independently */
.social-link.link-x::before { animation-delay: 0s; }
.social-link.link-fb::before { animation-delay: -1s; }
.social-link.link-ig::before { animation-delay: -2s; }
.social-link.link-tt::before { animation-delay: -3s; }

@keyframes subtle-glow-pulse {
    0% { box-shadow: inset 0 0 2px rgba(57, 255, 20, 0.05), 0 0 5px rgba(57, 255, 20, 0.05); }
    100% { box-shadow: inset 0 0 8px rgba(57, 255, 20, 0.2), 0 0 15px rgba(57, 255, 20, 0.15); }
}

.social-link i {
    font-size: 2rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: rgba(57, 255, 20, 0.08);
    border-color: rgba(57, 255, 20, 0.5);
    color: var(--glow-green);
}

.social-link:hover i {
    animation: icon-glitch 0.2s infinite alternate;
}

@keyframes icon-glitch {
    0% { transform: translate(0, 0) scale(1); text-shadow: 3px 0 0 #ff00ff, -3px 0 0 #00ffff; }
    50% { transform: translate(-3px, 2px) scale(1.1); text-shadow: -3px 0 0 #ff00ff, 3px 0 0 #00ffff; }
    100% { transform: translate(3px, -2px) scale(1); text-shadow: 3px 0 0 #ff00ff, -3px 0 0 #00ffff; }
}

/* Brand Colors */
.icon-x { color: #ffffff; }
.icon-fb { color: #1877F2; }
.icon-ig { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.icon-tt { 
    color: #ffffff; 
    text-shadow: 2px 2px 0 #fe0979, -2px -2px 0 #00f2fe; 
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    width: 100%;
    cursor: pointer;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    background-color: rgba(0,0,0,0.5);
    border: 2px solid var(--neon-green);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-container input:checked + .checkmark {
    background-color: var(--neon-green);
}

.checkbox-container input:checked + .checkmark::after {
    content: "✓";
    color: #000;
    font-size: 16px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 0.85rem;
    font-weight: 600;
}

/* The Pill Button from the image */
.connect-btn {
    background-color: var(--neon-green);
    color: #000000;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(144, 255, 0, 0.4);
    opacity: 0.5; /* Disabled state initially */
    pointer-events: none;
}

.connect-btn.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(144, 255, 0, 0.6);
    animation: pulse-btn 1.5s infinite;
}

.connect-btn.active:active {
    transform: scale(0.98);
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

/* Responsive adjustments for very small phones (e.g. iPhone SE) */
@media (max-height: 680px) {
    .portal-container { padding: 20px 15px; }
    .logo-image { max-width: 220px; }
    .glow-headline { font-size: 1.8rem; margin-bottom: 15px; }
    .terms-wrapper { height: 110px; min-height: 110px; margin-bottom: 15px; }
    .checkbox-container { margin-bottom: 15px; }
    .connect-btn { padding: 12px 25px; font-size: 1.1rem; }
}

/* Custom Scrollbar for terms box and portal container */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: var(--neon-green); 
    border-radius: 4px;
}
