/* hugbug.io landing page */
:root {
  --bg: #2a1a22;
  --bg-card: #3a2531;
  --maroon: #a83666;
  --pink: #fa4796;
  --pink-hover: #ff5fa6;
  --cream: #f8d79d;
  --text: #f3e6da;
  --text-soft: #e0cfc6;
  --text-muted: #c9b5ab;
  --text-faint: #9c8a80;
  --font-display: 'Fredoka', 'Trebuchet MS', 'Arial Rounded MT Bold', sans-serif;
  --font-body: 'Nunito Sans', 'Trebuchet MS', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--cream); text-decoration: none; }
a:hover { color: var(--pink); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.page {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(250, 71, 150, 0.22), transparent 60%), var(--bg);
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}
.brand:hover { color: #fff; }
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a { color: var(--text); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--pink); }
.nav-links a.ext { color: var(--cream); }
.nav-links a.ext:hover { color: var(--pink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 96px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-size: 60px;
  line-height: 1.02;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.hero .lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 560px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.hero-actions .quiet { color: var(--text); font-weight: 600; font-size: 16px; }
.hero-actions .quiet:hover { color: var(--pink); }

.hero-mascot {
  display: flex;
  justify-content: center;
}
.hero-mascot img {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 20px 40px rgba(250, 71, 150, 0.35));
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  padding: 16px 26px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(250, 71, 150, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--pink-hover); color: #fff; transform: translateY(-1px); }

/* Sections */
.section { padding-bottom: 96px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 38px; font-weight: 600; color: #fff; }
.section-head p { font-size: 17px; color: var(--text-muted); margin-top: 8px; }
.section-head .more { font-weight: 700; font-size: 16px; }

/* Games */
.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease;
  color: inherit;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 71, 150, 0.6);
  color: inherit;
}
.card img {
  width: 100%;
  aspect-ratio: 63 / 50;
  object-fit: cover;
}
.card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card h3 { font-size: 20px; font-weight: 600; color: #fff; }
.card p { font-size: 15px; line-height: 1.45; color: var(--text-muted); }

/* Tools */
.tools-band {
  background: var(--maroon);
  color: #fff;
}
.tools-band .wrap {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.tools-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.tools-intro h2 { font-size: 38px; font-weight: 600; }
.tools-intro p { font-size: 18px; line-height: 1.55; color: #f6dfe8; text-wrap: pretty; }
.pill {
  align-self: flex-start;
  border: 1.5px solid var(--cream);
  color: var(--cream);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.tool {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  padding: 22px;
}
.tool svg { width: 28px; height: 28px; stroke: var(--cream); }
.tool h3 { font-size: 19px; font-weight: 600; }
.tool p { font-size: 15px; line-height: 1.5; color: #f6dfe8; }

/* Contact / footer */
.contact {
  padding-top: 88px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.contact-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.contact h2 { font-size: 38px; font-weight: 600; color: #fff; }
.contact p { font-size: 18px; line-height: 1.55; color: var(--text-muted); max-width: 560px; text-wrap: pretty; }
.email {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--pink);
  border-bottom: 2px solid rgba(250, 71, 150, 0.4);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
}
.email:hover { color: var(--pink-hover); border-color: var(--pink-hover); }
.social {
  display: flex;
  gap: 24px;
  padding-top: 6px;
  flex-wrap: wrap;
}
.social a { font-weight: 600; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 14px;
  color: var(--text-faint);
}

/* Responsive */
@media (max-width: 960px) {
  .hero h1 { font-size: 52px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 72px; }
  .hero-mascot { order: -1; }
  .hero-mascot img { width: 220px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 18px; }
  .section-head h2, .tools-intro h2, .contact h2 { font-size: 30px; }
  .games { grid-template-columns: minmax(0, 1fr); }
  .tools-band .wrap { padding-top: 56px; padding-bottom: 56px; }
  .contact { padding-top: 64px; }
  .email { font-size: 22px; }
}

@media (max-width: 480px) {
  .tools { grid-template-columns: minmax(0, 1fr); }
}
