/* ==========================================================================
   DRISHTI SWARM - EXECUTIVE MONOCHROME BLACK & WHITE DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Pitch Black & Crisp White Monochrome Palette */
    --bg-dark: #000000;
    --bg-card: rgba(10, 10, 12, 0.82);
    --bg-card-hover: rgba(22, 22, 26, 0.92);
    --mono-white: #ffffff;
    --mono-silver: #e4e4e7;
    --mono-gray: #a1a1aa;
    --mono-dark-gray: #27272a;
    
    /* Glassmorphism Specs */
    --glass-border: 1px solid rgba(255, 255, 255, 0.16);
    --glass-border-hover: 1px solid rgba(255, 255, 255, 0.7);
    --glass-blur: blur(24px) saturate(190%);
    --glass-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    --neon-glow: 0 0 25px rgba(255, 255, 255, 0.35);
    
    /* Mouse spotlight position */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Reset & Box Sizing */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    color: var(--mono-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Canvas Background */
#swarm-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto;
}

/* Mouse Spotlight Glow */
#mouse-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        650px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.08),
        transparent 80%
    );
    transition: background 0.05s ease;
}

/* App Container Layout */
.app-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    pointer-events: none;
}

.app-container > * {
    pointer-events: auto;
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent
    );
    transition: 0.8s ease;
}

.glass-panel:hover::before {
    left: 100%;
}

/* Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2.5px;
    color: #ffffff;
}

.logo-text span {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mono-white);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 2.5rem 0;
}

.hero-card {
    width: 100%;
    max-width: 900px;
    padding: 3.5rem 2.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
}

.main-glow::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12), transparent 70%);
    pointer-events: none;
}

.hud-top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--mono-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0.8rem;
}

.hud-tag {
    color: #ffffff;
    font-weight: 700;
}

/* Brand Typography */
.brand-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 900;
    letter-spacing: 5px;
    line-height: 1.1;
    color: #ffffff;
    text-transform: uppercase;
}

.brand-title span {
    background: linear-gradient(135deg, #ffffff, #e4e4e7, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.brand-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    letter-spacing: 4.5px;
    color: #ffffff;
    opacity: 0.95;
}

.hero-description {
    max-width: 720px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--mono-gray);
}

/* Executive Launch Status Badge */
.launching-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #ffffff;
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff;
}

/* Real-Time Telemetry Metrics Dashboard (Replaces Timer) */
.telemetry-dashboard {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 10, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 1.2rem 2.2rem;
    width: 100%;
    max-width: 680px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.telemetry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.telemetry-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.telemetry-val span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mono-gray);
    margin-left: 2px;
}

.telemetry-lbl {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--mono-gray);
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.telemetry-divider {
    width: 1px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 1.2rem;
}

/* Waitlist Form */
.waitlist-form {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(12, 12, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.4rem 0.5rem 0.4rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.input-wrapper:focus-within {
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.45);
}

.input-icon {
    color: #ffffff;
    font-size: 1.1rem;
    margin-right: 0.9rem;
}

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
}

.input-wrapper input::placeholder {
    color: var(--mono-gray);
}

.glass-btn.primary-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 40px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.glass-btn.primary-btn:hover {
    transform: scale(1.03);
    background: #e4e4e7;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.form-toast {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    padding: 0.7rem 1.2rem;
    border-radius: 14px;
}

.form-toast.success {
    display: block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.form-toast.error {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f4f4f5;
}

/* Swarm Control HUD */
.swarm-hud-control {
    width: 100%;
    background: rgba(10, 10, 12, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 1.4rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 2px;
    color: #ffffff;
}

.mode-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.85rem;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    color: var(--mono-gray);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.mode-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.45);
}

/* Executive Capabilities Grid Section */
.capabilities-section {
    margin: 2rem 0 3rem 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.capability-card {
    padding: 2rem 1.8rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cap-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
}

.capability-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.capability-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--mono-gray);
}

/* Profiles Section Grid */
.profiles-section {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 1.8rem;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 1.5rem;
    text-decoration: none;
    color: var(--mono-white);
    border-radius: 18px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.25), inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.profile-card:hover .card-icon {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px #ffffff;
}

.card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.card-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--mono-gray);
}

.card-val {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-arrow {
    color: var(--mono-gray);
    font-size: 0.9rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.profile-card:hover .card-arrow {
    transform: translate(3px, -3px);
    color: #ffffff;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 1.8rem 0;
    font-size: 0.85rem;
    color: var(--mono-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .app-container {
        padding: 1rem 4%;
    }

    .hero-card {
        padding: 2rem 1.2rem;
    }

    .telemetry-dashboard {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }

    .telemetry-divider {
        width: 60%;
        height: 1px;
        margin: 0.2rem 0;
    }

    .input-wrapper {
        flex-direction: column;
        border-radius: 24px;
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .input-wrapper input {
        text-align: center;
    }

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

    .profiles-grid {
        grid-template-columns: 1fr;
    }
}
