/* =====================================================
   Atak Intelligence — Coming Soon
   ===================================================== */

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

:root {
    --bg: #000000;
    --fg: #ffffff;
    --fg-muted: rgba(255, 255, 255, 0.65);
    --fg-dim: rgba(255, 255, 255, 0.35);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.28);
    --accent: #6ee7ff;
    --pulse: #4ade80;
    --shadow: 0 0 60px rgba(110, 231, 255, 0.08);
}

html,
body {
    height: 100%;
    background: var(--bg);
    color: var(--fg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------- Canvas (particles) ---------- */
#particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(20, 30, 50, 0.35) 0%, rgba(0, 0, 0, 0.85) 60%, #000 100%);
    display: block;
}

/* Subtle vignette overlay */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- Language switcher ---------- */
.lang-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 20;
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.lang-switcher a {
    color: var(--fg-dim);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 100px;
    transition: color 0.3s ease, background 0.3s ease;
}

.lang-switcher a:hover {
    color: var(--fg);
}

.lang-switcher a.active {
    color: var(--bg);
    background: var(--fg);
}

.lang-switcher .divider {
    width: 1px;
    height: 14px;
    background: var(--border);
}

/* ---------- Main content ---------- */
.container {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 80px;
    text-align: center;
    pointer-events: none;
}

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

/* ---------- Logo ---------- */
.logo-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 28px; /* overridden by JS to clear particle text */
    animation: fadeInUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.logo-glow {
    position: absolute;
    inset: -25%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 231, 255, 0.18) 0%, transparent 65%);
    filter: blur(12px);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

.logo {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.6),
        var(--shadow);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover {
    transform: scale(1.04) rotate(-2deg);
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}

/* ---------- Brand title ---------- */
/* ---------- Cursor (used in tagline typewriter) ---------- */
.cursor {
    color: var(--fg-muted);
    margin-left: 1px;
    font-weight: 300;
    animation: blink 1.1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ---------- Screen-reader only (SEO h1) ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.tagline {
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    font-weight: 300;
    color: var(--fg-muted);
    letter-spacing: clamp(1px, 0.3vw, 2.5px);
    margin-bottom: 28px;
    max-width: 640px;
    animation: fadeInUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* ---------- Coming soon badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeInUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.dot {
    width: 7px;
    height: 7px;
    background: var(--pulse);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--pulse);
    animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.7); }
}

/* ---------- Description ---------- */
.description {
    max-width: 580px;
    color: var(--fg-muted);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 32px;
    animation: fadeInUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

/* ---------- Contact ---------- */
.contact-row {
    animation: fadeInUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.0s both;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    color: var(--fg);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                background 0.35s ease,
                box-shadow 0.35s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    border-color: var(--fg);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(110, 231, 255, 0.15);
}

.contact-link svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contact-link:hover svg {
    opacity: 1;
}

/* ---------- Footer ---------- */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 16px;
    text-align: center;
    color: var(--fg-dim);
    font-size: 11px;
    letter-spacing: 1px;
    pointer-events: none;
    animation: fadeIn 1.5s ease 1.5s both;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .lang-switcher {
        top: 16px;
        right: 16px;
        font-size: 11px;
    }

    .logo-wrapper {
        width: 100px;
        height: 100px;
        /* margin-bottom overridden by JS */
    }

    .tagline     { margin-bottom: 22px; }
    .badge       { margin-bottom: 18px; }
    .description { margin-bottom: 24px; }
    .container   { padding: 70px 20px 70px; }
}

@media (max-width: 380px) {
    .logo-wrapper {
        width: 84px;
        height: 84px;
    }
    .badge {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 7px 14px;
    }
    .contact-link span {
        font-size: 0.82rem;
    }
}

@media (max-height: 640px) {
    .container    { padding: 50px 24px 50px; }
    .logo-wrapper { width: 72px; height: 72px; }
    .tagline      { margin-bottom: 18px; }
    .badge        { margin-bottom: 14px; }
    .description  { margin-bottom: 18px; line-height: 1.5; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
