:root{
  --navy:#16194a; --navy2:#0b0d2e; --ink:#1c2156; --muted:#55597a;
  --gold:#f8b23a; --teal:#127a93; --head:"Nunito",system-ui,sans-serif; --body:"Inter",system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--body);color:var(--ink);background:#FFF6E8;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-family:var(--head);font-weight:800}

/* ===== HERO ===== */
/* Layers: 1) real space (video, star canvas until it arrives) 2) people + book/tablet 3) text */
.hero{position:relative;overflow:hidden;color:#fff;display:flex;flex-direction:column;min-height:100vh;min-height:100svh;
  background:radial-gradient(900px 600px at 72% 35%,#10205f 0%,transparent 62%),
             linear-gradient(180deg,#050a24 0%,#071233 55%,#040819 100%)}
.layer-scene{position:absolute;inset:0;background:#050a24 url(../assets/space/space_poster.jpg?v=3) 100% 100%/cover no-repeat;pointer-events:none}
.space-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:100% 100%;opacity:0;transition:opacity .6s ease}
.space-video.ready{opacity:1}
.scene-people{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:100% 100%}
/* dark shade only behind the text, so the white headline stays readable */
.layer-scene::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,10,36,.55) 0%,rgba(5,10,36,0) 110px),linear-gradient(90deg,rgba(5,10,36,.82) 0%,rgba(5,10,36,.6) 22%,rgba(5,10,36,.15) 36%,rgba(5,10,36,0) 44%)}
/* photo darkens into deep blue at the bottom, then .blend turns the blue into cream */
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:45%;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(7,18,51,0) 0%,rgba(7,18,51,.25) 30%,rgba(7,18,51,.65) 60%,rgba(7,18,51,.92) 82%,#071233 100%)}
.blend{height:260px;background:linear-gradient(180deg,#071233 0%,#0f1b4a 20%,#36406e 42%,#7d7a98 62%,#cdbfc0 82%,#FFF6E8 100%)}
.nav{position:relative;z-index:3;display:flex;text-shadow:0 1px 8px rgba(0,0,0,.55);align-items:center;gap:32px;padding:20px clamp(16px,4vw,48px)}
.brand{display:flex;align-items:center;gap:12px;font-family:var(--head);font-weight:800;font-size:24px;letter-spacing:.06em}
.brand img{width:44px;height:44px;border-radius:50%}
.links{display:flex;gap:30px;margin-left:auto;font-size:15px;font-weight:500}
.links a{opacity:.88}.links a:hover{opacity:1}

.hero-in{position:relative;z-index:2;flex:1;display:flex;align-items:center;width:100%;padding:12px clamp(16px,4vw,48px) 48px}
.hero-text{max-width:500px;width:100%;container-type:inline-size}
h1{font-size:min(58px,9.6cqi);line-height:1.12;margin-bottom:20px;font-weight:800}
h1 span{display:block;white-space:nowrap}
h1 .grad{background:linear-gradient(90deg,#7fd8ff 0%,#b9a4ff 50%,#ff9bd2 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.lead{font-size:17px;line-height:1.55;max-width:470px;opacity:.92;margin-bottom:24px}
.feats{list-style:none;display:flex;flex-wrap:wrap;gap:14px;margin-bottom:28px}
.feats li{display:flex;flex-direction:column;align-items:center;gap:10px;width:110px;text-align:center;font-size:14px;font-weight:600;line-height:1.3}
.feats svg{width:56px;height:56px;filter:drop-shadow(0 6px 16px rgba(0,0,0,.45))}
.ctas{display:flex;flex-wrap:wrap;gap:16px}
.btn{display:inline-flex;align-items:center;gap:10px;padding:15px 28px;border-radius:999px;font-weight:600;font-size:15px;transition:transform .15s,box-shadow .15s}
.btn svg{width:20px;height:20px;flex:none}
.btn:hover{transform:translateY(-2px)}
.btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.btn-gold{background:linear-gradient(180deg,#ffd84a,#ffb21a);color:#1a1640;box-shadow:0 0 26px rgba(255,190,40,.45)}
.btn-cyan{background:rgba(8,24,64,.55);border:2px solid #3fd8ff;color:#fff;box-shadow:0 0 22px rgba(63,216,255,.35)}

/* ===== MORE THAN READING ===== */
.more{position:relative;max-width:1180px;margin:0 auto;padding:40px clamp(16px,4vw,48px) 96px}
.more-head{text-align:center;max-width:720px;margin:0 auto 56px}
h2{font-size:clamp(34px,4.4vw,52px);line-height:1.15;color:var(--ink);margin-bottom:20px}
.underline{display:inline-block;position:relative;padding-bottom:6px}
.underline::after{content:"";position:absolute;left:18%;right:12%;bottom:-4px;height:6px;border-radius:6px;background:linear-gradient(90deg,#FFB64E,#FF8A3D)}
.more-head p{font-size:18px;line-height:1.6;color:var(--muted)}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{position:relative;background:#fff;border-radius:22px;padding:28px 26px 30px;box-shadow:0 10px 30px rgba(120,80,30,.08);border:2px solid transparent}
.hl-gold{border-color:#ffb38a;background:#fff}
.hl-blue{border-color:#ff9ccc;background:#fff}
.hl-purple{border-color:#7fdcd4;background:#fff}
.ico{width:84px;height:84px;margin-bottom:22px}
.ico svg{width:84px;height:84px;display:block;filter:drop-shadow(0 8px 14px rgba(20,24,70,.25))}
.card h3{font-size:22px;margin-bottom:12px;color:var(--ink)}
.card p{font-size:15px;line-height:1.6;color:var(--muted)}
.badge{position:absolute;top:24px;right:22px;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:500}
.badge-real{background:linear-gradient(90deg,#2fd3c6,#27b8d8);color:#fff;font-weight:700;letter-spacing:.06em}
.badge-soon{background:#dff3f6;color:#1d6b7a}
.badge-planned{background:#ece5fb;color:#5b3fa8}
.badge-dev{background:#e1f4ea;color:#23704a}

.foot{text-align:center;padding:32px 16px 40px;font-size:13px;color:#8a8daa;display:grid;gap:6px;justify-items:center}
.foot .credit{max-width:720px;font-size:12px;line-height:1.5}
.foot .copy{margin-top:8px}

/* ===== RESPONSIVE ===== */
@media (max-width:1000px){
  /* same composition as desktop: the photo stays full width behind the text, the family shows under the buttons */
  .links{display:none}
  .hero-in{align-items:flex-start;padding-top:20px;padding-bottom:max(300px,40svh)}
  .layer-scene{inset:0;background-position:72% 100%}
  .scene-people,.space-video{object-position:72% 100%}
  .layer-scene::after{background:linear-gradient(180deg,rgba(7,18,51,.8) 0%,rgba(7,18,51,.35) 30%,rgba(7,18,51,0) 48%),linear-gradient(90deg,rgba(7,18,51,.85) 0%,rgba(7,18,51,.55) 30%,rgba(7,18,51,0) 60%)}
  .hero-text .lead,.hero-text .feats{text-shadow:0 2px 10px rgba(0,0,0,.7)}
  .hero::after{height:22%}
  .blend{height:180px}
  .cards{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .brand{font-size:18px}.brand img{width:36px;height:36px}
  /* phone: same logic as desktop - the photo sits behind the text, the family shows under the buttons */
  .hero{min-height:0;background:#071233}
  .layer-scene{top:0;bottom:0;height:auto;background-color:#071233;background-position:52% 100%}
  .scene-people,.space-video{object-position:52% 100%}
  .layer-scene::after{background:linear-gradient(180deg,rgba(7,18,51,.75) 0%,rgba(7,18,51,.55) 35%,rgba(7,18,51,.2) 58%,rgba(7,18,51,0) 68%,rgba(7,18,51,0) 90%,#071233 100%)}
  .hero::after{display:none}
  .hero-in{padding-top:12px;padding-bottom:88vw}
  .hero-text .lead,.hero-text .feats{text-shadow:0 2px 10px rgba(0,0,0,.7)}
  .ctas{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .ctas .btn{padding:13px 10px;font-size:14px;gap:6px}
  .ctas .btn svg{width:16px;height:16px}
  .lead{margin-bottom:20px}
  .feats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
  .feats li{width:auto;font-size:12px}
  .feats svg{width:52px;height:52px}
  .cards{grid-template-columns:1fr}
  .btn{justify-content:center}
  .more{padding-top:8px;padding-bottom:64px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.space-video{display:none}}

/* same layout for EN and UA: the other language sits invisibly in the same cell */
.tx{display:inline-grid}
.tx>span{grid-area:1/1}
.tx>.ghost{visibility:hidden}
p>.tx,h3>.tx,li>span>.tx{display:grid}
h1 .tx>span,h1 .tx{display:inline-grid;white-space:nowrap}
.btn .tx,.feats .tx{justify-items:center}
