:root {
  --cream: #f4ece0;
  --paper: #fbf6ee;
  --ink: #2b1d17;
  --muted: #6e5a4e;
  --red: #a8302a;
  --red-dark: #82211c;
  --green: #24503a;
  --night: #121a2e;
  --radius: 22px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--red); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 19px var(--serif); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav a { color: #fff; opacity: .85; text-decoration: none; margin-left: 20px; font-size: 15px; }
.top nav a:hover { opacity: 1; }
.page .top { position: static; background: var(--night); }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff; background: var(--night); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,14,28,.7) 0%, rgba(10,14,28,.25) 55%, rgba(10,14,28,0) 80%),
              linear-gradient(180deg, rgba(10,14,28,.5) 0%, rgba(10,14,28,0) 25%, rgba(10,14,28,.85) 100%); }
.hero h1, .hero p.lead { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 72px; }
.hero h1 { font: 700 clamp(44px, 8vw, 84px)/1.02 var(--serif); margin: 0 0 14px; letter-spacing: -.5px; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); max-width: 560px; margin: 0 0 28px; opacity: .92; }
.badge { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 14px; border: 1px solid rgba(255,255,255,.25); font-weight: 600; }
.badge small { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1.1; }
.badge span { font-size: 19px; line-height: 1.1; }
.badge svg { width: 26px; height: 26px; fill: #fff; }
.note { margin-top: 12px; font-size: 14px; opacity: .75; }

/* Sections */
section { padding: 88px 0; }
h2 { font: 700 clamp(30px, 4.5vw, 44px)/1.1 var(--serif); margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 620px; margin: 0 0 40px; font-size: 18px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px rgba(60,30,20,.06); }
.card .ico { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.card h3 { font: 600 20px var(--serif); margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.scenes { color: #fff; position: relative;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(90, 120, 200, .28), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(168, 48, 42, .22), transparent 70%),
    radial-gradient(600px 400px at 50% 50%, rgba(240, 179, 90, .07), transparent 70%),
    linear-gradient(180deg, #0b1020 0%, #16203c 45%, #0e1528 100%); }
.scenes .sub { color: rgba(255,255,255,.7); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: #000; }
.gallery img { aspect-ratio: 9 / 8; object-fit: cover; width: 100%; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; font: 600 18px var(--serif);
  background: linear-gradient(transparent, rgba(0,0,0,.65)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(60,30,20,.18); }
.split ul { padding-left: 20px; color: var(--muted); }
.split li { margin: 6px 0; }

.cta { text-align: center; background: var(--red); color: #fff; }
.cta h2 { color: #fff; }
.cta .sub { color: rgba(255,255,255,.85); margin-left: auto; margin-right: auto; }
.cta img.icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 22px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Text pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font: 700 42px/1.1 var(--serif); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 26px; margin: 36px 0 8px; }
.doc p, .doc li { color: #3f2f27; }
details { background: var(--paper); border-radius: 16px; padding: 16px 20px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; }

@media (max-width: 960px) and (min-width: 761px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .top nav a { margin-left: 14px; }
  .top nav a.hide-sm { display: none; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .features { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { min-height: 88vh; }
}

/* ---- Lively bits ---- */
.hero { overflow: hidden; }
.hero .bg { position: absolute; inset: 0; overflow: hidden; animation: drift 40s ease-in-out infinite alternate; }
.hero .painting { position: absolute; }
.hero .painting img { width: 100%; height: 100%; display: block; }
.hero .lights { position: absolute; inset: 0; }
.hero .lights i { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); background: var(--c);
  box-shadow: 0 0 6px 2px var(--c), 0 0 16px 4px rgba(255, 190, 90, .45); opacity: .25;
  animation: blink 3s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes blink { 0%, 100% { opacity: .15; } 45% { opacity: 1; } 60% { opacity: .9; } }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
/* Snow falls over the whole page (fixed to the window, never blocks clicks). */
#snow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 40; pointer-events: none; }
.hero::after { z-index: 0; }
.hero .wrap { z-index: 2; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.hero h1, .hero p.lead, .hero .badge, .hero .note, .hero-icon { opacity: 0; animation-fill-mode: both; }
.hero-icon { animation: rise .9s .1s ease-out both, bob 5s 1.2s ease-in-out infinite; }
.hero h1 { animation: rise .9s .25s ease-out both; }
.hero p.lead { animation: rise .9s .4s ease-out both; }
.hero .badge { animation: rise .9s .55s ease-out both; }
.hero .note { animation: rise .9s .7s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.badge { transition: transform .25s ease, box-shadow .25s ease; }
.badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.35); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.features .card:nth-child(3n+2), .gallery figure:nth-child(3n+2) { transition-delay: .08s; }
.features .card:nth-child(3n), .gallery figure:nth-child(3n) { transition-delay: .16s; }
.card { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.card.in:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px rgba(60,30,20,.12); }
.card .ico { display: inline-block; transition: transform .4s ease; }
.card:hover .ico { transform: scale(1.2) rotate(-8deg); }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.platforms li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px);
  padding: 6px 14px; border-radius: 999px; font-size: 14px; }

/* Widgets */
.widgets-section { background: linear-gradient(180deg, var(--cream), #eadfcd); overflow: hidden; }
.widget-board { display: grid; grid-template-columns: 300px 300px; grid-template-rows: auto auto; gap: 22px;
  justify-content: center; align-items: start; }
.widget { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 16px 40px rgba(40,20,10,.22); color: #fff; }
.widget img { width: 100%; height: 100%; object-fit: cover; }
.widget .count { position: absolute; left: 16px; bottom: 14px; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.widget .count b { display: block; font: 700 40px var(--serif); }
.widget .count span { font-size: 13px; font-weight: 600; opacity: .95; }
.widget.large { grid-row: span 2; aspect-ratio: 1; }
.widget.small { aspect-ratio: 1; width: 140px; }
.widget.medium { aspect-ratio: 2.13; grid-column: 1 / span 2; }
.smalls { display: flex; gap: 20px; }
.widget .radio { position: absolute; right: 14px; bottom: 14px; background: rgba(168,48,42,.92); padding: 8px 14px;
  border-radius: 999px; font-size: 13px; font-weight: 600; }
.float { animation: float 6s ease-in-out infinite; }
.float.d1 { animation-delay: -2s; } .float.d2 { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.widget-copy ul { padding-left: 20px; color: var(--muted); }

/* Screens */
.phones { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.phone { width: 250px; border-radius: 42px; padding: 10px; background: #111; box-shadow: 0 24px 50px rgba(40,20,10,.25); }
.phone img { border-radius: 33px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; background: #222; }
.phone:nth-child(2) { transform: translateY(-24px); }
.screens-section.empty { display: none; }

/* FAQ */
.faq details { transition: background .3s ease; }
.faq details[open] { background: #fff; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--red); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .wrap { max-width: 800px; }

@media (max-width: 760px) {
  .widget-board { grid-template-columns: 1fr; }
  .widget.large { grid-row: auto; }
  .widget.medium { grid-column: auto; }
  .phone { width: 200px; }
  .phone:nth-child(2) { transform: none; }
  .hero-icon { width: 76px; height: 76px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero h1, .hero p.lead, .hero .badge, .hero .note, .hero-icon { opacity: 1 !important; transform: none !important; }
  #snow { display: none; }
}
.widget.small .count { left: 12px; bottom: 10px; }
.widget.small .count b { font-size: 28px; }
.widget.small .count span { font-size: 11px; }
