/* ===== ICTMS Landing Page ===== */
:root {
    --bg: #05070f;
    --bg-2: #0a0f1e;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.09);
    --text: #e8ecf4;
    --text-dim: #9aa4b8;
    --accent: #38bdf8;
    --accent-2: #818cf8;
    --accent-3: #34d399;
    --gradient: linear-gradient(100deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Background FX ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px) hue-rotate(0deg);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity, filter;
}
.orb-1 {
    width: 520px; height: 520px;
    background: #1d4ed8;
    top: -180px; left: -140px;
    animation: drift-1 12s ease-in-out infinite;
}
.orb-2 {
    width: 440px; height: 440px;
    background: #7c3aed;
    top: 22vh; right: -160px;
    animation: drift-2 14s ease-in-out infinite -6s;
}
.orb-3 {
    width: 380px; height: 380px;
    background: #0e7490;
    top: 62vh; left: 26%;
    animation: drift-3 11s ease-in-out infinite -10s;
}
.orb-4 {
    width: 320px; height: 320px;
    background: #be185d;
    top: 48vh; right: 14%;
    animation: drift-4 13s ease-in-out infinite -3s;
}

@keyframes drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1);             opacity: 0.4;  filter: blur(110px) hue-rotate(0deg); }
    25%      { transform: translate(200px, 110px) scale(1.3);   opacity: 0.58; filter: blur(110px) hue-rotate(80deg); }
    50%      { transform: translate(70px, 210px) scale(0.85);   opacity: 0.3;  filter: blur(110px) hue-rotate(160deg); }
    75%      { transform: translate(-50px, 80px) scale(1.15);   opacity: 0.5;  filter: blur(110px) hue-rotate(60deg); }
}
@keyframes drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1);             opacity: 0.4;  filter: blur(110px) hue-rotate(0deg); }
    30%      { transform: translate(-180px, 140px) scale(1.25); opacity: 0.55; filter: blur(110px) hue-rotate(-90deg); }
    60%      { transform: translate(-60px, -140px) scale(0.85); opacity: 0.28; filter: blur(110px) hue-rotate(-170deg); }
}
@keyframes drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1);             opacity: 0.4;  filter: blur(110px) hue-rotate(0deg); }
    33%      { transform: translate(-160px, -110px) scale(1.3); opacity: 0.55; filter: blur(110px) hue-rotate(100deg); }
    66%      { transform: translate(140px, -70px) scale(0.9);   opacity: 0.3;  filter: blur(110px) hue-rotate(190deg); }
}
@keyframes drift-4 {
    0%, 100% { transform: translate(0, 0) scale(1);             opacity: 0.45; filter: blur(110px) hue-rotate(0deg); }
    50%      { transform: translate(-140px, 160px) scale(1.35); opacity: 0.28; filter: blur(110px) hue-rotate(-120deg); }
}

/* ===== Cursor FX ===== */
.cursor-sparks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 199;
}

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(5, 7, 15, 0.6);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    width: 36px; height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
}
.brand-mark svg { width: 20px; height: 20px; }

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}
.brand-text em {
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin-left: auto;
}
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: none;
}
.btn svg { width: 17px; height: 17px; }

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.btn-nav {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.5rem 1.1rem;
}
.btn-nav:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1.5rem 4rem;
}

.hero-inner { max-width: 860px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1.25rem 2.5rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(12px);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== Glass ===== */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    backdrop-filter: blur(14px);
}

/* ===== Verification banner ===== */
.verify-banner {
    position: relative;
    z-index: 1;
    padding: 0 1.5rem;
    max-width: 1180px;
    margin: -2rem auto 0;
}

.verify-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.25rem 2.5rem;
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.08) inset, 0 20px 60px rgba(0,0,0,0.4);
}

.verify-icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(129,140,248,0.18));
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--accent);
}
.verify-icon svg { width: 32px; height: 32px; }

.verify-text { flex: 1; }
.verify-text h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}
.verify-text p { color: var(--text-dim); font-size: 0.95rem; max-width: 520px; }
.verify-text strong { color: var(--accent); font-weight: 600; }

.verify-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-dim);
}
.verify-list li { display: flex; align-items: center; gap: 0.55rem; }
.verify-list svg { width: 16px; height: 16px; color: var(--accent-3); flex-shrink: 0; }

/* ===== Sections ===== */
.section {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 6.5rem 1.5rem 0;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.section-head p { color: var(--text-dim); }

.section-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(129, 140, 248, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.3);
    color: var(--accent-2);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.1rem;
}

/* ===== Cards ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    padding: 2.25rem 2rem;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.card-icon {
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(129,140,248,0.15));
    border: 1px solid var(--border);
    color: var(--accent);
    margin-bottom: 1.4rem;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}
.card p { color: var(--text-dim); font-size: 0.92rem; }

/* ===== Transparency ===== */
.transparency-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    padding: 3.5rem;
    align-items: center;
}

.transparency-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.transparency-text p { color: var(--text-dim); font-size: 0.98rem; }

.policy-list { display: flex; flex-direction: column; gap: 1.4rem; }

.policy-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}
.policy-icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
}
.policy-icon svg { width: 18px; height: 18px; }
.policy-icon.ok {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--accent-3);
}
.policy-icon.no {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.28);
    color: #f87171;
}
.policy-item h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.15rem;
}
.policy-item p { color: var(--text-dim); font-size: 0.88rem; }

/* ===== Features ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature {
    padding: 2rem 1.75rem;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(129,140,248,0.35); }

.feature-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-2);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}
.feature h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.feature p { color: var(--text-dim); font-size: 0.87rem; }

/* ===== CTA ===== */
.cta-section {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 6.5rem 1.5rem;
}

.cta-card {
    text-align: center;
    padding: 4.5rem 2rem;
    background:
        radial-gradient(ellipse 60% 100% at 50% 0%, rgba(129,140,248,0.14), transparent),
        var(--surface);
}
.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.cta-card p { color: var(--text-dim); margin-bottom: 2rem; }

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    background: rgba(5, 7, 15, 0.7);
    padding: 3rem 1.5rem;
    text-align: center;
}
.footer-inner { max-width: 640px; margin: 0 auto; }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.footer-disclaimer {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}
.footer-credit {
    font-size: 0.9rem;
    color: var(--text-dim);
}
.footer-credit strong {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Floating help button ===== */
.help-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 150;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
.help-fab::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    pointer-events: none;
    animation: fab-pulse 2.6s ease-out infinite;
}
@keyframes fab-pulse {
    0%       { transform: scale(1);    opacity: 0.7; }
    70%, 100% { transform: scale(1.25); opacity: 0; }
}
.help-fab:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 40px rgba(99, 102, 241, 0.6);
}
.help-fab svg { width: 18px; height: 18px; }

/* ===== Reveal animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger cards */
.cards-grid .card:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .card:nth-child(3) { transition-delay: 0.24s; }
.feature-grid .feature:nth-child(2) { transition-delay: 0.1s; }
.feature-grid .feature:nth-child(3) { transition-delay: 0.2s; }
.feature-grid .feature:nth-child(4) { transition-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
    .nav-links { display: none; }
    .btn-nav { margin-left: auto; }
    .verify-card { flex-direction: column; text-align: center; align-items: center; }
    .verify-list { align-items: flex-start; }
    .cards-grid { grid-template-columns: 1fr; }
    .transparency-inner { grid-template-columns: 1fr; padding: 2.25rem; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 1.5rem; padding: 1rem 1.5rem; }
}

@media (max-width: 560px) {
    .feature-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .stat-divider { width: 60px; height: 1px; }
    .verify-card { padding: 1.75rem; }
    .help-fab { right: 1rem; bottom: 1rem; padding: 0.85rem; }
    .help-fab-text { display: none; }
    .help-fab svg { width: 20px; height: 20px; }
}
