/* GLY Studio — palette drawn from the studio's app design language:
   a deep navy field with four translucent, stacked tiers. */
:root {
  --navy-1: #1a2e4a;
  --navy-2: #0b1628;
  --amber: #eda100;
  --green: #1baf7a;
  --blue: #2a78d6;
  --indigo: #4a3aa7;
  --accent: #1f6e49;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #0f1b2d;
  --muted: #55606e;
  --line: #e2e6ec;
  --link: #1f6e49;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1628;
    --surface: #12223a;
    --text: #eef2f7;
    --muted: #a7b2c2;
    --line: #22344f;
    --link: #3dbe78;
    --accent: #3dbe78;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, .wordmark {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--navy-2) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.wordmark { font-size: 19px; font-weight: 700; }
.wordmark span { font-weight: 500; opacity: 0.75; }
nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
nav a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-1) 0%, var(--navy-2) 100%);
  color: #fff;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding-top: 96px; padding-bottom: 104px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; color: #8fe0b8; margin: 0 0 14px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 0 0 20px; font-weight: 700; }
.hero p.lede { font-size: clamp(18px, 2vw, 21px); color: rgba(255,255,255,0.78); max-width: 34ch; margin: 0 0 32px; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: #3dbe78; color: #06221a; font-weight: 600; text-decoration: none;
}
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); margin-left: 8px; }
.tiers { width: 100%; max-width: 420px; justify-self: center; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.35)); }
.tiers polygon { mix-blend-mode: screen; opacity: 0.92; }
@media (prefers-reduced-motion: no-preference) {
  .tiers polygon { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .tiers polygon:nth-child(2) { animation-delay: .12s; }
  .tiers polygon:nth-child(3) { animation-delay: .24s; }
  .tiers polygon:nth-child(4) { animation-delay: .36s; }
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 0.92; } }

/* Sections */
section.block { padding: 80px 0; }
section.block h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 14px; }
.section-lede { color: var(--muted); max-width: 60ch; margin: 0 0 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c, var(--green)); }
.card h3 { margin: 6px 0 8px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); }

.band {
  background: linear-gradient(160deg, var(--navy-1), var(--navy-2)); color: #fff;
  border-radius: 24px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; color: rgba(255,255,255,0.75); }

/* Content pages */
.page-head { background: linear-gradient(160deg, var(--navy-1), var(--navy-2)); color: #fff; }
.page-head .wrap { padding-top: 64px; padding-bottom: 56px; }
.page-head h1 { font-size: clamp(34px, 5vw, 50px); margin: 0 0 8px; }
.page-head p { margin: 0; color: rgba(255,255,255,0.75); }
.prose { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose li { margin: 6px 0; }
.facts { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; color: var(--muted); font-weight: 500; }
.note { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .tiers { max-width: 260px; order: -1; }
  .cards { grid-template-columns: 1fr; }
  .band { padding: 32px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer ul { justify-content: flex-start; }
}
@media (max-width: 560px) {
  nav ul { gap: 14px; }
  nav a { font-size: 14px; }
  .nav-optional { display: none; }
  .btn.ghost { margin: 12px 0 0; }
}
