/* ================================================================== */
/*  Animation Mini Apps — Design System                                */
/*  Catppuccin Mocha (dark mode) + Animclaw UI structure               */
/*  Vibe coded by Alice Chen                                          */
/* ================================================================== */

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

/* ── Catppuccin Mocha ────────────────────────────────────────────── */
/* https://github.com/catppuccin/catppuccin                           */

:root,
[data-theme="dark"] {
  --rosewater:   #f5e0dc;
  --flamingo:    #f2cdcd;
  --pink:        #f5c2e7;
  --mauve:       #cba6f7;
  --red:         #f38ba8;
  --maroon:      #eba0ac;
  --peach:       #fab387;
  --yellow:      #f9e2af;
  --green:       #a6e3a1;
  --teal:        #94e2d5;
  --sky:         #89dceb;
  --sapphire:    #74c7ec;
  --blue:        #89b4fa;
  --lavender:    #b4befe;
  --text:        #cdd6f4;
  --subtext1:    #bac2de;
  --subtext0:    #a6adc8;
  --overlay2:    #9399b2;
  --overlay1:    #7f849c;
  --overlay0:    #6c7086;
  --surface2:    #585b70;
  --surface1:    #45475a;
  --surface0:    #313244;
  --base:        #1e1e2e;
  --mantle:      #181825;
  --crust:       #11111b;
  --bg:              var(--base);
  --bg-soft:         var(--mantle);
  --bg-muted:        var(--surface0);
  --bg-hover:        var(--surface1);
  --border:          var(--surface1);
  --border-light:    var(--surface0);
  --text-primary:    var(--text);
  --text-secondary:  var(--subtext1);
  --text-muted:      var(--overlay1);
  --accent:          var(--text);
  --accent-soft:     rgba(205, 214, 244, 0.08);
  --nav-bg:         rgba(30, 30, 46, 0.9);
  --btn-primary-bg: var(--text);
  --btn-primary-fg: var(--base);
  --shadow-md:       0 4px 12px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection { background: var(--accent-soft); color: var(--text-primary); }

:focus-visible { outline: 2px solid var(--mauve); outline-offset: 2px; }

.landing-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(203, 166, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(116, 199, 236, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(243, 139, 168, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand { display: flex; align-items: center; gap: 0.625rem; }
.nav-brand-text {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--text-primary);
}

.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-link {
  padding: 0.375rem 0.75rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-muted); }
.nav-link-icon { color: var(--text-muted); transition: color 0.2s; }
.nav-link-icon:hover { color: var(--text-primary); }

.hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem 1rem;
  padding-top: 5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-gradient {
  background: linear-gradient(155deg, var(--peach) 5%, var(--pink) 25%, var(--mauve) 50%, var(--sapphire) 70%, var(--green) 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.app-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.app-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.app-icon-wrap:hover {
  transform: scale(1.05);
}
.app-icon-wrap:hover .app-icon {
  border-color: var(--mauve);
  background: var(--bg-muted);
}

.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--mauve);
  transition: border-color 0.2s, background 0.2s;
}
a.app-icon:hover {
  border-color: var(--mauve);
  background: var(--bg-muted);
  transform: scale(1.05);
}
.app-icon-symbol { font-size: 1.5rem; }

.app-icon-image {
  padding: 0.5rem;
  background: #ffffff;
}
.app-icon-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-icon-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.app-icon-tagline {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 8rem;
  text-align: center;
}

.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
}
.footer-main { padding: 3rem 2rem; }
@media (min-width: 1024px) { .footer-main { padding-left: 4rem; padding-right: 4rem; } }
.footer-brand { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.5rem; }
.footer-brand-text { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.2em; color: var(--text-primary); }
.footer-tagline { font-size: 13px; color: var(--text-muted); max-width: 20rem; line-height: 1.5; margin-bottom: 2rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 0.8; }
.footer-divider { height: 1px; background: var(--border); margin: 0 2rem; }
@media (min-width: 1024px) { .footer-divider { margin: 0 4rem; } }
.footer-bottom { padding: 1.5rem 2rem; }
@media (min-width: 1024px) { .footer-bottom { padding-left: 4rem; padding-right: 4rem; } }
.footer-bottom p { font-size: 12px; color: var(--text-muted); margin: 0; }
