/* ═══════════════════════════════════════════
   IOTX.BD — Coming Soon  |  style.css
═══════════════════════════════════════════ */

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

:root {
    --primary: #00d4ff;
    --secondary: #0066ff;
    --accent: #00ff88;
    --bg-dark: #020b18;
    --bg-card: rgba(0, 212, 255, 0.04);
    --border: rgba(0, 212, 255, 0.15);
    --text: #e0f4ff;
    --text-muted: #6b9ab8;
    --glow: 0 0 20px rgba(0, 212, 255, 0.4);
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════
   BACKGROUND LAYERS
═══════════════════════════════════════════ */

/* Moving grid */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    to {
        background-position: 60px 60px;
    }
}

/* Radial glow blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: 0;
    animation: blobPulse 8s ease-in-out infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    right: -150px;
    animation-delay: -4s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes blobPulse {
    from {
        opacity: 0.08;
        transform: scale(1);
    }

    to {
        opacity: 0.18;
        transform: scale(1.15);
    }
}

/* Floating particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Canvas layers */
#networkCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

#matrixCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.07;
}

/* Radar scan */
.radar-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80vw, 600px);
    height: min(80vw, 600px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
}

.radar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--primary);
    animation: radarPulse 4s ease-out infinite;
}

.radar-ring:nth-child(2) {
    animation-delay: 1.3s;
}

.radar-ring:nth-child(3) {
    animation-delay: 2.6s;
}

@keyframes radarPulse {
    0% {
        transform: scale(0.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(0, 212, 255, 0.4) 20deg,
            transparent 20deg);
    animation: radarSweep 3s linear infinite;
}

@keyframes radarSweep {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 0;
}

/* ═══════════════════════════════════════════
   ENTRANCE ANIMATIONS
═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* ═══════════════════════════════════════════
   BRAND / LOGO
═══════════════════════════════════════════ */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.logo-icon {
    width: 90px;
    height: 90px;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
}

.logo-ring {
    animation: spin 8s linear infinite;
    transform-origin: center;
}

.logo-ring-reverse {
    animation: spinReverse 6s linear infinite;
    transform-origin: center;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    to {
        transform: rotate(-360deg);
    }
}

/* Glitch effect */
.brand-name {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.5));
    position: relative;
    animation: glitchIdle 6s ease-in-out infinite;
}

.brand-name::before,
.brand-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.brand-name::before {
    animation: glitchTop 6s ease-in-out infinite;
}

.brand-name::after {
    animation: glitchBot 6s ease-in-out infinite;
}

@keyframes glitchIdle {

    0%,
    90%,
    100% {
        filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.5));
    }

    92% {
        filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.5)) hue-rotate(90deg);
    }

    94% {
        filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.5));
    }

    96% {
        filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.5)) hue-rotate(-90deg);
    }
}

@keyframes glitchTop {

    0%,
    89%,
    100% {
        opacity: 0;
        clip-path: none;
        transform: none;
    }

    90% {
        opacity: 0.7;
        clip-path: inset(0 0 60% 0);
        transform: translate(-3px, 0);
    }

    91% {
        opacity: 0;
    }

    93% {
        opacity: 0.5;
        clip-path: inset(40% 0 20% 0);
        transform: translate(3px, 0);
    }

    94% {
        opacity: 0;
    }
}

@keyframes glitchBot {

    0%,
    89%,
    100% {
        opacity: 0;
        clip-path: none;
        transform: none;
    }

    90% {
        opacity: 0.5;
        clip-path: inset(60% 0 0 0);
        transform: translate(3px, 0);
    }

    91% {
        opacity: 0;
    }

    93% {
        opacity: 0.7;
        clip-path: inset(20% 0 40% 0);
        transform: translate(-3px, 0);
    }

    94% {
        opacity: 0;
    }
}

.brand-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   STATUS BAR
═══════════════════════════════════════════ */
.status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════
   HEADLINE
═══════════════════════════════════════════ */
.headline {
    text-align: center;
    margin-bottom: 20px;
}

.headline h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.headline h1 span {
    color: var(--primary);
}

.headline p {
    margin-top: 16px;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    min-height: 2.4em;
}

/* ═══════════════════════════════════════════
   LIVE DATA TICKER
═══════════════════════════════════════════ */
.data-ticker {
    width: 100%;
    max-width: 860px;
    overflow: hidden;
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.03);
    padding: 8px 0;
    position: relative;
}

.data-ticker::before,
.data-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
}

.data-ticker::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark), transparent);
}

.data-ticker::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-dark), transparent);
}

.ticker-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: tickerScroll 30s linear infinite;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0 24px;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ticker-item {
    white-space: nowrap;
}

.ticker-item .label {
    color: var(--primary);
    margin-right: 6px;
}

.ticker-item .val {
    color: var(--accent);
}

/* ═══════════════════════════════════════════
   COUNTDOWN
═══════════════════════════════════════════ */
.countdown-section {
    margin: 40px 0;
    text-align: center;
}

.countdown-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.countdown {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
}

.countdown-box {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: boxGlow 3s ease-in-out infinite alternate;
}

@keyframes boxGlow {
    from {
        box-shadow: 0 0 0 rgba(0, 212, 255, 0);
        border-color: rgba(0, 212, 255, 0.15);
    }

    to {
        box-shadow: 0 0 18px rgba(0, 212, 255, 0.25);
        border-color: rgba(0, 212, 255, 0.45);
    }
}

.countdown-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
}

.countdown-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.countdown-box .scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    from {
        top: -2px;
    }

    to {
        top: 100%;
    }
}

.countdown-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: var(--glow);
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.countdown-number.flip {
    transform: scale(1.25);
}

.countdown-unit {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   CIRCUIT BOARD SVG STRIP
═══════════════════════════════════════════ */
.circuit-strip {
    width: 100%;
    max-width: 860px;
    margin: 8px 0 32px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 212, 255, 0.02);
}

.circuit-strip svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ═══════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 860px;
    width: 100%;
    margin: 40px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 150%;
}

.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 28px 28px 0;
    border-color: transparent rgba(0, 212, 255, 0.2) transparent transparent;
    transition: border-color 0.3s;
}

.feature-card:hover::after {
    border-color: transparent rgba(0, 212, 255, 0.5) transparent transparent;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(-5deg);
}

.feature-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   NOTIFY FORM
═══════════════════════════════════════════ */
.notify-section {
    text-align: center;
    max-width: 480px;
    width: 100%;
    margin-bottom: 48px;
}

.notify-section h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.notify-section p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.notify-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.notify-input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.notify-input::placeholder {
    color: var(--text-muted);
}

.notify-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.notify-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s, box-shadow 0.3s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.notify-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
}

.notify-btn:active::after {
    transform: scale(2);
    opacity: 1;
    transition: none;
}

.notify-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.35);
}

.notify-success {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    justify-content: center;
    margin-top: 12px;
}

.notify-success.show {
    display: flex;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 10px;
    color: #25d366;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
}

/* ═══════════════════════════════════════════
   SOCIAL LINKS
═══════════════════════════════════════════ */
.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: border-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

.social-link--wa:hover {
    border-color: #25d366;
    color: #25d366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 860px;
}

footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .countdown-box {
        width: 72px;
        height: 72px;
    }

    .countdown-number {
        font-size: 1.7rem;
    }

    .countdown-item {
        min-width: 72px;
    }

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