:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #606060;
    --accent-primary: #ff6b6b;
    --accent-secondary: #ee5a52;
    --accent-tertiary: #ff8787;
    --border-color: #2a2a2a;
    --shadow: rgba(255, 107, 107, 0.1);
    --shadow-strong: rgba(255, 107, 107, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    animation: float 3s ease-in-out infinite;
}

.logo svg {
    width: 100%;
    height: 100%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-strong);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 60px rgba(0, 255, 136, 0.2));
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: var(--bg-secondary);
    border-radius: 40px;
    padding: 12px;
    border: 3px solid var(--border-color);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: var(--bg-primary);
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 30px;
    overflow: hidden;
}

.demo-content {
    padding: 2.5rem 1.25rem 1.25rem;
    height: 100%;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.demo-distance {
    color: var(--accent-primary);
}

.demo-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-post {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    animation: slideIn 0.5s ease-out;
}

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

.demo-post-text {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.demo-post-img {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--border-color) 100%);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.demo-meta {
    font-size: 0.625rem;
    color: var(--text-tertiary);
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 8rem 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--accent-primary);
    opacity: 0.3;
    user-select: none;
}

/* Stats Section */
.stats {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.stat {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: lowercase;
}

/* Privacy Section */
.privacy {
    padding: 8rem 0;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.privacy-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.check {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.privacy-item p {
    color: var(--text-secondary);
}

/* Final CTA */
.final-cta {
    padding: 8rem 0;
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.final-cta h2 {
    margin-bottom: 1rem;
}

.final-cta p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.final-cta .cta-buttons {
    justify-content: center;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo svg {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-copyright p {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .logo {
        margin-left: auto;
        margin-right: auto;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    h1 {
        font-size: 3rem;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .phone-mockup {
        margin-top: 3rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .phone-frame {
        width: 260px;
        height: 520px;
    }

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

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

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

    .hero,
    .features,
    .how-it-works,
    .stats,
    .privacy,
    .final-cta {
        padding: 4rem 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (already dark, but ensures consistency) */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f5f5f5;
        --bg-tertiary: #e5e5e5;
        --text-primary: #0a0a0a;
        --text-secondary: #404040;
        --text-tertiary: #808080;
        --border-color: #d5d5d5;
    }

    .phone-frame::before {
        background: #111111;
    }

    /* Keep phone mockup always in dark mode to match app */
    .phone-frame {
        background: #111111;
        border-color: #2a2a2a;
    }

    .phone-screen {
        background: #0a0a0a;
    }

    .demo-header {
        color: #a0a0a0;
    }

    .demo-distance {
        color: #ff6b6b;
    }

    .demo-post {
        background: #111111;
        border-color: #2a2a2a;
    }

    .demo-post-text {
        color: #ffffff;
    }

    .demo-post-img {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    }

    .demo-meta {
        color: #606060;
    }
}
