/* === NightWarden — Landing Styles === */

:root {
    --bg: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --success: #10b981;
    --border: #1f2937;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon { font-size: 1.5rem; }

.nav {
    display: flex;
    gap: 32px;
}

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

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

/* === Hero === */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 .accent {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

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

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

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Clock widget */
.clock-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.clock-face {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 3px solid var(--border);
    position: relative;
    background: radial-gradient(circle, var(--bg-card) 0%, var(--bg) 100%);
    box-shadow: 0 0 60px var(--accent-glow), inset 0 0 30px rgba(0,0,0,0.5);
}

.clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    background: var(--text);
    border-radius: 4px;
}

.clock-hand.hour {
    width: 4px;
    height: 70px;
    margin-left: -2px;
    transform: rotate(210deg);
}

.clock-hand.minute {
    width: 3px;
    height: 100px;
    margin-left: -1.5px;
    transform: rotate(0deg);
    background: var(--accent);
}

.clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.clock-label {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

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

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-donate {
    background: #ffdd00;
    color: #000;
}

.btn-donate:hover {
    background: #ffe333;
    transform: translateY(-2px);
}

.btn-donate-yoo {
    background: #7b5ea7;
    color: #fff;
}

.btn-donate-yoo:hover {
    background: #8b6eb7;
    transform: translateY(-2px);
}

/* === Sections === */
section {
    padding: 100px 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* === Problem === */
.problem {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

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

.problem-card:hover {
    border-color: var(--danger);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
}

.problem-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--danger);
}

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

/* === Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

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

/* === How it works === */
.how {
    background: var(--bg-card);
}

.steps {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
}

/* === Download === */
.download {
    text-align: center;
}

.download-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    text-align: center;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.download-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.download-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.download-version {
    display: block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.download-note a {
    color: var(--accent);
    text-decoration: none;
}

.download-note a:hover { text-decoration: underline; }

/* === Donate === */
.donate {
    background: var(--bg-card);
    text-align: center;
}

.donate-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

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

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

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

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

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

    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }

    .nav { display: none; }

    .problem-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-cards {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand p { margin-left: 0; }
}
