:root {
    --bg: #f8f9fa;
    --fg: #212529;
    --muted: #6c757d;
    --accent: #0d6efd;
    --accent-dark: #0b5ed7;
    --code-bg: #1e1e2e;
    --code-fg: #cdd6f4;
    --border: #dee2e6;
    --card-bg: #ffffff;
    --success: #198754;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 4rem 1rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

.clock-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.clock-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 12px rgba(13, 110, 253, 0.4));
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

header h1 span {
    color: var(--accent);
}

header p {
    font-size: 1.25rem;
    color: #adb5bd;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sections */
section {
    padding: 3rem 0;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

p {
    margin-bottom: 1rem;
    color: var(--fg);
}

/* Code blocks */
.code-block {
    background: var(--code-bg);
    color: var(--code-fg);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.code-block .lang {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6c7086;
    font-weight: 600;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: var(--code-fg);
}

.comment { color: #6c7086; }
.keyword { color: #cba6f7; }
.string { color: #a6e3a1; }
.number { color: #fab387; }

/* Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.feature-card .emoji {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* Steps */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.steps li strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 2.2rem;
    }
    header p {
        font-size: 1rem;
    }
    .features {
        grid-template-columns: 1fr;
    }
}
