:root {
  --ink: #072747;
  --muted: #61778f;
  --line: #dbe8f3;
  --blue: #2d73ee;
  --royal: #1767c7;
  --ice: #eaf7ff;
  --shadow: 0 22px 60px rgba(8, 39, 71, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Manrope, system-ui, -apple-system, sans-serif; background: #f7fbff; color: var(--ink); }
body { overflow-x: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.shell-home {
  min-height: 100svh;
  padding: 0 22px 22px;
  background:
    radial-gradient(circle at 15% 18%, rgba(134, 200, 255, .22), transparent 32%),
    radial-gradient(circle at 87% 22%, rgba(63, 130, 247, .13), transparent 35%),
    linear-gradient(180deg, #fbfdff, #f4f9ff);
}

.landing-header {
  height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1500px;
  margin: auto;
}

.bars {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.bars:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(8, 39, 71, .1); background: #fff; }
.bars:focus-visible { outline: 3px solid rgba(45, 115, 238, .28); outline-offset: 3px; }
.bars span { display: block; width: 18px; height: 2px; border-radius: 9px; background: var(--ink); }
.parent-brand { text-align: center; }
.parent-brand b { display: block; letter-spacing: .34em; font-size: 16px; }
.parent-brand span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.header-spacer { height: 1px; }

.product-selector {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(640px, calc(100% - 18px));
  margin: 0 auto 16px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 30px rgba(8, 39, 71, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.product-selector button {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  transition: background .2s ease, transform .2s ease;
}

.product-selector button:hover { background: #f0f7ff; transform: translateY(-1px); }
.product-selector button:focus-visible { outline: 3px solid rgba(45, 115, 238, .28); outline-offset: 2px; }
.product-selector img { width: 28px; height: 28px; object-fit: contain; }

.split-showcase {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.showcase-card {
  container-type: inline-size;
  position: relative;
  min-width: 0;
  min-height: 700px;
  padding: 42px 38px;
  display: grid;
  grid-template-columns: minmax(250px, 44%) minmax(260px, 56%);
  gap: 20px;
  overflow: hidden;
}

.unavia-card { background: radial-gradient(circle at 10% 15%, rgba(134, 200, 255, .28), transparent 35%), linear-gradient(145deg, #fff, #edf6ff); }
.usay-card { background: radial-gradient(circle at 88% 20%, rgba(63, 130, 247, .12), transparent 34%), linear-gradient(145deg, #fff, #f7fbff); }
.copy-block { position: relative; z-index: 3; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.product-lockup { display: flex; align-items: center; gap: 14px; min-height: 70px; }
.unavia-lockup img { width: 58px; }
.unavia-lockup strong { font-size: 32px; letter-spacing: -.03em; }
.usay-lockup img { height: 60px; width: auto; }

.copy-block h1 {
  margin: 22px 0 18px;
  max-width: 100%;
  font-size: clamp(2.65rem, 7cqi, 3.55rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.copy-block h1 em { font-style: normal; color: var(--blue); }
.copy-block p { margin: 0 0 22px; max-width: 390px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; max-width: 390px; margin-bottom: 26px; }
.feature-list span { padding: 9px 11px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.feature-list.two-col span { min-width: calc(50% - 4px); text-align: center; }

.launch-btn {
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--blue), var(--royal));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(45, 115, 238, .24);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  transition: transform .2s ease;
}

.launch-btn:hover { transform: translateY(-2px); }
.visual-block { position: relative; z-index: 1; min-width: 0; min-height: 100%; }
.phone-frame, .mini-shot { position: absolute; overflow: hidden; background: #111827; border: 7px solid #111827; border-radius: 34px; box-shadow: 0 26px 60px rgba(8, 39, 71, .18); }
.phone-frame img, .mini-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.unavia-visual .phone-frame img { transform: scale(1.015); }
.unavia-visual .phone-a { width: 215px; height: 465px; left: 16px; top: 50px; transform: rotate(-5deg); }
.unavia-visual .phone-b { width: 190px; height: 410px; right: 0; bottom: 50px; transform: rotate(4deg); }
.usay-visual .usay-main { width: 210px; height: 455px; left: 10px; top: 52px; transform: rotate(-2deg); }
.mini-shot { border: 3px solid #fff; border-radius: 22px; width: 155px; height: 138px; right: 0; background: #fff; }
.shot-1 { top: 44px; }
.shot-2 { top: 205px; right: 12px; }
.shot-3 { bottom: 48px; }

.ecosystem-ribbon {
  max-width: 1500px;
  margin: 14px auto 0;
  padding: 26px 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #082d59, #0d4d8d);
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  color: #fff;
  box-shadow: var(--shadow);
}

.eco-item { display: flex; align-items: center; gap: 14px; }
.eco-item img { width: 50px; height: 50px; object-fit: contain; }
.eco-item p { margin: 0; }
.eco-item b { display: block; font-size: 20px; }
.eco-item span, .eco-center span { display: block; margin-top: 4px; color: rgba(255, 255, 255, .72); font-size: 12px; line-height: 1.45; }
.eco-center { text-align: center; }
.eco-center b { font-size: 25px; line-height: 1.12; letter-spacing: -.03em; }

.company-hub { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.company-hub.open { opacity: 1; pointer-events: auto; }
.company-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(4, 22, 42, .48); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.company-dialog { position: relative; width: min(980px, 100%); max-height: min(760px, calc(100svh - 48px)); overflow: hidden; border: 1px solid rgba(255, 255, 255, .75); border-radius: 30px; background: rgba(248, 252, 255, .98); box-shadow: 0 38px 100px rgba(3, 24, 48, .3); transform: translateY(18px) scale(.985); transition: transform .3s cubic-bezier(.2, .75, .2, 1); }
.company-hub.open .company-dialog { transform: translateY(0) scale(1); }
.company-header { height: 96px; padding: 20px 24px 18px 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .86); }
.company-kicker { display: block; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .28em; }
.company-header h2 { margin: 4px 0 0; font-size: 29px; letter-spacing: -.04em; }
.company-close { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 30px; line-height: 1; }
.company-close:hover { background: #edf6ff; }
.company-body { min-height: 510px; display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.company-nav { padding: 18px; display: flex; flex-direction: column; gap: 7px; border-right: 1px solid var(--line); background: #f3f8fd; }
.company-nav button { width: 100%; padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--ink); text-align: left; }
.company-nav button:hover { background: rgba(255, 255, 255, .8); }
.company-nav button.active { border-color: var(--line); background: #fff; box-shadow: 0 8px 22px rgba(8, 39, 71, .07); }
.company-nav span { font-size: 14px; font-weight: 800; }
.company-nav small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.company-content { min-width: 0; padding: 52px clamp(32px, 5vw, 68px); overflow-y: auto; }
.company-content article { animation: content-in .25s ease; }
.company-content h3 { max-width: 540px; margin: 18px 0 18px; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.company-content p { max-width: 610px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.status-pill { display: inline-flex; padding: 8px 11px; border-radius: 999px; background: #edf2f7; color: #547089; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status-pill.available { background: #e6f3ff; color: #1767c7; }
.company-content .coming-note { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 13px; line-height: 1.6; }
.coming-note b { color: var(--ink); }
@keyframes content-in { from { opacity: 0; transform: translateY(8px); } }

.product-stage { position: fixed; inset: 0; z-index: 100; background: #f7fbff; transform: translateX(105%); opacity: 0; pointer-events: none; transition: transform .48s cubic-bezier(.2, .75, .2, 1), opacity .3s ease; }
.product-stage.from-left { transform: translateX(-105%); }
.product-stage.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.stage-bar { height: 72px; padding: 10px 16px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; background: rgba(247, 251, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.back-btn, .open-new, .stage-switcher button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; font-weight: 800; }
.back-btn { justify-self: start; padding: 12px 16px; }
.open-new { justify-self: end; padding: 12px 16px; text-decoration: none; }
.stage-switcher { display: flex; gap: 8px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.stage-switcher button { border: 0; padding: 9px 14px; display: flex; align-items: center; gap: 8px; background: transparent; }
.stage-switcher button.active { background: #eef6ff; }
.stage-switcher img { width: 22px; height: 22px; object-fit: contain; }
.iframe-wrap { height: calc(100svh - 72px); overflow: hidden; background: #fff; }
.iframe-wrap iframe { width: 100%; height: 100%; border: 0; background: #fff; }

@media (max-width: 1260px) {
  .showcase-card { grid-template-columns: 1fr; min-height: 900px; }
  .copy-block h1 { max-width: 620px; font-size: clamp(3rem, 7cqi, 4.4rem); }
  .copy-block p, .feature-list { max-width: 560px; }
  .launch-btn { margin-top: 0; }
  .visual-block { min-height: 440px; margin-top: 18px; }
  .unavia-visual .phone-a, .usay-visual .usay-main { left: 16%; top: 0; }
  .unavia-visual .phone-b { right: 16%; bottom: 0; }
  .mini-shot { right: 10%; }
  .ecosystem-ribbon { grid-template-columns: 1fr; }
  .eco-center { text-align: left; }
}

@media (max-width: 760px) {
  .shell-home { padding: 0 10px 12px; }
  .landing-header { height: 78px; }
  .bars { width: 44px; height: 44px; }
  .parent-brand b { font-size: 13px; }
  .parent-brand span { font-size: 11px; }
  .product-selector { top: 6px; margin-bottom: 10px; }
  .product-selector button { padding: 11px 8px; font-size: 13px; }
  .product-selector img { width: 24px; height: 24px; }
  .split-showcase { grid-template-columns: 1fr; border-radius: 26px; gap: 1px; }
  .showcase-card { min-height: auto; padding: 26px 20px 22px; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .product-lockup { min-height: 58px; }
  .unavia-lockup img { width: 48px; }
  .unavia-lockup strong { font-size: 29px; }
  .usay-lockup img { height: 52px; }
  .copy-block h1 { max-width: 100%; font-size: clamp(2.55rem, 12.5cqi, 3.45rem); margin: 17px 0 16px; }
  .copy-block p { max-width: 33rem; font-size: 15px; }
  .feature-list { max-width: 100%; margin-bottom: 22px; }
  .feature-list.two-col span { min-width: auto; }
  .launch-btn { margin-top: 0; }
  .visual-block { min-height: 390px; margin-top: 30px; }
  .unavia-visual .phone-a { width: 165px; height: 356px; left: 3%; top: 8px; }
  .unavia-visual .phone-b { width: 150px; height: 322px; right: 3%; bottom: 0; }
  .usay-visual .usay-main { width: 160px; height: 347px; left: 3%; top: 8px; }
  .mini-shot { width: 122px; height: 105px; right: 0; border-radius: 18px; }
  .shot-1 { top: 4px; }
  .shot-2 { top: 122px; right: 8px; }
  .shot-3 { bottom: 0; }
  .ecosystem-ribbon { padding: 22px; }

  .company-hub { padding: 0; }
  .company-dialog { width: 100%; height: 100svh; max-height: none; border: 0; border-radius: 0; overflow-y: auto; }
  .company-header { position: sticky; top: 0; z-index: 2; height: 84px; padding: 16px 18px 14px 20px; }
  .company-header h2 { font-size: 25px; }
  .company-body { min-height: 0; display: block; }
  .company-nav { padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .company-nav button { min-height: 66px; padding: 11px 12px; display: block; }
  .company-nav span, .company-nav small { display: block; }
  .company-nav small { margin-top: 4px; }
  .company-content { padding: 34px 22px 60px; overflow: visible; scroll-margin-top: 84px; }
  .company-content h3 { font-size: clamp(2.45rem, 12vw, 3.35rem); }
  .company-content p { font-size: 15px; }

  .stage-bar { height: 64px; grid-template-columns: auto 1fr auto; padding: 8px; }
  .back-btn { font-size: 12px; padding: 10px 12px; }
  .stage-switcher { justify-self: center; }
  .stage-switcher button { font-size: 0; padding: 8px; }
  .stage-switcher img { width: 24px; height: 24px; }
  .open-new { font-size: 0; padding: 10px 12px; }
  .open-new::after { content: '↗'; font-size: 16px; }
  .iframe-wrap { height: calc(100svh - 64px); }
}

@media (max-width: 390px) {
  .parent-brand span { display: none; }
  .product-selector button span { font-size: 12px; }
  .showcase-card { padding-inline: 17px; }
  .copy-block h1 { font-size: 2.5rem; }
  .visual-block { min-height: 355px; }
  .unavia-visual .phone-a { width: 148px; height: 319px; }
  .unavia-visual .phone-b { width: 135px; height: 290px; }
  .usay-visual .usay-main { width: 145px; height: 314px; }
  .mini-shot { width: 108px; height: 94px; }
  .shot-2 { top: 111px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-stage, .launch-btn, .product-selector button, .company-hub, .company-dialog, .company-content article { transition: none; animation: none; scroll-behavior: auto; }
}
