/* =============================================
   Y1 Game — Core UI System
   Domain: https://y1game.tech/
   ============================================= */

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

:root {
  --ink:        #120608;
  --surface-0:  #180a0c;
  --surface-1:  #1e0d10;
  --surface-2:  #261114;
  --surface-3:  #33171b;
  --line:       #3a1c20;
  --line-soft:  #4d262b;

  --brand:      #ff4d57;
  --brand-lt:   #ff8f94;
  --brand-dk:   #d0202b;
  --go:         #f4131f;
  --go-lt:      #ff5a63;
  --go-dk:      #c20d17;
  --gold:       #ff8f94;
  --rose:       #ffc2c6;

  --text:       #f8edee;
  --text-mid:   #c3a8ac;
  --text-dim:   #90767a;
  --white:      #ffffff;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --sh-sm: 0 2px 10px rgba(6, 2, 3, .5);
  --sh-md: 0 12px 34px rgba(6, 2, 3, .55);
  --sh-lg: 0 26px 70px rgba(6, 2, 3, .68);
  --glow-brand: 0 10px 34px rgba(255, 77, 87, .34);
  --glow-go: 0 10px 34px rgba(244, 19, 31, .32);

  --ease: .22s cubic-bezier(.4, 0, .2, 1);
  --head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 620px at 88% -6%, rgba(122, 16, 30, .30), transparent 62%),
    radial-gradient(760px 560px at 4% 8%, rgba(100, 12, 24, .22), transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(108, 14, 26, .16), transparent 66%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

html, body { overflow-x: hidden; max-width: 100vw; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }
ul, ol { list-style: none; }

a {
  color: var(--brand-lt);
  text-decoration: none;
  transition: color var(--ease);
}
a:hover { color: var(--white); }

::selection { background: rgba(255, 77, 87, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-lt);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 900px; }

section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.slab {
  background: linear-gradient(180deg, rgba(30, 13, 16, .86), rgba(24, 10, 12, .86));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--head);
  font-weight: 700;
  color: var(--white);
  line-height: 1.22;
  letter-spacing: -.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 77, 87, .1);
  border: 1px solid rgba(255, 77, 87, .28);
  color: var(--brand-lt);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-lt);
  box-shadow: 0 0 0 4px rgba(255, 77, 87, .18);
}

.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
}
.section-title span {
  background: linear-gradient(96deg, var(--brand-lt), var(--go-lt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.78;
  margin-top: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(120deg, var(--go-lt), var(--go-dk));
  border-color: rgba(255, 143, 148, .55);
  color: var(--white);
  box-shadow: var(--glow-go);
}
.btn-primary:hover {
  background: linear-gradient(120deg, #ff6a72, var(--go));
  color: var(--white);
  box-shadow: 0 16px 40px rgba(244, 19, 31, .48);
}

.btn-brand {
  background: linear-gradient(120deg, var(--brand), var(--brand-dk));
  border-color: rgba(255, 143, 148, .6);
  color: var(--white);
  box-shadow: var(--glow-brand);
}
.btn-brand:hover {
  background: linear-gradient(120deg, var(--brand-lt), var(--brand));
  color: var(--white);
  box-shadow: 0 16px 40px rgba(255, 77, 87, .46);
}

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-soft);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--brand);
  color: var(--white);
}

.btn-line {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--text-mid);
}
.btn-line:hover { border-color: var(--brand-lt); color: var(--white); }

.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-sm { padding: 10px 18px; font-size: .84rem; }
.btn-block { width: 100%; }

/* ---------- Chips, pills, tags ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--text-mid);
  font-size: .81rem;
  font-weight: 500;
}
.chip svg { width: 15px; height: 15px; color: var(--go-lt); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tag-brand { background: rgba(255, 77, 87, .14); color: var(--brand-lt); border: 1px solid rgba(255, 77, 87, .3); }
.tag-go    { background: rgba(244, 19, 31, .14);  color: var(--go-lt);    border: 1px solid rgba(244, 19, 31, .3); }
.tag-gold  { background: rgba(255, 194, 198, .14);  color: var(--gold);     border: 1px solid rgba(255, 194, 198, .3); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(160deg, rgba(38, 17, 20, .92), rgba(30, 13, 16, .92));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-soft);
  box-shadow: var(--sh-md);
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  background: rgba(255, 77, 87, .12);
  border: 1px solid rgba(255, 77, 87, .26);
  color: var(--brand-lt);
  margin-bottom: 20px;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.is-go {
  background: rgba(244, 19, 31, .12);
  border-color: rgba(244, 19, 31, .26);
  color: var(--go-lt);
}
.icon-tile.is-gold {
  background: rgba(255, 194, 198, .12);
  border-color: rgba(255, 194, 198, .26);
  color: var(--gold);
}

/* ---------- Announcement strip ---------- */
.topbar {
  background: linear-gradient(90deg, rgba(255, 77, 87, .18), rgba(244, 19, 31, .14));
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  color: var(--text-mid);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 38px;
  flex-wrap: wrap;
  text-align: center;
}
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item strong { color: var(--text); font-weight: 600; }
.topbar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--go-lt);
  box-shadow: 0 0 0 4px rgba(244, 19, 31, .16);
}
.topbar-sep { width: 1px; height: 14px; background: var(--line-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(18, 6, 8, .78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.site-header.is-stuck {
  background: rgba(18, 6, 8, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--white);
}
.brand-mark {
  display: grid;
  place-items: center;
  padding: 3px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 77, 87, .5), rgba(244, 19, 31, .4));
}
.brand-mark img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--head);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.brand-text span {
  background: linear-gradient(96deg, var(--brand-lt), var(--go-lt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text em {
  font-family: var(--body);
  font-style: normal;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 3px;
}

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.nav-list a {
  display: block;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  color: var(--text-mid);
  font-size: .87rem;
  font-weight: 500;
  transition: color var(--ease), background var(--ease);
}
.nav-list a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.nav-list a.is-active,
.nav-list a.active {
  color: var(--white);
  background: linear-gradient(120deg, rgba(255, 77, 87, .3), rgba(244, 19, 31, .22));
  box-shadow: inset 0 0 0 1px rgba(255, 143, 148, .3);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-soft);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--ease), opacity var(--ease), width var(--ease);
}
.nav-toggle span:nth-child(1) { width: 100%; }
.nav-toggle span:nth-child(2) { width: 70%; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { width: 100%; transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.drawer.is-open { display: block; }
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 5, .72);
  backdrop-filter: blur(6px);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  padding: 26px 22px 32px;
  overflow-y: auto;
  background: linear-gradient(170deg, var(--surface-1), var(--ink));
  border-left: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  animation: drawerIn .26s cubic-bezier(.4, 0, .2, 1);
}
@keyframes drawerIn {
  from { transform: translateX(24px); opacity: .4; }
  to   { transform: none; opacity: 1; }
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-soft);
  color: var(--text);
  cursor: pointer;
}
.drawer-close svg { width: 17px; height: 17px; }
.drawer-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 22px 0 10px;
}
.drawer-links { display: grid; gap: 4px; }
.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
}
.drawer-links a::after {
  content: '›';
  color: var(--text-dim);
  font-size: 1.1rem;
}
.drawer-links a:hover,
.drawer-links a.is-active {
  background: rgba(255, 255, 255, .05);
  border-color: var(--line);
  color: var(--white);
}
.drawer-cta { margin-top: 26px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 58px 0 62px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 300px at 22% 0%, rgba(122, 16, 30, .26), transparent 70%),
    radial-gradient(520px 280px at 82% 100%, rgba(100, 12, 24, .18), transparent 70%),
    radial-gradient(420px 240px at 60% 10%, rgba(108, 14, 26, .12), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { max-width: 760px; }
.page-hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 800;
}
.page-hero h1 span {
  background: linear-gradient(96deg, var(--brand-lt), var(--go-lt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero-lead {
  color: var(--text-mid);
  font-size: 1.04rem;
  line-height: 1.78;
  margin-top: 16px;
  max-width: 620px;
}
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.crumbs a { color: var(--text-mid); }
.crumbs a:hover { color: var(--white); }

/* ---------- Prose ---------- */
.prose { max-width: 780px; }
.prose.mx-auto { margin-left: auto; margin-right: auto; }
.prose > h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 46px 0 14px;
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 {
  font-size: 1.08rem;
  color: var(--brand-lt);
  margin: 30px 0 10px;
}
.prose p {
  color: var(--text-mid);
  font-size: .98rem;
  line-height: 1.82;
  margin-bottom: 16px;
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }

.prose ul { margin: 0 0 20px; display: grid; gap: 10px; }
.prose ul li {
  position: relative;
  padding-left: 30px;
  color: var(--text-mid);
  font-size: .95rem;
  line-height: 1.7;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand-lt), var(--go-lt));
}

.prose ol {
  counter-reset: pl;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}
.prose ol li {
  counter-increment: pl;
  position: relative;
  padding-left: 40px;
  color: var(--text-mid);
  font-size: .95rem;
  line-height: 1.7;
}
.prose ol li::before {
  content: counter(pl);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 77, 87, .14);
  border: 1px solid rgba(255, 77, 87, .3);
  color: var(--brand-lt);
  font-family: var(--head);
  font-size: .76rem;
  font-weight: 700;
}

.callout {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  margin: 26px 0;
  border-radius: var(--r-md);
  background: rgba(255, 77, 87, .07);
  border: 1px solid rgba(255, 77, 87, .22);
  color: var(--text-mid);
  font-size: .93rem;
  line-height: 1.75;
}
.callout strong { color: var(--white); }
.callout-icon { flex-shrink: 0; color: var(--brand-lt); }
.callout-icon svg { width: 20px; height: 20px; }
.callout.is-go {
  background: rgba(244, 19, 31, .07);
  border-color: rgba(244, 19, 31, .22);
}
.callout.is-go .callout-icon { color: var(--go-lt); }
.callout.is-warn {
  background: rgba(255, 194, 198, .06);
  border-color: rgba(255, 194, 198, .2);
}
.callout.is-warn .callout-icon { color: var(--rose); }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--surface-1);
}
.data-table th,
.data-table td {
  padding: 15px 18px;
  text-align: left;
  font-size: .89rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--line);
}
.data-table th {
  color: var(--white);
  font-family: var(--head);
  font-weight: 600;
  background: rgba(255, 77, 87, .1);
}
.data-table tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-list.mx-auto { margin-left: auto; margin-right: auto; }

.faq-item {
  background: linear-gradient(160deg, rgba(38, 17, 20, .9), rgba(30, 13, 16, .9));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.faq-item.open {
  border-color: rgba(255, 77, 87, .42);
  box-shadow: var(--sh-sm);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--head);
  font-size: .96rem;
  font-weight: 600;
  color: var(--white);
}
.faq-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-soft);
  color: var(--text-mid);
  font-size: .8rem;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}
.faq-arrow svg { width: 13px; height: 13px; }
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: rgba(255, 77, 87, .16);
  border-color: rgba(255, 77, 87, .36);
  color: var(--brand-lt);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  color: var(--text-mid);
  font-size: .93rem;
  line-height: 1.78;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 340px; padding: 0 22px 21px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 84px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 50% 118%, rgba(112, 14, 26, .28), transparent 68%),
    radial-gradient(620px 300px at 50% -18%, rgba(122, 16, 30, .30), transparent 66%),
    radial-gradient(460px 240px at 50% 50%, rgba(108, 14, 26, .10), transparent 70%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  font-weight: 800;
}
.cta-band h2 span {
  background: linear-gradient(96deg, var(--brand-lt), var(--go-lt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-band p {
  max-width: 560px;
  margin: 16px auto 32px;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.78;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(38, 17, 20, .92), rgba(30, 13, 16, .92));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-soft);
  box-shadow: var(--sh-md);
}
.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-0);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px;
}
.blog-card h2, .blog-card h3 {
  font-size: 1.14rem;
  line-height: 1.4;
  margin: 15px 0 12px;
}
.blog-card h2 a, .blog-card h3 a { color: var(--white); }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--brand-lt); }
.blog-card p {
  color: var(--text-mid);
  font-size: .9rem;
  line-height: 1.72;
  margin-bottom: 18px;
}
.blog-meta, .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: .78rem;
  color: var(--text-dim);
}
.blog-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.blog-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: .87rem;
  font-weight: 600;
}

.article-body { padding: 68px 0 96px; }
.article-lead {
  font-size: 1.1rem !important;
  color: var(--text) !important;
  line-height: 1.8 !important;
}
.article-author {
  margin-top: 48px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line);
  color: var(--text-mid);
  font-size: .92rem;
}
.article-author strong { color: var(--white); }
.article-author p { margin: 8px 0 0 !important; }

.step-rows { display: grid; gap: 12px; margin: 24px 0 30px; }
.step-rows > div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.step-rows strong { color: var(--go-lt); font-family: var(--head); font-size: .9rem; }
.step-rows span { color: var(--text-mid); font-size: .9rem; line-height: 1.6; }

/* ---------- Forms ---------- */
.form-card {
  padding: 34px 32px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(38, 17, 20, .92), rgba(30, 13, 16, .92));
  border: 1px solid var(--line);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.form-group label span { color: var(--go-lt); }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: rgba(18, 6, 8, .7);
  border: 1px solid var(--line-soft);
  color: var(--white);
  font-family: var(--body);
  font-size: .92rem;
  resize: vertical;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 77, 87, .14);
}
.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-dim);
}

.info-card {
  padding: 26px 24px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.info-card h3 {
  font-size: .95rem;
  margin-bottom: 16px;
}
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.info-row:first-of-type { border-top: none; padding-top: 0; }
.info-row p { font-size: .89rem; color: var(--text-mid); line-height: 1.7; }
.info-row strong { color: var(--text); }
.info-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 77, 87, .12);
  border: 1px solid rgba(255, 77, 87, .26);
  color: var(--brand-lt);
}
.info-ico svg { width: 16px; height: 16px; }

/* ---------- Two column shell ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: start;
}
.split-center { align-items: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, rgba(24, 10, 12, .6), var(--ink));
  border-top: 1px solid var(--line);
  padding: 72px 0 92px;
}
.footer-note {
  padding: 18px 22px;
  margin-bottom: 52px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.72;
}
.footer-note strong { color: var(--text-mid); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
}
.footer-brand p {
  margin-top: 18px;
  max-width: 300px;
  color: var(--text-mid);
  font-size: .88rem;
  line-height: 1.75;
}
.footer-col h4 {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a {
  color: var(--text-mid);
  font-size: .89rem;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { font-size: .82rem; color: var(--text-dim); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal-links a { font-size: .82rem; color: var(--text-dim); }
.footer-legal-links a:hover { color: var(--text-mid); }

/* ---------- Sticky download bar + scroll top ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 880;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 22px;
  border-radius: var(--r-pill);
  background: rgba(24, 10, 12, .9);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh-lg);
}
.sticky-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.sticky-cta-text strong {
  font-family: var(--head);
  font-size: .9rem;
  color: var(--white);
}
.sticky-cta-text span { font-size: .74rem; color: var(--text-dim); }

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 870;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(30, 13, 16, .92);
  border: 1px solid var(--line-soft);
  color: var(--brand-lt);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease), border-color var(--ease);
}
.scroll-top svg { width: 18px; height: 18px; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); border-color: var(--brand); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1140px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { justify-content: space-between; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 1024px) {
  section { padding: 76px 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  section { padding: 58px 0; }
  .container { padding: 0 18px; }

  .brand-text { font-size: 1.05rem; }
  .brand-text em { display: none; }
  .nav-actions .btn { display: none; }
  .nav-inner { min-height: 66px; }

  .page-hero { padding: 34px 0 46px; }
  .page-hero-actions .btn { width: 100%; }

  .section-head { margin-bottom: 36px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-body { padding: 46px 0 68px; }

  .cta-band { padding: 62px 0; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  .step-rows > div { grid-template-columns: 1fr; gap: 6px; }
  .form-card { padding: 26px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .sticky-cta {
    left: 14px;
    right: 14px;
    bottom: 14px;
    transform: none;
    justify-content: space-between;
    padding: 10px 12px 10px 18px;
  }
  .scroll-top { bottom: 92px; right: 16px; width: 40px; height: 40px; }
  .site-footer { padding: 54px 0 104px; }
}

@media (max-width: 480px) {
  .topbar-inner { min-height: 34px; font-size: .72rem; }
  .topbar-sep { display: none; }
  .sticky-cta-text span { display: none; }
  .prose > h2 { font-size: 1.3rem; }
}
