/* -------------------------------------------------------------
 * Sanid (ساند) Premium Landing Page Stylesheet
 * Brand Accent Colors:
 * - Neon Cyan: #00F2FE
 * - Cyber Purple: #4FACFE
 * - Neon Lime Green: #39FF14 / #22C55E
 * - Dark BG Gradient: #0B0F19 to #111827
 * ------------------------------------------------------------- */

/* Reset & Base Rules */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0B0F19;
    color: #F3F4F6;
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Animated Glows */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    mix-blend-mode: screen;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #00F2FE 0%, rgba(0, 242, 254, 0) 70%);
    animation: float-orb-1 25s infinite ease-in-out alternate;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, #4FACFE 0%, rgba(79, 172, 254, 0) 70%);
    animation: float-orb-2 30s infinite ease-in-out alternate;
}

.orb-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.4) 0%, rgba(34, 197, 94, 0) 70%);
    animation: float-orb-3 20s infinite ease-in-out alternate;
}

@keyframes float-orb-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}

@keyframes float-orb-2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-15%, -10%) scale(0.9); }
}

@keyframes float-orb-3 {
    0% { transform: translate(0, 0) scale(0.85); opacity: 0.1; }
    100% { transform: translate(-5%, 10%) scale(1.05); opacity: 0.2; }
}

/* App Layout Container */
.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    z-index: 1;
}

/* Header & Mascot Component */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.brand-wrapper:hover {
    transform: scale(1.02);
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    direction: ltr; /* Keeps logo icon on left and text on right, matching the image */
}

.brand-logo-img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.brand-wrapper:hover .brand-logo-img {
    transform: scale(1.04) rotate(1deg);
}

.brand-logo-separator {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
    user-select: none;
}

.brand-logo-arabic {
    font-family: 'Cairo', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #9CA3AF;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.mascot-container {
    width: 100px;
    height: 125px; /* Aspect ratio 4:5 of 400x500 */
    filter: drop-shadow(0 4px 20px rgba(110, 231, 212, 0.25)) drop-shadow(0 0 10px rgba(157, 110, 255, 0.15));
    transition: transform 0.2s ease-out;
}

.jellyfish-svg {
    width: 100%;
    height: 100%;
}

/* Main Content Area */
.main-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    flex-grow: 1;
    margin-bottom: 40px;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    padding-left: 20px;
}

/* Social Proof Badge */
.badge-container {
    margin-bottom: 24px;
}

.social-proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #E5E7EB;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 242, 254, 0.05);
    transition: all 0.3s ease;
}

.social-proof-badge:hover {
    border-color: #00F2FE;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.15);
    transform: translateY(-2px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #10B981;
    border-radius: 50%;
    animation: beacon-pulse 2s infinite ease-out;
}

@keyframes beacon-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Hero Heading */
.hero-heading {
    font-family: 'Cairo', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.35;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #FFFFFF 40%, #E5E7EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Subheading */
.hero-subheading {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.85;
    color: #9CA3AF;
    margin-bottom: 30px;
    max-width: 680px;
}

/* Scarcity Indicator Badge */
.scarcity-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #F87171;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.scarcity-indicator:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.scarcity-pulse {
    width: 6px;
    height: 6px;
    background-color: #EF4444;
    border-radius: 50%;
    position: relative;
}

.scarcity-pulse::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1.5px solid #EF4444;
    border-radius: 50%;
    animation: scarcity-beacon 1.5s infinite ease-out;
}

@keyframes scarcity-beacon {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

#scarcity-counter {
    color: #EF4444;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.count-bounce {
    animation: counter-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes counter-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Glassmorphism Cards Container */
.form-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.glass-card {
    width: 100%;
    max-width: 480px;
    background: rgba(17, 25, 40, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(0, 242, 254, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-header {
    margin-bottom: 28px;
    text-align: center;
}

.card-header h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.card-header p {
    font-size: 0.95rem;
    color: #9CA3AF;
}

/* Form Styles */
#early-access-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.input-group label {
    font-family: 'Cairo', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #D1D5DB;
    margin-bottom: 8px;
    text-align: right;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 14px 44px 14px 16px; /* 44px on right for icon */
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    appearance: none; /* remove default arrow */
    -webkit-appearance: none;
}

/* Dropdown arrow custom design */
.input-wrapper select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 16px;
}

.input-wrapper input::placeholder {
    color: #6B7280;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: #00F2FE;
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
    background-color: #111827;
    outline: none;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #9CA3AF;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon {
    color: #00F2FE;
}

/* Error States */
.error-msg {
    color: #EF4444;
    font-size: 0.82rem;
    margin-top: 6px;
    display: none;
    text-align: right;
    animation: fadeIn 0.3s ease forwards;
}

.input-wrapper.error input,
.input-wrapper.error select {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input-wrapper.error + .error-msg {
    display: block;
}

/* Shaking animation on validation fail */
.shake {
    animation: shake-anim 0.4s ease-in-out;
}

@keyframes shake-anim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Submit CTA Button */
.submit-btn {
    position: relative;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #39FF14 0%, #22C55E 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: scale(1.025);
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.55), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: scale(0.985);
}

/* Button sweep shine animation */
.shine-effect {
    position: absolute;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.submit-btn:hover .shine-effect {
    left: 150%;
}

/* Success Card Styling */
.success-card {
    text-align: center;
    animation: card-reveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.hidden {
    display: none !important;
}

@keyframes card-reveal {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.success-icon-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px auto;
}

.success-glowing-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    animation: ring-pulse 2s infinite ease-in-out;
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

.success-checkmark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #10B981;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #10B981;
    animation: fill-check .4s ease-in-out .4s forwards, scale-check .3s ease-in-out .9s forwards;
}

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

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke-check .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes stroke-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes stroke-check {
    to { stroke-dashoffset: 0; }
}

@keyframes fill-check {
    to { box-shadow: inset 0px 0px 0px 40px rgba(16, 185, 129, 0.1); }
}

@keyframes scale-check {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

.success-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.success-desc {
    font-size: 1.02rem;
    color: #9CA3AF;
    margin-bottom: 28px;
}

.highlight-text {
    color: #00F2FE;
    font-weight: 700;
}

/* VIP Code Container */
.vip-code-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(0, 242, 254, 0.25);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.vip-code-label {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: #D1D5DB;
    margin-bottom: 12px;
}

.vip-code-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    direction: ltr; /* keep code readable left to right */
}

#vip-secret-code {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 1.25rem;
    color: #00F2FE;
    letter-spacing: 1.5px;
    user-select: all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: #00F2FE;
    color: #00F2FE;
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: #10B981 !important;
    color: #10B981 !important;
}

.vip-warning-text {
    font-size: 0.82rem;
    color: #FBBF24;
    margin-top: 10px;
}

.secondary-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #9CA3AF;
    padding: 10px 24px;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.02);
}

/* Footer Styles */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0 10px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-text {
    font-size: 0.85rem;
    color: #4B5563;
    letter-spacing: 0.5px;
}

/* Fade In Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Grid Adjustments */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-section {
        align-items: center;
        text-align: center;
        padding-left: 0;
    }

    .hero-heading {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 24px 12px;
    }

    .brand-logo-img {
        height: 32px;
    }

    .brand-logo-arabic {
        font-size: 1.4rem;
    }

    .mascot-container {
        width: 64px;
        height: 80px; /* 4:5 aspect ratio */
    }

    .hero-heading {
        font-size: 1.85rem;
    }

    .hero-subheading {
        font-size: 1rem;
    }

    .glass-card {
        padding: 24px 18px;
    }

    .vip-code-box {
        flex-direction: column;
        gap: 12px;
    }

    #vip-secret-code {
        font-size: 1.1rem;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}
