:root {
    --bg-dark: #070a13;
    --bg-card: rgba(15, 23, 42, 0.6);
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.3);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Glows */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-left {
    top: -200px;
    left: -200px;
}

.bg-glow-right {
    top: 400px;
    right: -200px;
    background: #3b82f6;
    opacity: 0.1;
}

/* Navbar */
.navbar {
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(7, 10, 19, 0.8);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.logo {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 32px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: #0ea5e9; /* Switch to blue on hover for dynamic feel */
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

/* Demo Mockup */
.demo {
    margin-bottom: 120px;
    perspective: 1000px;
}

.demo-mockup {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateX(5deg) scale(0.95);
    transition: transform 0.5s ease;
}

.demo-mockup:hover {
    transform: rotateX(0deg) scale(1);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
}
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #27c93f; }

.mockup-body {
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    position: relative;
    background: #1e1e1e; /* VS Code feel */
}

.code-line span { color: #569cd6; } /* keyword */
.code-string { color: #ce9178; }    /* string */
.code-safe { color: var(--primary); font-weight: bold; } /* redacted */

.redacted {
    margin-top: 16px;
    opacity: 0;
    animation: fadeInSafe 1s forwards 2s;
}

.scan-animation {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--primary-glow));
    border-bottom: 2px solid var(--primary);
    opacity: 0;
    animation: scanLine 2s ease-in-out infinite;
}

/* Section Shared */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 48px;
    text-align: center;
}

/* Features Grid */
.features {
    padding: 40px 0 100px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Story Section (How it Works) */
.story-section {
    padding: 0 0 100px;
}

.story-panel {
    display: flex;
    align-items: center;
    gap: 40px;
}

.story-content {
    flex: 1;
}

.story-content .section-title {
    text-align: left;
    margin-bottom: 24px;
    font-size: 2rem;
}

.story-time {
    color: var(--primary);
    margin-bottom: 16px;
}

.story-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.story-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-main);
    font-size: 0.9em;
}

.story-content strong {
    color: var(--text-main);
}

.story-meme {
    flex: 1;
    display: flex;
    justify-content: center;
}

.meme-img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.meme-img:hover {
    transform: scale(1.02);
}

/* Privacy Section */
.privacy-section {
    padding: 60px 0 100px;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.privacy-list {
    margin-top: 24px;
    padding-left: 20px;
    color: var(--text-muted);
}

.privacy-list li {
    margin-bottom: 12px;
}

.privacy-list strong {
    color: var(--text-main);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

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

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

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes scanLine {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100px); opacity: 0; }
}

@keyframes fadeInSafe {
    to { opacity: 1; }
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.delay-1 { animation-delay: 0.15s; transition-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; transition-delay: 0.45s; }

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .story-panel { flex-direction: column; text-align: center; }
    .story-content .section-title { text-align: center; }
    .nav-links { display: none; }
    .cta-group { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 16px; text-align: center; }
}
