/* ═══════════════════════════════════════
   Leave A Trace — Website Styles
   Glassmorphism + Dark Theme + Cyan Accent
   ═══════════════════════════════════════ */

:root {
    --accent: #5DCED8;
    --accent-dark: #3BBAC5;
    --accent-glow: rgba(93, 206, 216, 0.4);
    --accent-shadow: rgba(93, 206, 216, 0.3);
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.12);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── Background ─── */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(93, 206, 216, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(93, 206, 216, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(93, 206, 216, 0.05), transparent),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.bg-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ─── Container ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Navigation ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    padding: 8px 20px !important;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.nav-cta:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-shadow);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 4px 24px var(--accent-shadow);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-glass {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
    border-radius: 16px;
}

/* ─── Gradient Text ─── */
.gradient-text {
    background: linear-gradient(135deg, var(--accent), #A78BFA, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* ─── Section Headers ─── */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(93, 206, 216, 0.1);
    border: 1px solid rgba(93, 206, 216, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

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

/* ═══ HERO ═══ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content { flex: 1; max-width: 560px; }

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(93, 206, 216, 0.1);
    border: 1px solid rgba(93, 206, 216, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat { text-align: center; }
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-glass);
}

/* ─── Phone Mockup ─── */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup { position: relative; z-index: 1; }

.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 36px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(93, 206, 216, 0.1);
    overflow: hidden;
    position: relative;
    padding: 12px;
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: var(--bg-primary);
    border-radius: 0 0 16px 16px;
    margin: 0 auto 16px;
}

.phone-screen { padding: 0 4px; }

.mock-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.mock-logo {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--bg-primary);
}

.mock-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.mock-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 10px;
    animation: mockCardSlide 0.6s ease both;
}

.mock-card-1 { animation-delay: 0.2s; }
.mock-card-2 { animation-delay: 0.4s; }
.mock-card-3 { animation-delay: 0.6s; }
.mock-card-4 { animation-delay: 0.8s; }

@keyframes mockCardSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.mock-card-icon { font-size: 1.6rem; flex-shrink: 0; }
.mock-card-title { font-size: 0.8rem; font-weight: 600; }
.mock-card-sub { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

.mock-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-nav-item {
    font-size: 1.1rem;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.mock-nav-item.active { opacity: 1; }

.mock-nav-item.add {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-primary);
    opacity: 1;
}

/* ─── Floating Cards ─── */
.floating-card {
    position: absolute;
    padding: 12px 20px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-card span { font-size: 1.2rem; }

.floating-card-1 {
    top: 15%;
    right: -10%;
    animation: float1 6s ease-in-out infinite;
}

.floating-card-2 {
    bottom: 20%;
    left: -5%;
    animation: float2 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

/* ═══ FEATURES ═══ */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 32px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(93, 206, 216, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══ HOW IT WORKS ═══ */
.how-it-works {
    padding: 120px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 16px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bg-primary);
    margin: 0 auto 20px;
    box-shadow: 0 4px 24px var(--accent-shadow);
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 28px;
    flex-shrink: 0;
    opacity: 0.3;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══ CAPSULES ═══ */
.capsules-section {
    padding: 120px 0;
}

.split-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.split-text { flex: 1; }

.split-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.split-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.capsule-ideas {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.capsule-idea {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: all 0.2s;
}

.capsule-idea:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(93, 206, 216, 0.2);
}

.capsule-idea-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.capsule-idea strong { font-size: 0.95rem; }
.capsule-idea p { font-size: 0.85rem; color: var(--text-secondary); margin-top: 2px; }

.split-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Capsule Visual */
.capsule-visual {
    position: relative;
}

.capsule-box {
    width: 280px;
    position: relative;
}

.capsule-lid {
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 20px 20px 4px 4px;
    position: relative;
    z-index: 1;
    animation: lidFloat 3s ease-in-out infinite;
}

@keyframes lidFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

.capsule-body {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-top: none;
    border-radius: 4px 4px 20px 20px;
    padding: 40px 24px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.capsule-glow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-glow), transparent);
    border-radius: 50%;
    filter: blur(30px);
}

.capsule-icon { font-size: 3rem; margin-bottom: 16px; position: relative; }
.capsule-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    position: relative;
}
.capsule-date {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    position: relative;
}

.capsule-contributors {
    display: flex;
    justify-content: center;
    gap: -8px;
    position: relative;
}

.contributor {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7B61FF, #A78BFA);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--bg-primary);
    margin-left: -8px;
}

.contributor:first-child { margin-left: 0; background: linear-gradient(135deg, #FF6B35, #FF4081); }
.contributor:nth-child(2) { background: linear-gradient(135deg, #4CAF50, #66BB6A); }
.contributor:last-child { background: rgba(255, 255, 255, 0.15); font-size: 0.65rem; }

/* ═══ POSTHUMOUS ═══ */
.posthumous-section {
    padding: 120px 0;
}

.posthumous-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.posthumous-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.posthumous-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
}

.posthumous-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.posthumous-step {
    flex: 1;
    max-width: 220px;
    padding: 32px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.posthumous-step-icon { font-size: 2.2rem; margin-bottom: 16px; }
.posthumous-step h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.posthumous-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.posthumous-arrow {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 60px;
    opacity: 0.5;
}

.posthumous-note {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(93, 206, 216, 0.08);
    border: 1px solid rgba(93, 206, 216, 0.15);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: left;
    max-width: 600px;
}

.posthumous-note svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* ═══ DOWNLOAD ═══ */
.download-section {
    padding: 120px 0;
}

.download-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 64px 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.download-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(93, 206, 216, 0.08), transparent 50%);
    pointer-events: none;
}

.download-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    position: relative;
}

.download-content > p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
}

.download-buttons { position: relative; margin-bottom: 16px; }

.download-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
}

.download-soon {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
}

.coming-soon-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #A78BFA;
    margin-right: 4px;
}

/* ═══ FOOTER ═══ */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

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

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
    text-align: center;
}

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

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { flex-direction: column; text-align: center; padding-top: 100px; }
    .hero-content { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .split-content { flex-direction: column; gap: 48px; }
    .split-text { text-align: center; }
    .capsule-idea { text-align: left; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        border-bottom: 1px solid var(--border-glass);
        gap: 16px;
    }
    .nav-toggle { display: flex; }
    .hero-title { font-size: 2.4rem; }
    .section-header h2, .split-text h2, .posthumous-content h2, .download-content h2 { font-size: 1.8rem; }
    .steps { flex-direction: column; align-items: center; }
    .step-connector { width: 2px; height: 30px; background: linear-gradient(180deg, var(--accent), transparent); margin: 0; }
    .posthumous-steps { flex-direction: column; align-items: center; }
    .posthumous-arrow { transform: rotate(90deg); margin: 0; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .floating-card { display: none; }
    .phone-frame { width: 240px; height: 500px; }
    .download-content { padding: 40px 24px; }
}

/* ─── Animations on scroll ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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