/* AlgoRack site: same palette and fonts as Glass Hand's "Modern Glass" theme. */
:root {
  --bg-center: #1b5e78;
  --bg-edge: #081526;
  --sheet: #12243a;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.18);
  --text: #f2f7fa;
  --text-soft: #a9c3d2;
  --gold: #f6be45;
  --gold-text: #1b1a17;
  --teal: #3dd6c6;
  --coral: #ff7a7a;
  --card: #fbfcfe;
  --ink: #18202e;
  --red: #e0384b;
  --radius: 22px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(ellipse 90% 60% at 50% 18%, var(--bg-center) 0%, #0f3550 45%, var(--bg-edge) 100%) fixed, var(--bg-edge);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--teal); }
a:hover { color: #7fe9de; }
img { max-width: 100%; display: block; }

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

/* Header */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(145deg, #2a7f99, #0f3550); border: 1px solid var(--panel-border);
  font: 900 20px/1 "Nunito", sans-serif; color: var(--gold);
}
.brand-name { font: 900 15px/1 "Nunito", sans-serif; letter-spacing: 0.32em; }
.nav { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--text-soft); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 40px 0 56px; text-align: center; }
.eyebrow { font: 800 13px/1 "Nunito", sans-serif; letter-spacing: 0.34em; color: var(--text-soft); text-transform: uppercase; }
h1, h2, h3 { font-family: "Nunito", sans-serif; font-weight: 900; line-height: 1.1; margin: 0; }
.hero h1 { font-size: clamp(44px, 9vw, 92px); margin: 14px 0 10px; letter-spacing: -0.01em; }
.hero .lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--text-soft); max-width: 620px; margin: 0 auto 30px; }

.fan { position: relative; height: 190px; margin: 6px auto 34px; width: 330px; max-width: 100%; }
.card {
  position: absolute; left: 50%; bottom: 0; width: 104px; height: 150px; margin-left: -52px;
  background: var(--card); border-radius: 12px; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  color: var(--ink); font: 900 30px/1 "Nunito", sans-serif; padding: 10px 12px; transform-origin: 50% 100%;
}
.card .s { display: block; font-size: 24px; margin-top: 4px; }
.card.red { color: var(--red); }
.card.c1 { transform: translateX(-112px) translateY(10px) rotate(-16deg); }
.card.c2 { transform: translateX(-56px) translateY(-2px) rotate(-8deg); }
.card.c3 { transform: translateY(-8px); }
.card.c4 { transform: translateX(56px) translateY(-2px) rotate(8deg); }
.card.c5 { transform: translateX(112px) translateY(10px) rotate(16deg); }
.card.trump { background: #fff7e3; }
.card.trump::after { content: "★"; position: absolute; right: 10px; bottom: 8px; color: var(--gold); font-size: 22px; }

.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 16px;
  font: 900 18px/1 "Nunito", sans-serif; text-decoration: none; border: 1px solid transparent;
}
.btn.primary { background: var(--gold); color: var(--gold-text); }
.btn.primary:hover { background: #ffcb5c; color: var(--gold-text); }
.btn.ghost { background: var(--panel); border-color: var(--panel-border); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.btn[aria-disabled="true"] { cursor: default; }
.soon { display: block; margin-top: 12px; font-size: 14px; color: var(--text-soft); }

/* Sections */
section { padding: 40px 0; }
.section-title { text-align: center; font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 10px; }
.section-lead { text-align: center; color: var(--text-soft); max-width: 640px; margin: 0 auto 32px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tile {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(10px);
}
.tile h3 { font-size: 21px; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--text-soft); font-size: 16px; }
.tile .icon { font-size: 26px; margin-bottom: 12px; display: block; }

.game {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
  background: var(--sheet); border: 1px solid var(--panel-border); border-radius: 28px; padding: 28px;
}
.game img { border-radius: 18px; width: 100%; }
.game .meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.game .meta img { width: 64px; height: 64px; border-radius: 16px; }
.game h3 { font-size: 30px; }
.game .tag { color: var(--text-soft); font-size: 15px; }
.game p { color: var(--text-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; padding: 0; list-style: none; }
.pills li { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }

/* Footer */
footer { padding: 40px 0 50px; color: var(--text-soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; border-top: 1px solid var(--panel-border); padding-top: 26px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-soft); }

/* Policy pages */
.doc { background: var(--sheet); border: 1px solid var(--panel-border); border-radius: 28px; padding: 36px 40px; margin: 10px auto 30px; max-width: 820px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 6px; }
.doc .updated { color: var(--text-soft); margin: 0 0 26px; font-size: 15px; }
.doc h2 { font-size: 23px; margin: 30px 0 10px; }
.doc p, .doc li { color: #d6e3eb; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.callout { background: rgba(61, 214, 198, 0.1); border: 1px solid rgba(61, 214, 198, 0.35); border-radius: 16px; padding: 16px 20px; margin: 18px 0; }

@media (max-width: 760px) {
  .nav { gap: 14px; font-size: 14px; }
  .brand-name { display: none; }
  .game { grid-template-columns: 1fr; padding: 20px; }
  .doc { padding: 26px 20px; border-radius: 22px; }
  .hero { padding-top: 20px; }
}

/* Studio home: games grid */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.game-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--sheet); border: 1px solid var(--panel-border); border-radius: 26px; overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
a.game-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.34); color: var(--text); }
.game-card .art { aspect-ratio: 1024 / 500; width: 100%; object-fit: cover; }
.game-card .body { padding: 20px 22px 22px; display: flex; gap: 14px; align-items: flex-start; }
.game-card .body img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.game-card h3 { font-size: 23px; margin-bottom: 4px; }
.game-card p { margin: 0; color: var(--text-soft); font-size: 15px; }
.badge { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(246, 190, 69, 0.15); color: var(--gold); border: 1px solid rgba(246, 190, 69, 0.4); }
.game-card.next { justify-content: center; align-items: center; text-align: center; padding: 34px 26px; border-style: dashed; background: var(--panel); min-height: 280px; }
.game-card.next .plus { font: 900 40px/1 "Nunito", sans-serif; color: var(--text-soft); margin-bottom: 10px; }
.platforms { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.platforms span { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.policy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.policy-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-border); text-decoration: none; color: var(--text); font-weight: 600; }
.policy-list a:hover { border-color: rgba(255, 255, 255, 0.34); color: var(--text); }
.policy-list img { width: 40px; height: 40px; border-radius: 10px; }

/* Small phones: shrink the hero fan so it never pushes the page sideways. */
@media (max-width: 480px) {
  .fan { transform: scale(0.74); transform-origin: 50% 100%; margin-top: -10px; margin-bottom: 20px; }
}
