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

:root {
    --bg: #0a0a0f;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #e8e8ed;
    --text-dim: rgba(255, 255, 255, 0.4);
    --accent: #6c5ce7;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --green: #00d68f;
    --blue: #5f8ef7;
    --orange: #ff9f43;
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 2rem 1rem;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
header {
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 50%, #6c5ce7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dot {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.subtitle {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* Clock */
.time-section {
    text-align: center;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

#clock {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#date {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 400;
}

/* Stats Grid */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.stat-card {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--green), #00b8a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-detail {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

/* Links */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    position: relative;
    transition: all 0.25s ease;
}

.link-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.link-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.link-card:hover::after {
    opacity: 0.3;
}

.link-icon {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.link-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.link-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.link-arrow {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1rem;
    color: var(--text-dim);
    transition: transform 0.2s ease, color 0.2s ease;
}

.link-card:hover .link-arrow {
    transform: translate(3px, -3px);
    color: var(--accent);
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    padding: 0.5rem;
}

.heart {
    color: #ff6b6b;
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 480px) {
    body { padding: 1rem 0.75rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .links { grid-template-columns: 1fr; }
}
