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

:root {
    --bg: #050716;
    --bg-soft: rgba(12, 16, 40, 0.9);
    --card-bg: rgba(18, 24, 56, 0.9);
    --accent: #4da3ff;
    --accent-soft: rgba(77, 163, 255, 0.2);
    --accent-2: #9b7bff;
    --accent-green: #22c55e;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --text-main: #f5f7ff;
    --text-soft: #c5c9e8;
    --border-soft: rgba(255, 255, 255, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 40px rgba(77, 163, 255, 0.3);
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 0% 0%, #1b4bff22, transparent 60%),
        radial-gradient(circle at 100% 100%, #9b7bff33, transparent 60%),
        linear-gradient(145deg, #020411, #050716 55%, #02050f);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Animated background */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(77, 163, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(155, 123, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(77, 163, 255, 0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(155, 123, 255, 0.3), transparent);
    background-size: 200px 200px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-5px) translateX(-5px); }
    75% { transform: translateY(-15px) translateX(3px); }
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(155, 123, 255, 0.2));
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 12px;
}

/* HERO */

.hero {
    padding: 32px 16px 16px;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 32px;
    border-radius: 32px;
    background: radial-gradient(circle at top left, #4da3ff22, transparent 60%),
                radial-gradient(circle at bottom right, #9b7bff22, transparent 60%),
                var(--bg-soft);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 32px;
    align-items: center;
}

/* Logo Container */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(77, 163, 255, 0.1), rgba(155, 123, 255, 0.1));
    border-radius: 28px;
    border: 1px solid var(--border-soft);
    max-width: 200px;
}

.logo {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 30px rgba(77, 163, 255, 0.4));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 2.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.subtitle {
    font-size: 0.98rem;
    max-width: 40rem;
    color: var(--text-soft);
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
    font-weight: 600;
    font-size: 0.97rem;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    border: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 0 30px rgba(77, 163, 255, 0.3);
    filter: brightness(1.08);
}

.cta.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
    50% { box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 20px rgba(77, 163, 255, 0.4); }
}

.small-note {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.hero-qr {
    display: flex;
    justify-content: flex-end;
}

.qr-card {
    background: linear-gradient(145deg, rgba(12, 21, 54, 0.95), rgba(30, 36, 86, 0.98));
    border-radius: 24px;
    border: 1px solid var(--border-soft);
    padding: 18px 16px 16px;
    text-align: center;
    max-width: 260px;
    width: 100%;
    box-shadow: var(--shadow-soft);
}

.qr-card.glow {
    box-shadow: var(--shadow-soft), 0 0 40px rgba(77, 163, 255, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.qr-card.glow:hover {
    box-shadow: var(--shadow-soft), 0 0 60px rgba(77, 163, 255, 0.25);
    transform: translateY(-3px);
}

.qr-card img {
    width: 180px;
    height: 180px;
    border-radius: 18px;
    margin-bottom: 10px;
    background: #ffffff11;
    object-fit: contain;
}

.qr-card p {
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* SECTIONS */

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 20px;
}

.section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.section-header p {
    color: var(--text-soft);
    font-size: 0.98rem;
}

/* GRID / CARDS */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 16px 14px 18px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-soft);
}

/* MISSION, SAFETY, HOW-TO */

.mission-body p,
.safety-body p {
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: 0.96rem;
}

.mission,
.safety,
.how-to {
    background: rgba(5, 9, 26, 0.9);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    margin-top: 12px;
}

.steps {
    margin-top: 6px;
    padding-left: 20px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.steps li {
    margin-bottom: 8px;
}

/* SCREENSHOTS */

.screenshots {
    margin-top: 8px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.screenshot-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 14px 12px 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.screenshot-placeholder {
    height: 220px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-soft);
    background: radial-gradient(circle at top, #4da3ff11, #050716);
    margin-bottom: 10px;
}

.screenshot-card img {
    max-width: 100%;
    max-height: 220px;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 18px;
    margin-bottom: 10px;
}

.screenshot-card p {
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* INFO LINKS */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.info-grid h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.info-grid p {
    font-size: 0.9rem;
    color: var(--text-soft);
}

.info-grid a {
    color: var(--accent);
    text-decoration: none;
}

.info-grid a:hover {
    text-decoration: underline;
}

/* FOOTER */

.footer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 20px 28px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.footer-small {
    margin-top: 4px;
}

/* RESPONSIVE */

@media (max-width: 840px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 20px 18px 24px;
    }

    .hero-qr {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 20px;
    }

    .logo-container {
        align-items: center;
        max-width: 160px;
        padding: 16px;
    }

    .logo {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 520px) {
    .hero-inner {
        padding: 18px 14px 22px;
        border-radius: 24px;
    }

    .logo-container {
        align-items: center;
        margin-bottom: 16px;
        max-width: 140px;
        padding: 14px;
    }

    .logo {
        width: 90px;
        height: 90px;
        border-radius: 20px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.25rem;
    }

    .cta {
        width: 100%;
    }
}

/* AI FEATURES SECTION */
.ai-features {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.05), rgba(77, 163, 255, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-top: 12px;
}

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

.ai-card {
    background: linear-gradient(145deg, rgba(18, 24, 56, 0.95), rgba(12, 16, 40, 0.95));
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 24px 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft), 0 0 30px rgba(77, 163, 255, 0.15);
}

.ai-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.ai-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.ai-card p {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 16px;
}

/* Score Preview */
.score-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.score-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-orange) 0% 62%, rgba(255,255,255,0.1) 62% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-ring::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--bg);
    border-radius: 50%;
}

.score-number {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.score-label {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    color: var(--text-soft);
}

.score-text {
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* Strength Bar */
.strength-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.strength-label {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* Check-in Preview */
.checkin-preview {
    margin-top: 8px;
}

.checkin-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-green);
}

/* Alert Preview */
.alert-preview {
    margin-top: 8px;
}

.alert-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-red);
}

/* Card Icons */
.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft), 0 0 25px rgba(77, 163, 255, 0.1);
}

/* Emergency Box */
.emergency-box {
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Stats Section */
.stats {
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.03);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* Footer Enhancements */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.footer-copyright {
    margin-top: 8px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* App Link Style */
.app-link {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(155, 123, 255, 0.15));
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.app-link:hover {
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.3), rgba(155, 123, 255, 0.25));
    transform: translateX(3px);
    text-decoration: none;
}
