/* ============================================
   KumaAlert — Website Stylesheet
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    --bg: #060a08;
    --surface: #111a14;
    --surface-2: #1a2a1e;
    --accent: #5CDD8B;
    --accent-dim: rgba(92, 221, 139, 0.15);
    --text: #f0f0f0;
    --text-muted: #888888;
    --border: #1e2e22;
    --red: #e74c3c;
    --yellow: #f1c40f;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient green glows */
body::before, body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: -1;
}
body::before {
    top: -300px; left: -200px;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(92,221,139,0.05) 0%, transparent 60%);
}
body::after {
    bottom: -400px; right: -200px;
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(92,221,139,0.04) 0%, transparent 60%);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Nav ---------- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(6,10,8,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.nav-inner {
    max-width: 1100px; 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-weight: 700; font-size: 18px; color: var(--text);
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
    padding: 160px 24px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(92,221,139,0.12) 0%, rgba(92,221,139,0.04) 40%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(92,221,139,0.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px; font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 56px; font-weight: 800;
    line-height: 1.1; margin-bottom: 20px;
    letter-spacing: -1.5px;
}
.hero h1 .accent { color: var(--accent); }
.hero .subtitle {
    font-size: 20px; color: var(--text-muted);
    max-width: 520px; margin: 0 auto 40px;
    line-height: 1.5;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--text); color: var(--bg);
    padding: 14px 28px; border-radius: 12px;
    font-weight: 600; font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(92,221,139,0.2);
}
.hero-cta svg { width: 24px; height: 24px; }

/* ---------- Phone Mockup ---------- */
.phone-mockup {
    margin: 60px auto 0;
    width: 280px; height: 560px;
    background: var(--surface);
    border-radius: 36px;
    border: 3px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.phone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 28px;
    background: var(--bg);
    border-radius: 0 0 20px 20px;
    z-index: 2;
}
.phone-screen { padding: 40px 16px 16px; height: 100%; }
.phone-status-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 4px; margin-bottom: 16px;
    font-size: 10px; color: var(--text-muted);
}
.phone-header {
    font-size: 22px; font-weight: 700;
    margin-bottom: 16px;
}
.phone-card {
    background: var(--surface-2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}
.phone-card-row {
    display: flex; justify-content: space-between; align-items: center;
}
.phone-card-title { font-size: 13px; font-weight: 600; }
.phone-card-subtitle { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.status-dot {
    width: 10px; height: 10px; border-radius: 50%;
}
.status-up { background: var(--accent); box-shadow: 0 0 8px rgba(92,221,139,0.5); }
.status-down { background: var(--red); box-shadow: 0 0 8px rgba(231,76,60,0.5); }
.heartbeat-bar {
    display: flex; gap: 2px; margin-top: 8px;
}
.heartbeat-bar span {
    flex: 1; height: 4px; border-radius: 2px;
    background: var(--accent); opacity: 0.7;
}
.heartbeat-bar span.down { background: var(--red); }

/* ---------- Features ---------- */
.features {
    padding: 100px 24px;
    max-width: 1100px; margin: 0 auto;
    position: relative;
}
.features::after {
    content: '';
    position: absolute; top: 50%; right: -300px; transform: translateY(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(92,221,139,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.features-header {
    text-align: center; margin-bottom: 60px;
}
.features-header h2 {
    font-size: 36px; font-weight: 700; margin-bottom: 12px;
}
.features-header p {
    color: var(--text-muted); font-size: 18px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
    border-color: rgba(92,221,139,0.3);
    transform: translateY(-2px);
}
.feature-icon {
    width: 44px; height: 44px;
    background: var(--accent-dim);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}
.feature-card h3 {
    font-size: 16px; font-weight: 600; margin-bottom: 8px;
}
.feature-card p {
    font-size: 14px; color: var(--text-muted); line-height: 1.5;
}

/* ---------- Screenshots ---------- */
.screenshots {
    padding: 100px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.screenshots-inner {
    max-width: 1100px; margin: 0 auto; text-align: center;
}
.screenshots-inner h2 {
    font-size: 36px; font-weight: 700; margin-bottom: 12px;
}
.screenshots-inner > p {
    color: var(--text-muted); font-size: 18px; margin-bottom: 48px;
}
.screenshots-row {
    display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
}
.screenshot-frame {
    width: 220px; height: 440px;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    flex-direction: column;
    gap: 8px;
}
.screenshot-frame svg { width: 32px; height: 32px; opacity: 0.4; }

/* ---------- Download CTA ---------- */
.download {
    padding: 100px 24px;
    text-align: center;
    position: relative;
}
.download::before {
    content: '';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 700px; height: 500px;
    background: radial-gradient(circle, rgba(92,221,139,0.1) 0%, rgba(92,221,139,0.03) 40%, transparent 70%);
    pointer-events: none;
}
.download h2 {
    font-size: 36px; font-weight: 700; margin-bottom: 12px;
}
.download p {
    color: var(--text-muted); font-size: 18px; margin-bottom: 8px;
}
.download .price {
    font-size: 14px; color: var(--text-muted); margin-bottom: 32px;
}

/* ---------- Content Pages ---------- */
.content-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}
.content-page h1 {
    font-size: 36px; font-weight: 700; margin-bottom: 8px;
}
.content-page .page-subtitle {
    font-size: 18px; color: var(--text-muted); margin-bottom: 40px;
}
.content-page h2 {
    font-size: 24px; font-weight: 600;
    margin-top: 40px; margin-bottom: 12px;
}
.content-page h3 {
    font-size: 18px; font-weight: 600;
    margin-top: 28px; margin-bottom: 8px;
}
.content-page p {
    color: var(--text-muted); margin-bottom: 16px; line-height: 1.7;
}
.content-page ul, .content-page ol {
    color: var(--text-muted);
    margin-bottom: 16px; padding-left: 24px;
}
.content-page ul { list-style: disc; }
.content-page ol { list-style: decimal; }
.content-page li { margin-bottom: 8px; line-height: 1.6; }
.content-page a { color: var(--accent); transition: opacity 0.2s; }
.content-page a:hover { opacity: 0.8; }

/* Steps */
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px 20px 64px;
    margin-bottom: 16px;
    position: relative;
}
.step-number {
    position: absolute; left: 20px; top: 20px;
    width: 32px; height: 32px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.step h3 { margin-top: 0; margin-bottom: 4px; color: var(--text); }
.step p { margin-bottom: 0; }

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.faq-item .question {
    font-size: 16px; font-weight: 600;
    color: var(--text); margin-bottom: 8px;
}
.faq-item .answer {
    font-size: 15px; color: var(--text-muted); line-height: 1.6;
}

/* Contact card */
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 40px;
}
.contact-card svg { margin: 0 auto 16px; color: var(--accent); }
.contact-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; margin-top: 0; }
.contact-card a { color: var(--accent); font-size: 18px; font-weight: 600; }
.contact-card p { font-size: 14px; color: var(--text-muted); margin-top: 8px; margin-bottom: 0; }

/* Changelog */
.changelog-entry { margin-bottom: 40px; }
.changelog-entry .version-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 6px;
    font-size: 13px; font-weight: 600;
    margin-bottom: 8px;
}
.changelog-entry .version-date {
    font-size: 14px; color: var(--text-muted); margin-bottom: 12px;
}
.changelog-entry ul {
    list-style: disc; padding-left: 24px;
    color: var(--text-muted);
}
.changelog-entry li { margin-bottom: 6px; line-height: 1.5; }

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-left { font-size: 14px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: var(--text-muted); font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero .subtitle { font-size: 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .screenshots-row { flex-direction: column; align-items: center; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .content-page { padding: 100px 16px 60px; }
}
