/* Base styles */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, textarea, select, button {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: inherit;
}

a, button {
    touch-action: manipulation;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* App */
 * { box-sizing: border-box; } body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #ffffff; background-image: radial-gradient(circle at 50% 0%, rgba(148, 119, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%); color: #1a1a1a; min-height: 100vh; } ::selection { background: #9477ff; color: #ffffff; }

 .page[coi-scope="App"]{ min-height: 100vh; display: flex; flex-direction: column; }
 .hero[coi-scope="App"]{ flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 20px 80px; text-align: center; }
 .logo[coi-scope="App"]{ width: 120px; height: auto; margin-bottom: 24px; filter: drop-shadow(0 8px 24px rgba(148, 119, 255, 0.3)); }
 h1[coi-scope="App"]{ font-size: 48px; font-weight: 800; margin: 0 0 12px 0; color: #1a1a1a; letter-spacing: -1px; }
 .tagline[coi-scope="App"]{ font-size: 18px; color: #666; margin: 0 0 40px 0; max-width: 400px; }
 .counter-section[coi-scope="App"]{ background: #fafafa; border: 1px solid #eee; border-radius: 16px; padding: 32px 48px; margin-bottom: 24px; }
 .counter-label[coi-scope="App"]{ font-size: 14px; color: #888; margin: 0 0 16px 0; text-transform: uppercase; letter-spacing: 1px; }
 .counter[coi-scope="App"]{ display: flex; align-items: center; gap: 20px; }
 .count[coi-scope="App"]{ font-size: 48px; font-weight: 700; min-width: 80px; color: #9477ff; }
 .hint[coi-scope="App"]{ margin-top: 32px; font-size: 14px; color: #999; }
 .hint code[coi-scope="App"]{ background: #f0f0f0; padding: 2px 8px; border-radius: 4px; font-family: monospace; }


/* NavBar */
 .nav[coi-scope="NavBar"]{ display: flex; justify-content: space-between; align-items: center; padding: 16px 32px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #eee; position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
 .logo[coi-scope="NavBar"]{ display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #1a1a1a; }
 .links[coi-scope="NavBar"]{ display: flex; gap: 24px; }
 a[coi-scope="NavBar"]{ color: #666; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s; }
 a[coi-scope="NavBar"]:hover{ color: #9477ff; }


/* Footer */
 footer[coi-scope="Footer"]{ padding: 32px; text-align: center; background: #fafafa; border-top: 1px solid #eee; }
 p[coi-scope="Footer"]{ margin: 0; color: #888; font-size: 14px; }
 a[coi-scope="Footer"]{ color: #9477ff; text-decoration: none; }
 a[coi-scope="Footer"]:hover{ text-decoration: underline; }


/* Button */
 button[coi-scope="Button"]{ border: none; border-radius: 8px; padding: 14px 28px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); text-decoration: none; display: inline-block; }
 button[coi-scope="Button"]:active{ transform: translateY(1px); }
 .primary[coi-scope="Button"]{ background: #9477ff; color: #fff; box-shadow: 0 4px 12px rgba(148, 119, 255, 0.3); }
 .primary[coi-scope="Button"]:hover{ background: #8266ff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(148, 119, 255, 0.4); }
 .secondary[coi-scope="Button"]{ background: transparent; color: #666; border: 1px solid #e0e0e0; }
 .secondary[coi-scope="Button"]:hover{ color: #1a1a1a; border-color: #999; background: #fafafa; transform: translateY(-2px); }


