/* ========== Hobby Aegis — Global Styles ========== */
:root{
  --bg: #ffffff;
  --fg: #0f172a;          /* slate-900 */
  --muted: #475569;       /* slate-600 */
  --line: #e5e7eb;        /* gray-200 */
  --teal: #08a6a0;        /* brand teal */
  --teal-ink: #056c68;    /* darker teal for hovers */
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button, .btn { font: inherit; }

/* ========== Layout ========== */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 20px; }

/* Header / Nav */
header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 12px; }
.brand .name { font-weight: 800; letter-spacing: .3px; }
.tag { font-size: .9rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--fg);
  transition: transform .04s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.btn.primary:hover { background: var(--teal-ink); border-color: var(--teal-ink); }

/* Hero */
.hero {
  display: grid; place-items: center;
  text-align: center; padding: 64px 20px 48px;
}
.hero img {
  /* Bigger logo by default; auto scales down on small screens */
  width: clamp(140px, 18vw, 240px);
  margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.15;
}
.hero p { margin: 0 auto; max-width: 720px; color: var(--muted); }
.cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Social pills */
.socials { display: flex; gap: 14px; justify-content: center; margin: 8px 0 0; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.socials svg { width: 18px; height: 18px; }

/* Cards / Grid */
.grid {
  max-width: var(--wrap); margin: 0 auto; padding: 24px 20px 60px;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  background: var(--card); box-shadow: var(--shadow);
}
.card h3 { margin: 4px 0 6px; }
.card p { margin: 0; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 24px 20px; color: var(--muted); text-align: center; }

/* ==*

/* Smooth scroll default (JS respects reduce-motion) */
html { scroll-behavior: smooth; }

/* Header elevation when scrolling */
header.scrolled { box-shadow: var(--shadow); }

/* Reveal-on-scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button ripple (subtle) */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in oklab, #fff 40%, var(--teal));
  transform: scale(0);
  opacity: .6;
  pointer-events: none;
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(10px);
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 50;
  font-size: .9rem;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible,
  .toast { transition: none !important; }
  .btn .ripple { display: none !important; }
}
