/* roarnode.com: Roar's home and download pages. */

:root {
  --bg: #070b0d;
  --panel: rgba(16, 22, 25, 0.74);
  --panel-solid: #11171a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #eef5f0;
  --soft: #c3d3c9;
  --muted: #93a89c;
  --green: #5fd96a;
  --lime: #b4f06a;
  --grad: linear-gradient(110deg, #c2f36e 0%, #66db6c 45%, #2fbf74 100%);
  --radius: 18px;
  --head: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: var(--body); color: var(--text); line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* The logo video's glows: teal top left, blue top, green bottom right. */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(760px 560px at 12% 10%, rgba(16, 122, 92, 0.5), transparent 70%),
    radial-gradient(680px 480px at 64% 0%, rgba(22, 82, 146, 0.48), transparent 70%),
    radial-gradient(820px 640px at 96% 90%, rgba(66, 134, 32, 0.36), transparent 70%),
    var(--bg); }
canvas.net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 11, 13, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; }
.brand .word { height: 21px; width: auto; }
.links { display: flex; gap: 6px; margin: 0 auto; }
.links a { text-decoration: none; color: var(--soft); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 10px; }
.links a:hover, .links a[aria-current] { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 14px; font: 650 16px/1.2 var(--body);
  text-decoration: none; color: var(--text); border: 1px solid transparent; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--grad); color: #06140b; box-shadow: 0 12px 32px -12px rgba(95, 217, 106, 0.6); }
.btn.primary:hover { box-shadow: 0 16px 40px -12px rgba(95, 217, 106, 0.8); }
.btn.ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line-strong); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn.small { padding: 10px 16px; font-size: 14px; border-radius: 12px; margin-left: auto; }
.btn.big { padding: 14px 24px 14px 20px; text-align: left; }
.btn.big svg { width: 26px; height: 26px; }
.btn.big b { display: block; font-size: 17px; }
.btn.big small { display: block; font-size: 13px; font-weight: 500; opacity: 0.72; margin-top: 2px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 64px 0 36px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 11px; border-radius: 999px; background: rgba(95, 217, 106, 0.1);
  border: 1px solid rgba(95, 217, 106, 0.28); color: #d3efd8; font-size: 14px; font-weight: 500; text-decoration: none; }
.pill:hover { background: rgba(95, 217, 106, 0.16); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(95, 217, 106, 0.18); }
h1 { font: 800 clamp(40px, 5.6vw, 66px)/1.03 var(--head); letter-spacing: -0.04em; margin: 22px 0 22px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--soft); max-width: 560px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.fine { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.fine a { color: #d9ecdf; }
/* the theme song (site.js) */
.theme-play { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); color: var(--soft); font: 600 13.5px var(--body); cursor: pointer; }
.theme-play:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.theme-play svg { width: 18px; height: 18px; }
.theme-play .when-on, .theme-play[aria-pressed="true"] .when-off { display: none; }
.theme-play[aria-pressed="true"] .when-on { display: block; }
.theme-play[aria-pressed="true"] { color: #fff; border-color: rgba(95, 217, 106, 0.5); }

/* the hero's network: Roar's icon with friends around it */
.orbit { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin-left: auto; }
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit .core { position: absolute; left: 50%; top: 50%; width: 34%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(95, 217, 106, 0.25)); }
.orbit .friend { animation: bob 6s ease-in-out infinite; transform-box: fill-box; }
.orbit .friend:nth-of-type(2n) { animation-duration: 7.5s; animation-delay: -2s; }
.orbit .friend:nth-of-type(3n) { animation-duration: 5.2s; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-7px); } }

/* the app */
.shot { position: relative; margin: 8px 0 0; perspective: 2000px; }
.shot::before { content: ""; position: absolute; inset: 10% 8% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(95, 217, 106, 0.3), transparent); filter: blur(30px); }
.shot img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line-strong);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.85); transform: rotateX(9deg) scale(0.97); transform-origin: 50% 0;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.shot.in img { transform: none; }
.caption { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* sections */
section.block { padding: 110px 0 0; }
h2 { font: 700 clamp(30px, 3.8vw, 46px)/1.08 var(--head); letter-spacing: -0.035em; margin: 0 0 14px; }
h2 .dim { color: var(--muted); }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); font-weight: 700; margin: 0 0 14px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card.wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.card h3 { font: 700 20px/1.25 var(--head); letter-spacing: -0.02em; margin: 16px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(95, 217, 106, 0.12); color: var(--lime); }
.card .ic svg { width: 22px; height: 22px; }
.card.wide h3 { font-size: 26px; }
.card.wide p { font-size: 16px; max-width: 520px; }
.relay { margin: auto 0 0; padding-top: 24px; }
.relay svg { width: 100%; height: auto; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { font-size: 13px; color: #d5ecdc; background: rgba(95, 217, 106, 0.1); border: 1px solid rgba(95, 217, 106, 0.22); padding: 5px 11px; border-radius: 999px; }

/* Discovery */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 36px; }
.server { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform 0.15s, border-color 0.15s; }
.server:hover { transform: translateY(-2px); border-color: rgba(95, 217, 106, 0.45); }
.server .banner { height: 96px; background: linear-gradient(135deg, #1f6b45, #10301f) center / cover; }
.server .body { padding: 0 18px 18px; display: flex; flex-direction: column; flex: 1; }
.server .sicon { width: 60px; height: 60px; border-radius: 18px; border: 4px solid var(--panel-solid); margin-top: -30px; background: #2fbf74;
  overflow: hidden; display: grid; place-items: center; font-weight: 800; color: #06140b; }
.server .sicon img { width: 100%; height: 100%; object-fit: cover; }
.server h3 { margin: 10px 0 4px; font-size: 17px; display: flex; align-items: center; gap: 6px; }
.server h3 .ok { color: var(--green); font-size: 15px; }
.server p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.server .meta { margin-top: auto; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.server .meta b { color: #06140b; background: var(--grad); padding: 6px 14px; border-radius: 10px; font-size: 13px; }

/* end */
.end { text-align: center; padding: 120px 0 100px; }
.end img { width: 88px; height: 88px; filter: drop-shadow(0 22px 44px rgba(95, 217, 106, 0.3)); }
.end h2 { margin-top: 22px; }
.end .lead { margin: 0 auto 30px; }
.end .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); background: rgba(7, 11, 13, 0.6); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: center; padding-top: 30px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
footer .brand .word { height: 17px; }
footer .tag { margin: 6px 0 0; }
footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
footer nav a { text-decoration: none; color: var(--soft); }
footer nav a:hover { color: #fff; }

/* download page */
.dl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 70px 0 30px; }
.platforms { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-shot { perspective: 1600px; }
.dl-shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 80px -20px rgba(95, 217, 106, 0.25); transform: rotateY(-12deg) rotateX(4deg); }
.files { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; max-width: 760px; }
.files a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.files a:hover { border-color: rgba(95, 217, 106, 0.45); }
.files b { display: block; font-weight: 600; }
.files small { color: var(--muted); font-size: 14px; }
.files .go { margin-left: auto; color: var(--lime); font-weight: 600; font-size: 14px; white-space: nowrap; }
.note { margin-top: 26px; padding: 16px 20px; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--soft); max-width: 760px; }
.note a { color: var(--lime); }

/* staff page */
.staff-hero { padding: 70px 0 10px; max-width: 720px; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding: 34px 0 110px; }
.muted-note { color: var(--muted); }
.member { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.member-top { height: 92px; background: linear-gradient(135deg, #2c8f5a, #14402c) center / cover; }
.member-body { padding: 0 20px 22px; }
.member-avatar { width: 84px; height: 84px; border-radius: 50%; border: 6px solid var(--panel-solid); margin-top: -42px; overflow: hidden;
  background: var(--grad); display: grid; place-items: center; font: 800 30px var(--head); color: #06140b; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font: 700 20px/1.2 var(--head); letter-spacing: -0.02em; margin: 12px 0 2px; }
.member-handle { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.member-role { display: inline-block; font-size: 13px; font-weight: 600; color: #dff5e4; background: rgba(95, 217, 106, 0.12);
  border: 1px solid rgba(95, 217, 106, 0.3); padding: 5px 12px; border-radius: 999px; }

@media (max-width: 960px) {
  .hero, .dl-hero { grid-template-columns: 1fr; padding-top: 44px; }
  .orbit { max-width: 320px; margin: 0 auto; order: -1; }
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; grid-row: auto; }
  .dl-shot img { transform: none; }
  section.block { padding-top: 80px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 62px; gap: 12px; }
  .links { display: none; }
  .brand .word { height: 18px; }
  .orbit { max-width: 240px; }
  .cta, .platforms { flex-direction: column; }
  .cta .btn, .platforms .btn { justify-content: center; }
  .end { padding: 90px 0 70px; }
  .shot img { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit .friend { animation: none; }
  .pulses { display: none; }
  .shot img { transform: none; transition: none; }
  .btn:hover, .server:hover { transform: none; }
}
