/* OtterApps — site styles.
   Brand pulled from the logo: charcoal, orange (#F59B1E), red (#E8483C). */

:root {
  --bg:        #14171d;
  --bg-raise:  #1c2028;
  --bg-panel:  #232834;
  --line:      #313847;
  --text:      #e8eaf0;
  --text-dim:  #a3aab8;
  --orange:    #f59b1e;
  --red:       #e8483c;
  --grad:      linear-gradient(135deg, var(--orange), var(--red));
  --radius:    14px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--orange); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bg-panel); color: var(--text); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .85rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin: 0 0 .75em;
}
.lede { font-size: 1.15rem; color: var(--text-dim); max-width: 46em; }
.accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-title { text-align: center; margin-bottom: 1.6em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 12px 26px; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 18px rgba(232, 72, 60, .35);
}
.btn--primary:hover { box-shadow: 0 6px 24px rgba(232, 72, 60, .5); }
.btn--ghost { color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--orange); }
.btn--lg { padding: 15px 34px; font-size: 1.05rem; }
.btn--sm { padding: 8px 18px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 23, 29, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.brand img { display: block; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) {
  color: var(--text-dim); text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
}
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); position: relative; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 3px; border-radius: 2px; background: var(--grad);
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(70px, 12vw, 130px) 0;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(245, 155, 30, .12), transparent 60%),
    radial-gradient(700px 380px at 5% 110%, rgba(232, 72, 60, .10), transparent 60%),
    var(--bg);
  text-align: center;
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { margin: 0 auto 1.8em; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Floating diamonds echoing the logo mark. */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute; display: block;
  border: 3px solid var(--orange); border-radius: 4px;
  transform: rotate(45deg); opacity: .5;
  animation: float 9s ease-in-out infinite;
}
.shape--1 { width: 46px; height: 46px; top: 18%; left: 8%; }
.shape--2 { width: 22px; height: 22px; top: 62%; left: 16%; border-color: var(--red); animation-delay: -3s; }
.shape--3 { width: 30px; height: 30px; top: 24%; right: 12%; border-color: var(--red); animation-delay: -5s; }
.shape--4 { width: 56px; height: 56px; top: 66%; right: 7%; animation-delay: -7s; }
.shape--5 { width: 16px; height: 16px; top: 40%; right: 24%; background: var(--grad); border: 0; opacity: .45; animation-delay: -2s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -18px; }
}
@media (prefers-reduced-motion: reduce) {
  .shape { animation: none; }
}

/* ---------- Featured game ---------- */
.featured { background: var(--bg-raise); border-block: 1px solid var(--line); }
.featured__inner {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 48px; align-items: center;
  padding: clamp(56px, 8vw, 96px) 20px;
}
.featured__logo { display: block; margin-bottom: 18px; }
.featured__copy p { color: var(--text-dim); }
.featured__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }

.featured__art { position: relative; height: 380px; }
.featured__art .card,
.game__art .card {
  position: absolute; width: 200px; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
  border: 1px solid var(--line);
}
.featured__art .card--1 { left: 4%;  top: 40px; transform: rotate(-9deg); }
.featured__art .card--2 { left: 30%; top: 0;    transform: rotate(1deg); z-index: 2; }
.featured__art .card--3 { left: 56%; top: 44px; transform: rotate(9deg); }

/* ---------- Pillars ---------- */
.pillars { padding: clamp(56px, 8vw, 96px) 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
}
.pillar p { color: var(--text-dim); margin-bottom: 0; }
.pillar__mark {
  display: block; width: 26px; height: 26px;
  border-radius: 5px; transform: rotate(45deg);
  margin: 6px 0 22px 6px;
}
.pillar__mark--orange { border: 3px solid var(--orange); }
.pillar__mark--red    { border: 3px solid var(--red); }
.pillar__mark--duo    { background: var(--grad); }

/* ---------- CTA strip ---------- */
.cta {
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(245, 155, 30, .14), transparent 65%),
    var(--bg-raise);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta__inner { padding: clamp(56px, 8vw, 90px) 20px; }
.cta p { color: var(--text-dim); margin-bottom: 1.6em; }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(56px, 9vw, 90px) 0 clamp(28px, 4vw, 44px); }
.page-head--404 { text-align: center; padding-bottom: 80px; }
.page-head--404 .lede { margin: 0 auto 2em; }

.prose { padding-bottom: clamp(56px, 8vw, 96px); }
.prose p { color: var(--text-dim); font-size: 1.06rem; }
.prose strong { color: var(--text); }
.prose__cta { margin-top: 2.2em; }
.prose--legal h2 { font-size: 1.3rem; margin: 2em 0 .6em; }
.prose--legal ul { color: var(--text-dim); padding-left: 1.3em; }
.prose--legal li { margin-bottom: .5em; }

/* ---------- Games page ---------- */
.game-list { padding-bottom: clamp(56px, 8vw, 96px); display: grid; gap: 28px; }
.game {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.2fr; align-items: center;
  margin-bottom: 28px;
}
.game__art { position: relative; height: 340px; margin: 0 10px; }
.game__art .card--1 { left: 12%; top: 34px; transform: rotate(-7deg); }
.game__art .card--2 { left: 42%; top: 10px; transform: rotate(6deg); z-index: 2; }
.game__copy { padding: 40px 40px 40px 20px; }
.game__copy--center { text-align: center; padding: 48px 32px; }
.game__copy p { color: var(--text-dim); }
.game__logo { display: block; margin-bottom: 14px; }
.game__status {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 1em;
}
.game__status--live { color: #58d68d; }
.game__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.3em; }
.game--teaser { grid-template-columns: 1fr; border-style: dashed; background: transparent; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raise); }
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 36px 20px;
}
.site-footer__brand p { color: var(--text-dim); font-size: .9rem; margin: 10px 0 0; }
.site-footer__links {
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--text); }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  color: var(--text-dim); display: inline-flex;
  transition: color .15s ease, transform .15s ease;
}
.footer-social a:hover { color: var(--orange); transform: translateY(-2px); }
@media (max-width: 860px) {
  .site-footer__links { align-items: flex-start; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span {
    width: 24px; height: 2.5px; border-radius: 2px;
    background: var(--text); display: block;
  }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--bg-raise); border-bottom: 1px solid var(--line);
    padding: 18px 20px 22px; gap: 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a[aria-current="page"]::after { display: none; }

  .featured__inner { grid-template-columns: 1fr; gap: 28px; }
  .featured__art { height: 300px; max-width: 480px; margin: 0 auto; width: 100%; }
  .featured__art .card { width: 150px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .game { grid-template-columns: 1fr; }
  .game__art { height: 280px; max-width: 440px; margin: 20px auto 0; width: 100%; }
  .game__art .card { width: 150px; }
  .game__copy { padding: 28px; }
}
