/* ============================================================
   Cozy Platypus, shared design system
   Layout language inspired by spellydoesart.com
   Arcade accents inspired by gamerdiapers.store
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --topbar-h: 38px;
  --nav-h: 68px;
  --header-h: calc(var(--topbar-h) + var(--nav-h));
  --max-width: 1100px;

  /* brand palette, teal / deep navy / warm brown */
  --bg-page: #008080;
  --bg-deep: #009a9a;
  --bg-darker: #006666;
  --heading: #ffffff;
  --body: #f0ffff;
  --muted: #d9f2f2;
  --border: rgba(255, 255, 255, 0.2);
  --accent: #03035e;
  --accent-2: #ffffff;
  --accent-soft: #2a2a9a;
  --accent-dark: #ffffff;
  --accent-light: rgba(3, 3, 94, 0.24);
  --purple: #451806;
  --purple-2: #6d2a0f;
  --link: #ffffff;
  --card-bg: linear-gradient(165deg, rgba(3, 3, 94, 0.94) 0%, rgba(3, 3, 78, 0.9) 55%, rgba(69, 24, 6, 0.62) 100%);
  --card-border: rgba(255, 255, 255, 0.18);
  --card-shadow: 0 14px 30px rgba(3, 3, 94, 0.35), 0 4px 12px rgba(0, 0, 0, 0.22);
  --card-shadow-hover: 0 18px 40px rgba(3, 3, 94, 0.45), 0 8px 20px rgba(0, 0, 0, 0.3);
  --panel-bg: rgba(3, 3, 70, 0.82);
  --wave: #451806;
  --footer-text: #f6e9df;
  --font: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--body);
  background-color: var(--bg-page);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-page) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 140px 140px, 100% 100%;
  background-attachment: fixed, fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-2); }

::selection { background: var(--accent); color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER, top bar + fixed navbar
   ============================================================ */

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

.top-bar {
  min-height: var(--topbar-h);
  background: var(--bg-darker);
  color: #d9f2f2;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: var(--topbar-h);
}
.top-bar-tagline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-bar-hearts {
  color: var(--accent-2);
  letter-spacing: 4px;
  margin-right: 10px;
}
.top-bar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.top-bar-links a {
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.top-bar-links a:hover { color: var(--accent-2); }
.top-bar-links .exe-link {
  padding: 3px 12px;
  border: 1px solid currentColor;
  border-radius: 50px;
  font-weight: 600;
}

.navbar {
  position: relative;
  height: var(--nav-h);
  background: linear-gradient(180deg, rgba(3, 3, 94, 0.97) 0%, rgba(2, 2, 58, 0.97) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(3, 3, 94, 0.35);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--heading);
  white-space: nowrap;
}
.nav-logo:hover { color: var(--link); }
.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  flex-shrink: 0;
}
.top-mascot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 71% center;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 9px 16px;
  border-radius: 50px;
  border: 1px solid transparent;
  color: #e6effe;
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--heading);
}
.nav-links a.active {
  background: #008080;
  border-color: #008080;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 128, 128, 0.5);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--heading);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }

/* ============================================================
   BUTTONS & CHIPS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 100%);
  color: var(--accent-dark);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(3, 3, 94, 0.35);
}
.btn-primary:hover {
  color: var(--accent-dark);
  box-shadow: 0 0 26px var(--accent-light), 0 12px 26px rgba(0, 0, 0, 0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-dark);
  box-shadow: 0 0 26px var(--accent-light);
}
.btn-small { padding: 10px 22px; font-size: 0.72rem; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--accent-light);
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--accent-light);
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ============================================================
   LAYOUT / SECTIONS
   ============================================================ */

.page-content { padding-top: var(--header-h); position: relative; z-index: 1; }

.section { padding: 88px 0; position: relative; z-index: 1; }
.section-tight { padding: 56px 0; }

[ id ] { scroll-margin-top: calc(var(--header-h) + 20px); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--heading);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.section-title::after {
  content: '\2665';
  display: block;
  font-size: 1.15rem;
  color: var(--accent-2);
  margin: 10px auto 0;
  line-height: 1;
}
.section-lead {
  max-width: 640px;
  margin: 0 auto 46px;
  text-align: center;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
}

.decorative-hearts {
  text-align: center;
  color: var(--accent-2);
  font-size: 1rem;
  letter-spacing: 14px;
  opacity: 0.6;
  margin: 8px 0;
  user-select: none;
  position: relative;
  z-index: 1;
}

/* ============================================================
   GLASS PANELS
   ============================================================ */

.glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ============================================================
   HOME HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 80px;
  z-index: 1;
}
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  opacity: 0.55;
  pointer-events: none;
}
.carousel-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.carousel-track img {
  height: 260px;
  width: auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.track-left { animation: scroll-left 90s linear infinite; }
.track-right { animation: scroll-right 95s linear infinite; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(0, 128, 128, 0.9) 0%, rgba(0, 128, 128, 0.62) 45%, rgba(0, 128, 128, 0.2) 76%, transparent 100%),
    linear-gradient(180deg, rgba(0, 128, 128, 0.92) 0%, transparent 26%, transparent 72%, rgba(0, 128, 128, 0.95) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}
.hero-image-wrap {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  width: max-content;
  margin: 0 auto 18px;
}
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 5s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
  from { transform: scale(0.94); opacity: 0.7; }
  to { transform: scale(1.07); opacity: 1; }
}
.hero-image {
  width: 304px;
  height: 304px;
  object-fit: cover;
  object-position: 71% center;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: radial-gradient(circle at 30% 30%, var(--accent-light), rgba(0, 128, 128, 0.6));
  padding: 0;
  box-shadow: 0 0 34px var(--accent-light), 0 12px 28px rgba(0, 0, 0, 0.35);
}
.hero-eyebrow {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 6px 0 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f2ffff 40%, #d5f6f6 70%, #a9e8e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(3, 3, 94, 0.45));
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--body);
  font-size: 1.15rem;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* ============================================================
   APP SHOWCASE CARDS
   ============================================================ */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.showcase {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}
.showcase:hover {
  transform: translateY(-5px);
  border-color: var(--accent-2);
  box-shadow: var(--card-shadow-hover);
}
.showcase-media {
  position: relative;
  aspect-ratio: 14 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
  background:
    radial-gradient(circle at 50% 30%, rgba(69, 24, 6, 0.5), transparent 65%),
    rgba(2, 2, 50, 0.85);
}
.showcase-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.showcase-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.showcase-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.showcase-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}
.showcase-head h3 {
  font-size: 1.5rem;
  color: var(--heading);
  margin: 0 0 2px;
}
.showcase-kicker {
  display: block;
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.showcase-body p { color: var(--body); margin: 0 0 18px; font-size: 1rem; }
.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tag {
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  color: var(--accent-2);
  background: var(--accent-light);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.showcase-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}
.text-link {
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.text-link:hover { color: var(--accent-2); }

/* ============================================================
   ABOUT / PROMISES
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: stretch;
}
.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.about-image::before {
  content: '';
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 62%);
  animation: pulseGlow 6s ease-in-out infinite alternate;
}
.about-image img {
  position: relative;
  z-index: 1;
  width: min(280px, 100%);
  height: min(280px, 100%);
  object-fit: cover;
  object-position: 71% center;
  border-radius: 24px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.4));
}
.about-text { display: flex; flex-direction: column; gap: 18px; }
.bio-card {
  padding: 26px 30px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.bio-card p { color: var(--body); line-height: 1.8; }
.bio-card strong { color: var(--heading); }
.tools-card {
  padding: 24px 30px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  flex: 1;
}
.tools-card h3 {
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 10px;
}
.tools-list { list-style: none; }
.tools-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  line-height: 1.6;
}
.tools-list li:last-child { border-bottom: none; }
.tool-icon { color: var(--accent-2); flex-shrink: 0; }

/* ============================================================
   EXPLORE LINK CARDS
   ============================================================ */

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.link-card {
  display: block;
  padding: 24px 18px;
  border-radius: 20px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: var(--card-shadow-hover);
  color: var(--body);
}
.link-icon {
  display: block;
  font-size: 1.6rem;
  color: var(--accent-2);
  margin-bottom: 8px;
  line-height: 1;
}
.link-card h3 {
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: 6px;
}
.link-card:hover h3 { color: var(--accent-2); }
.link-card p { color: var(--body); font-size: 0.92rem; line-height: 1.55; margin: 0; }

/* ============================================================
   STATS STRIP
   ============================================================ */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat {
  padding: 22px 18px;
  text-align: center;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.stat .num {
  display: block;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent-2);
  margin-bottom: 4px;
}
.stat .lbl {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   PAGE HERO (app pages)
   ============================================================ */

.page-hero {
  position: relative;
  padding: 72px 0 48px;
  text-align: center;
  z-index: 1;
}
.page-hero .container { max-width: 900px; }
.page-hero-icon {
  display: flex;
  justify-content: center;
  width: max-content;
  margin: 0 auto 20px;
  position: relative;
}
.page-hero-icon::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 68%);
  z-index: -1;
}
.page-icon {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 30px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 34px var(--accent-light), 0 16px 34px rgba(0, 0, 0, 0.35);
}
.page-title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--heading);
  margin: 0 0 16px;
}
.page-title .grad {
  background: linear-gradient(180deg, #ffffff 0%, #f2ffff 40%, #d5f6f6 70%, #a9e8e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(3, 3, 94, 0.45));
}
.page-hero .hero-sub { margin-bottom: 26px; }

/* ============================================================
   GALLERY
   ============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery.wide { grid-template-columns: repeat(2, 1fr); }
.shot {
  padding: 10px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.shot:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: var(--card-shadow-hover);
}
.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-bg);
}
.gallery.wide .shot img {
  aspect-ratio: 14 / 9;
  object-position: center;
  object-fit: cover;
}
.shot.span-2 { grid-column: span 2; }
.shot-label {
  padding: 12px 6px 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.shot:hover .shot-label { color: var(--accent-2); }

/* ============================================================
   FEATURE PANELS / LISTS
   ============================================================ */

.feature-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature-panel {
  padding: 28px 30px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.feature-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  color: var(--heading);
  margin-bottom: 12px;
}
.feature-panel h3 .panel-icon { color: var(--accent-2); font-size: 1.1rem; }
.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  line-height: 1.6;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '\2605';
  color: var(--accent-2);
  flex-shrink: 0;
  line-height: 1.6;
}

/* ============================================================
   ARCADE ACCENTS (Backly)
   ============================================================ */

.arcade-bg { display: none; }
.scanlines { display: none; }

.theme-backly .arcade-bg {
  display: block;
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbFloat 9s ease-in-out infinite alternate;
}
.orb-1 { width: 540px; height: 540px; background: rgba(3, 3, 94, 0.4); top: -180px; right: -140px; }
.orb-2 { width: 440px; height: 440px; background: rgba(69, 24, 6, 0.5); bottom: -150px; left: -120px; animation-delay: 3s; }
.orb-3 { width: 340px; height: 340px; background: rgba(255, 255, 255, 0.1); top: 48%; left: 50%; transform: translate(-50%, -50%); animation-delay: 5s; }
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -30px) scale(1.12); }
}
.theme-backly .scanlines {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.035) 2px,
    rgba(255, 255, 255, 0.035) 4px
  );
}

.hud-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hud-card {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.hud-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
  box-shadow: var(--card-shadow-hover);
}
.hud-card .idx {
  display: block;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  opacity: 0.75;
  margin-bottom: 14px;
}
.hud-card h3 { font-size: 1.2rem; color: var(--heading); margin-bottom: 6px; }
.hud-card p { color: var(--body); font-size: 0.96rem; line-height: 1.65; margin: 0; }
.hud-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at top right, var(--accent-light), transparent 70%);
  pointer-events: none;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
  position: relative;
  overflow: hidden;
  padding: 56px 34px;
  text-align: center;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}
.cta::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 0%, var(--accent-light), transparent 60%);
  pointer-events: none;
}
.cta h2 {
  position: relative;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--heading);
  margin-bottom: 10px;
}
.cta p {
  position: relative;
  max-width: 520px;
  margin: 0 auto 26px;
  color: var(--body);
}
.cta .btn-row { position: relative; }

/* ============================================================
   FOOTER (wavy crest like spellydoesart)
   ============================================================ */

.site-footer { display: flex; flex-direction: column; position: relative; z-index: 1; }
.wave-band {
  height: 75px;
  color: var(--wave);
  margin-top: 40px;
  pointer-events: none;
}
.wave-band svg { display: block; width: 100%; height: 100%; }
.footer-body {
  background: var(--wave);
  color: var(--footer-text);
  padding: 26px 20px 30px;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.footer-hearts { color: var(--accent-2); letter-spacing: 8px; margin-bottom: 10px; opacity: 0.85; }
.footer-links {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-links a { color: inherit; opacity: 0.8; }
.footer-links a:hover { opacity: 1; color: inherit; }
.footer-links .sep { opacity: 0.4; margin: 0 9px; }

/* ============================================================
   STARS / REVEAL
   ============================================================ */

.star-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.85);
  animation: twinkle var(--tw, 3.6s) ease-in-out infinite alternate;
  opacity: 0;
  will-change: opacity;
}
@keyframes twinkle {
  from { opacity: 0.08; }
  to { opacity: 0.8; }
}

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   BACKLY THEME, arcade teal, navy & brown
   ============================================================ */

body.theme-backly {
  --bg-page: #008080;
  --bg-deep: #009a9a;
  --bg-darker: #006666;
  --heading: #ffffff;
  --body: #f0ffff;
  --muted: #d9f2f2;
  --border: rgba(255, 255, 255, 0.2);
  --accent: #03035e;
  --accent-2: #ffffff;
  --accent-soft: #2a2a9a;
  --accent-dark: #ffffff;
  --accent-light: rgba(3, 3, 94, 0.28);
  --purple: #451806;
  --purple-2: #6d2a0f;
  --link: #ffffff;
  --card-bg: linear-gradient(165deg, rgba(3, 3, 94, 0.94) 0%, rgba(2, 2, 52, 0.92) 52%, rgba(69, 24, 6, 0.62) 100%);
  --card-border: rgba(255, 255, 255, 0.18);
  --card-shadow: 0 14px 32px rgba(3, 3, 94, 0.45), 0 4px 14px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 18px 42px rgba(3, 3, 94, 0.55), 0 8px 22px rgba(0, 0, 0, 0.4);
  --panel-bg: rgba(2, 2, 50, 0.85);
  --wave: #451806;
  --footer-text: #f6e9df;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-page) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 140px 140px, 100% 100%;
  background-attachment: fixed, fixed;
}
.theme-backly .top-bar { background: #006666; color: #d9f2f2; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.theme-backly .top-bar-links a { color: var(--accent-2); }
.theme-backly .top-bar-links a:hover { color: #c8ffff; }
.theme-backly .top-bar-hearts { color: var(--accent-2); }
.theme-backly .navbar {
  background: linear-gradient(180deg, rgba(3, 3, 94, 0.97) 0%, rgba(2, 2, 45, 0.97) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(3, 3, 94, 0.5);
}
.theme-backly .nav-links a { color: #e6effe; }
.theme-backly .nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--accent-2);
}
.theme-backly .nav-links a.active {
  background: #008080;
  border-color: #008080;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 128, 128, 0.6);
}
.theme-backly .nav-toggle { color: var(--accent-2); }
.theme-backly .nav-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.theme-backly .showcase-media {
  background:
    radial-gradient(circle at 50% 30%, rgba(69, 24, 6, 0.5), transparent 65%),
    rgba(2, 2, 50, 0.85);
}
.theme-backly .showcase-media img { border-color: rgba(255, 255, 255, 0.2); }
.theme-backly .about-image img { filter: drop-shadow(0 18px 34px rgba(3, 3, 94, 0.55)); }
.theme-backly .about-image::before { background: radial-gradient(circle, rgba(3, 3, 94, 0.3) 0%, transparent 62%); }
.theme-backly .cta::before { background: radial-gradient(circle at 50% 0%, rgba(3, 3, 94, 0.32), transparent 62%); }
.theme-backly .hud-card::after { background: radial-gradient(circle at top right, rgba(69, 24, 6, 0.5), transparent 70%); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .showcase-grid,
  .about-grid,
  .feature-columns,
  .hud-features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }
  .carousel-track img { height: 210px; }
  .about-image { min-height: 320px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }

  .top-bar-tagline { display: none; }
  .top-bar .container { justify-content: center; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 24px 18px;
    background: rgba(2, 2, 58, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; text-align: center; }
  .theme-backly .nav-links { background: rgba(2, 2, 40, 0.99); }

  .hero { padding-top: calc(var(--header-h) + 26px); }
  .hero-image { width: 142px; height: 142px; }
  .hero-sub { font-size: 1.05rem; }
  .hero-actions .btn { width: min(320px, 82vw); }
  .hero-chips { gap: 8px; }
  .carousel-track img { height: 180px; }

  .section { padding: 56px 0; }
  .section-lead { margin-bottom: 32px; }
  .gallery { gap: 14px; }
  .gallery.wide { grid-template-columns: 1fr; }
  .shot.span-2 { grid-column: auto; }
  .stats-strip { grid-template-columns: 1fr; }
  .page-hero { padding: 52px 0 36px; }
  .wave-band { height: 55px; margin-top: 24px; }
  .footer-links { line-height: 2; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: 1fr; }
  .top-bar-links { gap: 12px; }
  .top-bar-links a { font-size: 0.64rem; }
  .hero-title { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .page-icon { width: 108px; height: 108px; border-radius: 24px; }
  .showcase-body { padding: 22px; }
  .bio-card, .tools-card, .feature-panel { padding: 22px; }
  .cta { padding: 40px 22px; }
  .decorative-hearts { letter-spacing: 8px; }
}

@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-chips .chip:nth-child(n + 4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track,
  .hero-image-wrap::before,
  .about-image::before,
  .orb { animation: none; }
  .star-layer { display: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover,
  .showcase:hover,
  .shot:hover,
  .link-card:hover,
  .hud-card:hover { transform: none; }
}
