/* ===== Simple Life Games: studio homepage ===== */
.home {
  --ink: #11131f; --muted: #5d6275; --line: #e6e7ec; --bg: #ffffff; --soft: #f4f5f8;
  --dark: #0c0d14; --dark-2: #151724; --on-dark: #e9eaf2; --on-dark-muted: #9a9fb5;
  --brand: #2a3bb8; --star: #ffcf4d;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--bg);
}
.home h1, .home h2, .home h3, .home h4 { font-family: var(--sans); letter-spacing: -.01em; }
.home p { max-width: none; }

/* ---------- header: transparent over the hero, solid once you scroll ---------- */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border: 0; color: #fff; transition: background .25s; }
.home .site-header::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent); pointer-events: none; transition: opacity .25s; }
.home .site-header.scrolled, .home .site-header.menu-open { background: var(--dark); }
.home .site-header.scrolled::before { opacity: 0; }
.home .nav { position: relative; height: 72px; }
.home .nav-links { gap: 8px; }
.home .nav-links a { font-weight: 500; font-size: .98rem; color: rgba(255, 255, 255, .78); padding: 8px 12px; position: relative; }
.home .nav-links a:hover, .home .nav-links a[aria-current="page"] { background: none; color: #fff; }
.home .nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--star); }
.home .menu-btn { background: none; box-shadow: none; }
.home .menu-btn span { background: #fff; height: 2px; margin: 5px 0; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 4px; font-weight: 600; font-size: 1rem; text-decoration: none; background: #fff; color: var(--ink); transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.cta:hover { background: var(--star); }
.cta-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.cta-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- hero carousel ---------- */
.stage { position: relative; height: min(100vh, 860px); min-height: 560px; background: var(--dark); color: #fff; overflow: hidden; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s, visibility 0s .8s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .8s; }
.slide > img, .slide picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 6, 14, .78) 0%, rgba(8, 6, 14, .35) 45%, transparent 70%), linear-gradient(0deg, rgba(8, 6, 14, .6), transparent 35%); }
.slide-copy { position: relative; z-index: 2; padding-top: 40px; }
.slide.is-on .slide-copy > * { animation: rise .7s both; }
.slide.is-on .slide-copy > :nth-child(2) { animation-delay: .08s; }
.slide.is-on .slide-copy > :nth-child(3) { animation-delay: .16s; }
.slide.is-on .slide-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.eyebrow { font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--star); }
.stage h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; margin-top: 16px; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); max-width: none; }
.stage .sub { font-size: 1.2rem; color: rgba(255, 255, 255, .85); margin-top: 18px; max-width: 34ch; }
.stage-ui { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 3; }
.pager { display: flex; gap: 10px; }
.pager button { width: 56px; height: 20px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; }
.pager i { display: block; width: 100%; height: 3px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.pager i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.pager [aria-selected="true"] i::after { animation: fill var(--dur, 7s) linear forwards; }
.stage.paused .pager [aria-selected="true"] i::after, .stage.static .pager [aria-selected="true"] i::after { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- section blocks ---------- */
.block { padding: 96px 0; }
.block-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.block-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; background: var(--brand); color: #fff; }
.tag-c { background: #5865f2; }

/* latest updates */
.news { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--soft); border-radius: 6px; overflow: hidden; }
.card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); }
.card figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .5s; }
.card:hover figure img { transform: scale(1.04); }
.card > div { padding: 16px 18px 20px; }
.card h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin-top: 10px; }
.card:hover h3 { color: var(--brand); }
.card-lg { grid-row: span 2; }
.card-lg figure { aspect-ratio: auto; flex: 1; min-height: 280px; }
.card-lg figure img { object-position: 72% 50%; }
.card-lg > div { padding: 24px 26px 26px; }
.card-lg h3 { font-size: 1.6rem; font-weight: 700; }
.card-lg p { color: var(--muted); margin-top: 8px; }
.card time { display: block; color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* our games */
.block-dark { background: var(--dark); color: var(--on-dark); }
.block-dark h2, .block-dark h3 { color: #fff; }
.product { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--dark-2); border-radius: 6px; overflow: hidden; }
.product-art { display: block; overflow: hidden; }
.product-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product-art:hover img { transform: scale(1.03); }
.product-info { padding: 44px 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.product-id { display: flex; align-items: center; gap: 16px; }
.product-id img { width: 64px; height: 64px; border-radius: 14px; }
.product-id h3 { font-size: 1.7rem; font-weight: 700; }
.product-id span { color: var(--on-dark-muted); font-size: .95rem; }
.product-info > p { color: var(--on-dark-muted); margin-top: 20px; line-height: 1.65; }
.product .actions { margin-top: 28px; }
.soon { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 22px 26px; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 6px; color: var(--on-dark-muted); }
.soon .tag { background: rgba(255, 255, 255, .1); }

/* about: brand band with a star pattern */
.about { position: relative; padding: 112px 0; color: #fff; overflow: hidden;
  background-color: #1a2280;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 200 200'%3E%3Cpath d='M100 24 124.4 77.5 182.8 84.2 139.4 124 151.1 181.6 100 152.7 48.9 181.6 60.6 124 17.2 84.2 75.6 77.5Z' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E"), radial-gradient(ellipse at 85% 0%, #3346d6 0%, transparent 55%);
}
.about-head { max-width: 760px; }
.about h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.08; margin-top: 14px; color: #fff; }
.about .sub { font-size: 1.15rem; color: rgba(255, 255, 255, .8); margin-top: 20px; max-width: 56ch; }
.pillars { list-style: none; padding: 0; margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: p; }
.pillars li { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 22px; counter-increment: p; }
.pillars li::before { content: "0" counter(p); display: block; font-weight: 600; color: var(--star); font-size: .9rem; letter-spacing: .1em; margin-bottom: 12px; }
.pillars h3 { font-size: 1.3rem; font-weight: 600; color: #fff; }
.pillars p { color: rgba(255, 255, 255, .75); margin-top: 10px; line-height: 1.6; }

/* ---------- footer ---------- */
.home .site-footer { background: var(--dark); color: var(--on-dark-muted); border: 0; padding: 64px 0 32px; font-size: .95rem; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.home .site-footer .brand { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s, color .15s; }
.social a:hover { background: var(--star); color: var(--ink); }
.social svg { width: 20px; height: 20px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0; }
.foot-cols h4 { font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot-cols ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: #fff; }
.home .copy-btn { font: inherit; font-size: .78rem; background: none; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .25); border-radius: 3px; padding: 1px 8px; }
.home .legal { margin-top: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); color: #6f7490; font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .news { grid-template-columns: 1fr 1fr; }
  .card-lg { grid-column: 1 / -1; grid-row: auto; }
  .card-lg figure { aspect-ratio: 1024 / 500; min-height: 0; }
  .product { grid-template-columns: 1fr; }
  .product-art img { aspect-ratio: 1024 / 500; }
  .product-info { padding: 32px 28px 36px; }
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .home .nav-links { background: var(--dark); border: 0; padding: 8px 20px 20px; }
  .home .nav-links a[aria-current="page"]::after { display: none; }
  .stage { height: 88svh; min-height: 520px; max-height: 760px; }
  .slide { align-items: flex-end; padding-bottom: 96px; }
  .slide::after { background: linear-gradient(0deg, rgba(8, 6, 14, .92) 0%, rgba(8, 6, 14, .5) 45%, rgba(8, 6, 14, .1) 75%); }
  .stage .sub { font-size: 1.05rem; }
  .actions .cta { flex: 1 1 auto; }
  .block { padding: 64px 0; }
  .news { grid-template-columns: 1fr; }
  .about { padding: 80px 0; }
  .foot-top { flex-direction: column; align-items: flex-start; }
}
.home .wrap { width: min(100% - 80px, var(--wrap)); }
@media (max-width: 720px) { .home .wrap { width: calc(100% - 32px); } }
.home section, .home footer { scroll-margin-top: 72px; }
