/* ================= Design System: cwm.pw ================= */
/* Generated with UI UX Pro Max + taste-skill guidelines    */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ================= CSS Variables ================= */
:root {
    --bg: #F8FAFB;
    --surface: #FFFFFF;
    --surface-hover: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --accent: #0891B2;
    --accent-hover: #0E7490;
    --accent-soft: #ECFEFF;
    --success: #10B981;
    --success-soft: #D1FAE5;
    --warning: #6B7280;
    --warning-soft: #F3F4F6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'DM Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg: #0B1120;
    --surface: #111827;
    --surface-hover: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: #1E293B;
    --accent: #22D3EE;
    --accent-hover: #06B6D4;
    --accent-soft: #164E63;
    --success: #34D399;
    --success-soft: #064E3B;
    --warning: #9CA3AF;
    --warning-soft: #1F2937;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

/* ================= Reset & Base ================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100dvh;
    transition: background-color 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ================= Header ================= */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.header-logo {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.header-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ================= Hero ================= */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================= Services Grid ================= */
.services {
    padding: 0 0 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ================= Service Card ================= */
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
    position: relative;
    cursor: pointer;
}

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

.service-card.coming-soon {
    cursor: default;
    opacity: 0.6;
}

.service-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-icon.cyan {
    background: var(--accent-soft);
    color: var(--accent);
}

.service-icon.green {
    background: var(--success-soft);
    color: var(--success);
}

.service-icon.gray {
    background: var(--warning-soft);
    color: var(--warning);
}

.service-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.service-domain {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: -0.01em;
}

/* ================= Status Badge ================= */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.badge-online {
    background: var(--success-soft);
    color: var(--success);
}

.badge-coming {
    background: var(--warning-soft);
    color: var(--warning);
}

/* ================= Footer ================= */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* ================= Reduced Motion ================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0ms !important;
        animation-duration: 0ms !important;
    }
    .service-card:hover {
        transform: none;
    }
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .header {
        padding: 16px 0;
    }
    .hero {
        padding: 48px 0 40px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .service-card {
        padding: 22px;
    }
    .services {
        padding-bottom: 48px;
    }
}
