/* ============================================
   CRYPSIS — App Detection Roadmap
   Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Core palette */
    --bg-primary: #07060b;
    --bg-secondary: #0d0a15;
    --bg-card: rgba(18, 14, 30, 0.7);
    --bg-card-hover: rgba(26, 20, 44, 0.85);

    /* Purple spectrum */
    --purple-50: #f3e8ff;
    --purple-100: #e0cffc;
    --purple-200: #c9a5f7;
    --purple-300: #a876f0;
    --purple-400: #8b4fe6;
    --purple-500: #7c3aed;
    --purple-600: #6d28d9;
    --purple-700: #5b21b6;
    --purple-800: #4c1d95;
    --purple-900: #3b0f7a;

    /* Accent */
    --accent-green: #34d399;
    --accent-red: #f87171;
    --accent-amber: #fbbf24;

    /* Text */
    --text-primary: #f0ebf8;
    --text-secondary: #a89cc4;
    --text-muted: #6b5f86;

    /* Borders */
    --border-subtle: rgba(139, 79, 230, 0.12);
    --border-light: rgba(139, 79, 230, 0.25);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    --gradient-bg: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
                   radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);

    /* Shadows */
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.15);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);

    /* Sizing */
    --nav-height: 72px;
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-default: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Canvas Particles --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--purple-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple-600); }

/* --- Selection --- */
::selection {
    background: rgba(124, 58, 237, 0.4);
    color: #fff;
}

/* --- Utility --- */
.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-default);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(7, 6, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--purple-400);
    filter: drop-shadow(0 0 8px rgba(139, 79, 230, 0.5));
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-default);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
    overflow: hidden;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--purple-300);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.title-line:nth-child(2) { animation-delay: 0.15s; }

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.7;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--purple-300);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: var(--gradient-hero);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: var(--transition-default);
    animation: fadeInUp 0.8s ease-out 0.6s both;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

/* Hero Visual Orbs */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--purple-700);
    top: -10%;
    right: -10%;
    animation: float-orb 12s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--purple-500);
    bottom: 10%;
    left: -5%;
    animation: float-orb 16s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--purple-900);
    top: 40%;
    right: 20%;
    animation: float-orb 10s ease-in-out infinite 2s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTION COMMON
   ============================================ */
section {
    position: relative;
    z-index: 1;
    padding: 7rem 2rem;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple-400);
    padding: 0.35rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================
   ROADMAP / TIMELINE
   ============================================ */
#roadmap {
    background: var(--gradient-bg), var(--bg-primary);
}

.timeline {
    position: relative;
    padding-top: 2rem;
}

.timeline-track {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--border-subtle);
    border-radius: 3px;
}

.timeline-progress {
    width: 100%;
    height: 25%;
    background: var(--gradient-hero);
    border-radius: 3px;
    transition: height 0.5s ease;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.timeline-phases {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.phase {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.phase:nth-child(even) {
    flex-direction: row-reverse;
}

.phase:nth-child(even) .phase-card {
    text-align: right;
}

.phase:nth-child(even) .phase-details {
    align-items: flex-end;
}

.phase:nth-child(even) .phase-details li {
    flex-direction: row-reverse;
}

.phase-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.marker-ring {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--purple-700);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: var(--transition-default);
}

.phase.active .marker-ring,
.phase.expanded .marker-ring {
    border-color: var(--purple-400);
    box-shadow: 0 0 20px rgba(139, 79, 230, 0.4);
}

.marker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple-700);
    transition: var(--transition-default);
}

.phase.active .marker-dot {
    background: var(--purple-400);
    animation: pulse-dot 2s infinite;
}

.phase.expanded .marker-dot {
    background: var(--purple-400);
}

.phase-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.phase-card {
    width: calc(50% - 3.5rem);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition-default);
    backdrop-filter: blur(10px);
}

.phase:nth-child(odd) .phase-card {
    margin-right: auto;
}

.phase:nth-child(even) .phase-card {
    margin-left: auto;
}

.phase-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.phase.active .phase-card {
    border-color: rgba(139, 79, 230, 0.35);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.1);
}

.phase-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.status-active {
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent-green);
}

.status-active .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 2s infinite;
}

.status-upcoming {
    background: rgba(139, 79, 230, 0.12);
    color: var(--purple-300);
}

.status-upcoming .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-500);
}

.phase-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.phase-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.phase-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
}

.phase.active .phase-details,
.phase.expanded .phase-details {
    max-height: 300px;
    opacity: 1;
}

.phase-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.phase-details li svg {
    flex-shrink: 0;
    color: var(--purple-400);
}

.phase.active .phase-details li svg {
    color: var(--accent-green);
}

/* ============================================
   EVIDENCE GALLERY
   ============================================ */
#evidence {
    background: var(--bg-secondary);
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.evidence-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-default);
    opacity: 0;
    transform: translateY(30px);
}

.evidence-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.evidence-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.evidence-img-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 10;
}

.evidence-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.evidence-card:hover .evidence-img-wrapper img {
    transform: scale(1.05);
}

.evidence-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 6, 11, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-default);
}

.evidence-card:hover .evidence-overlay {
    opacity: 1;
}

.evidence-zoom {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(8px);
}

.evidence-info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.evidence-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.evidence-info p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 6, 11, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-default);
    backdrop-filter: blur(20px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid var(--border-light);
    color: #fff;
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(124, 58, 237, 0.4);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid var(--border-light);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    background: rgba(124, 58, 237, 0.4);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ============================================
   TARGET APPS
   ============================================ */
#apps {
    background: var(--gradient-bg), var(--bg-primary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

.app-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-default);
    opacity: 0;
    transform: translateY(20px);
    flex-wrap: wrap;
}

.app-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.app-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.app-package {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.app-meta span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.app-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-left: auto;
    align-self: flex-start;
    flex-shrink: 0;
    white-space: nowrap;
}

.badge-danger {
    background: rgba(248, 113, 113, 0.12);
    color: var(--accent-red);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ============================================
   AUDIO PLAYER
   ============================================ */
#audio {
    background: var(--bg-secondary);
}

.audio-player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    transition: var(--transition-default);
}

.audio-player-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-glow);
}

.audio-visual {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.audio-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.audio-waveform {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 48px;
}

.waveform-bar {
    flex: 1;
    background: var(--purple-800);
    border-radius: 2px;
    min-width: 3px;
    transition: height 0.15s ease, background 0.3s ease;
}

.waveform-bar.active {
    background: var(--purple-400);
}

.audio-details {
    margin-bottom: 2rem;
}

.audio-details h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.audio-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.audio-description {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-hero);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-default);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.audio-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.4);
}

.audio-play-btn .play-icon {
    margin-left: 3px;
}

.audio-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.audio-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 36px;
}

.audio-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.audio-progress {
    height: 100%;
    background: var(--gradient-hero);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.audio-progress-bar:hover .audio-progress-handle {
    opacity: 1;
}

.audio-volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple-400);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple-400);
    border: none;
    cursor: pointer;
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
    background: var(--gradient-bg), var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition-default);
}

.contact-info-card:hover {
    border-color: var(--border-light);
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-400);
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.contact-info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(7, 6, 11, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    background: var(--gradient-hero);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-default);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.form-submit.sent {
    background: linear-gradient(135deg, #059669, #34d399);
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    background: var(--bg-secondary);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--purple-400);
}

/* ============================================
   I4C LOGO — NAV
   ============================================ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-i4c-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.75rem 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}

.nav-i4c-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
}

.nav-i4c-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    /* Lighten the dark-blue logo slightly so it reads on the dark nav */
    filter: brightness(1.15) saturate(0.9);
}

/* ============================================
   I4C LOGO — HERO
   ============================================ */
.hero-i4c-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 1.2rem 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-i4c-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    white-space: nowrap;
}

.hero-i4c-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1) saturate(0.85);
}

/* ============================================
   I4C LOGO — FOOTER
   ============================================ */
.footer-i4c-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-prepared-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.footer-i4c-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1) saturate(0.85);
}

/* ============================================
   APP CARD ACTIONS (Play Store + Download)
   ============================================ */
.app-card {
    flex-wrap: wrap;
}

.app-actions {
    width: 100%;
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.btn-playstore,
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}

/* Play Store — outline style (less emphasis) */
.btn-playstore {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--purple-300);
}

.btn-playstore:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--purple-400);
    color: var(--text-primary);
}

/* Download APK — filled style (primary action) */
.btn-download {
    background: var(--gradient-hero);
    border: 1px solid transparent;
    color: #fff;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.25);
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* ============================================
   CONTACT — SIMPLE PERSON CARD
   ============================================ */
.contact-simple {
    display: flex;
    justify-content: center;
}

.contact-person-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 3rem 3.5rem;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    transition: var(--transition-default);
    backdrop-filter: blur(10px);
}

.contact-person-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-glow);
}

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

.contact-person-name {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.contact-person-role {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 0.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-fast);
    text-align: left;
}

.contact-detail-item:hover {
    background: rgba(124, 58, 237, 0.12);
    border-color: var(--border-light);
    transform: translateX(4px);
}

.contact-detail-item .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-400);
    flex-shrink: 0;
}

.contact-detail-item > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-muted);
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   FOOTER — FOR I4C TAG
   ============================================ */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-for-i4c {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple-400);
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .timeline-track {
        left: 24px;
        transform: none;
    }

    .phase,
    .phase:nth-child(even) {
        flex-direction: column;
        padding-left: 60px;
    }

    .phase-marker {
        left: 24px;
        transform: translateX(-50%);
    }

    .phase-card,
    .phase:nth-child(odd) .phase-card,
    .phase:nth-child(even) .phase-card {
        width: 100%;
        margin: 0;
        text-align: left;
    }

    .phase:nth-child(even) .phase-details {
        align-items: flex-start;
    }

    .phase:nth-child(even) .phase-details li {
        flex-direction: row;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(7, 6, 11, 0.95);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .audio-visual {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .audio-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .audio-progress-container {
        width: 100%;
        order: 3;
    }

    .audio-volume-container {
        order: 2;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    section {
        padding: 5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .audio-player-card {
        padding: 1.5rem;
    }

    .phase-card {
        padding: 1.25rem;
    }
}
