:root {
  --ink: #0c2036;
  --ink-2: #18334f;
  --muted: #63758a;
  --blue: #0a72c7;
  --blue-2: #43a2ff;
  --navy: #04172d;
  --navy-2: #06254d;
  --green: #7bd544;
  --surface: #ffffff;
  --soft: #eef6ff;
  --line: #dce8f5;
  --shadow: 0 20px 60px rgba(7, 24, 48, 0.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: #f7fbff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: -999px; top: 10px; padding: 10px 14px; background: var(--surface); color: var(--ink); border-radius: 10px; z-index: 50; }
.skip-link:focus { left: 10px; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(4, 23, 45, 0.96); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.brand-mark { width: 54px; height: 54px; flex: 0 0 54px; }
.brand strong { display: block; font-size: 1.08rem; line-height: 1.1; }
.brand small { display: block; margin-top: 4px; color: #9fc5f9; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; color: #fff; font-weight: 800; }
.site-nav a { opacity: .9; transition: opacity .2s ease, color .2s ease; }
.site-nav a:hover { opacity: 1; color: var(--green); }
.menu-button { display: none; width: 44px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: transparent; padding: 8px; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: #fff; }

.hero { background: radial-gradient(circle at 78% 28%, rgba(18,134,224,.30), transparent 32%), linear-gradient(135deg, var(--navy), #073a74 58%, #05264e); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 86% 34%, rgba(255,255,255,.13), rgba(255,255,255,.13) 1px, transparent 2px, transparent 18px); opacity: .14; pointer-events: none; }
.hero-grid { min-height: 560px; position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 32px; padding: 58px 0 58px; }
.eyebrow { margin: 0 0 14px; color: #a7d3ff; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; }
.eyebrow.blue { color: var(--blue); }
.hero h1, .hero h2 { margin: 0; font-size: clamp(2.9rem, 5.65vw, 5.45rem); line-height: .95; letter-spacing: -.065em; }
.hero h2 { margin-top: 8px; color: var(--green); }
.lead { margin: 24px 0 20px; max-width: 620px; color: #e5f0ff; font-size: 1.13rem; line-height: 1.6; }
.hero-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; color: #fff; font-size: 1.02rem; }
.hero-list li { position: relative; padding-left: 36px; }
.hero-list li::before { content: ""; position: absolute; left: 0; top: -1px; width: 23px; height: 23px; border-radius: 50%; background: var(--green); }
.hero-list li::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 12px; border: solid #072045; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--green); color: #08284b; box-shadow: 0 14px 32px rgba(123,213,68,.28); }
.button.secondary { color: #fff; border: 1px solid rgba(255,255,255,.36); background: rgba(255,255,255,.05); }

.phone-stage { min-height: 455px; position: relative; }
.phone { position: absolute; color: #fff; text-decoration: none; cursor: pointer; width: 190px; height: 360px; border-radius: 38px; background: linear-gradient(160deg, #05162a, #0b3a70); border: 8px solid #17283d; box-shadow: 0 28px 70px rgba(0,0,0,.42); display: grid; place-items: center; text-align: center; padding: 34px 20px; transition: opacity .35s ease, transform .35s ease; }
.phone.is-changing { opacity: .4; transform: translateY(8px) scale(.98); }
.phone::before { content: ""; position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 70px; height: 17px; border-radius: 100px; background: #020a12; }
.phone img { width: 112px; height: 112px; object-fit: contain; border-radius: 24px; box-shadow: 0 12px 34px rgba(0,0,0,.2); background: #fff; }
.phone span { display: block; margin-top: 20px; color: #fff; font-weight: 900; font-size: 1.1rem; }
.phone-main { z-index: 3; left: 31%; top: 20px; width: 222px; height: 418px; }
.phone-left { z-index: 1; left: 2%; top: 66px; transform: rotate(-4deg); background: linear-gradient(160deg, #090b10, #061326); }
.phone-left.is-changing { transform: rotate(-4deg) translateY(8px) scale(.98); }
.phone-right { z-index: 2; right: 6%; top: 76px; transform: rotate(4deg); background: linear-gradient(160deg, #035f91, #0d86c2); }
.phone-right.is-changing { transform: rotate(4deg) translateY(8px) scale(.98); }

.section { padding: 76px 0; background: #fff; }
.approach-grid { display: grid; grid-template-columns: .95fr 1.2fr; gap: 64px; align-items: start; }
.section h2, .approach h2, .founder h2, .cta h2, .ai-speed h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.04em; line-height: 1; }
.approach p, .founder p, .problem-grid p, .ai-speed p { color: var(--muted); line-height: 1.7; font-size: 1.05rem; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.principles article, .problem-grid article, .app-card { border: 1px solid var(--line); background: #fff; border-radius: 24px; padding: 26px; box-shadow: 0 14px 45px rgba(10,43,78,.08); }
.icon, .problem-grid span { width: 54px; height: 54px; display: inline-grid; place-items: center; border-radius: 16px; background: var(--soft); color: var(--blue); font-weight: 1000; font-size: 1rem; }
.principles h3, .problem-grid h3, .app-card h3 { margin: 18px 0 8px; font-size: 1.2rem; }

.ai-speed { background: radial-gradient(circle at 75% 28%, rgba(123,213,68,.2), transparent 25%), linear-gradient(135deg, #062042, #073f7d); color: #fff; padding: 70px 0; }
.ai-grid { display: grid; grid-template-columns: 1fr .75fr; gap: 44px; align-items: center; }
.ai-speed p { color: #dceaff; }
.ai-card { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); border-radius: 28px; padding: 30px; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.ai-card strong { display: block; color: var(--green); font-size: 1.6rem; margin-bottom: 12px; }
.ai-card span { color: #eaf4ff; line-height: 1.65; }

.apps, .problems { background: linear-gradient(180deg, #f7fbff, #ffffff); }
.section-heading { text-align: center; max-width: 820px; margin: 0 auto 38px; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading p { margin: 0 auto; color: var(--muted); line-height: 1.6; }
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.app-cards.five { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.app-card { text-align: center; }
.app-card img { width: 128px; height: 118px; margin: 0 auto 18px; border-radius: 24px; object-fit: contain; box-shadow: 0 16px 38px rgba(0,0,0,.12); background: #fff; }
.app-type { display: inline-flex; min-height: 28px; align-items: center; justify-content: center; padding: 5px 10px; margin: 0 0 10px; border-radius: 100px; background: var(--soft); color: var(--blue); font-weight: 900; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.app-card p:not(.app-type) { color: var(--muted); line-height: 1.55; min-height: 92px; font-size: .94rem; }
.app-card a { margin-top: 14px; display: inline-flex; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--blue); font-weight: 900; }

.founder { background: #eaf5ff; }
.founder-grid { display: grid; grid-template-columns: 180px 1fr 310px; gap: 34px; align-items: center; }
.founder-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 8px solid #fff; box-shadow: var(--shadow); }
.stats { display: grid; gap: 16px; border-left: 1px solid #cfe2f7; padding-left: 32px; }
.stats div { display: grid; gap: 2px; }
.stats strong { font-size: 2rem; color: var(--blue); }
.stats span { color: var(--ink-2); font-weight: 800; }
.compact { margin-bottom: 28px; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.cta { background: radial-gradient(circle at 20% 10%, rgba(60,159,255,.24), transparent 28%), linear-gradient(135deg, var(--navy), #07376e); color: #fff; padding: 50px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.cta p { color: #cfe2f7; margin: 0; }
.site-footer { background: #031224; color: #fff; padding: 46px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .65fr .75fr; gap: 34px; align-items: start; }
.footer-grid h3 { margin: 0 0 12px; color: #9fc5f9; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a, .footer-grid span { display: block; color: #dceaff; margin: 8px 0; }
.footer-brand .brand-mark { width: 48px; height: 48px; }
.copyright { text-align: center; color: #95aec8; margin: 34px 0 0; font-size: .9rem; }

.app-detail-hero { background: radial-gradient(circle at 80% 30%, rgba(67,162,255,.28), transparent 32%), linear-gradient(135deg, var(--navy), #073a74); color: #fff; padding: 76px 0; }
.app-detail-grid { display: grid; grid-template-columns: 170px 1fr; gap: 36px; align-items: center; }
.app-detail-logo { width: 150px; height: 150px; border-radius: 28px; object-fit: contain; background: #fff; padding: 10px; box-shadow: var(--shadow); }
.app-detail-hero h1 { margin: 0 0 12px; font-size: clamp(2.8rem, 6vw, 5.3rem); letter-spacing: -.06em; line-height: .95; }
.app-status { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: rgba(123,213,68,.16); color: var(--green); font-weight: 900; margin-bottom: 18px; }
.app-detail-body { padding: 70px 0; background: #fff; }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; }
.detail-card { border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: 0 14px 45px rgba(10,43,78,.08); }
.detail-card li { margin: 12px 0; color: var(--muted); line-height: 1.55; }
.detail-card p { color: var(--muted); line-height: 1.75; }

@media (min-width: 981px) and (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 20px; }
  .hero h1, .hero h2 { font-size: clamp(3.2rem, 5.4vw, 4.95rem); }
  .phone-stage { min-height: 420px; }
  .phone { width: 172px; height: 330px; }
  .phone-main { left: 29%; width: 205px; height: 390px; }
  .phone-right { right: 10%; }
  .phone img { width: 96px; height: 96px; }
  .app-cards.five { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .hero-grid, .approach-grid, .founder-grid, .footer-grid, .ai-grid, .detail-grid, .app-detail-grid { grid-template-columns: 1fr; }
  .phone-stage { min-height: 470px; }
  .phone-main { left: 28%; }
  .phone-left { left: 0; }
  .phone-right { right: 2%; }
  .app-cards, .app-cards.five, .problem-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .stats { border-left: 0; padding-left: 0; grid-template-columns: repeat(3, 1fr); }
  .cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 74px; }
  .site-nav { display: none; position: absolute; left: 14px; right: 14px; top: 74px; padding: 18px; border-radius: 18px; background: #061b36; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; }
  .site-nav.is-open { display: flex; }
  .menu-button { display: block; }
  .brand small { display: none; }
  .hero-grid { padding-top: 46px; min-height: auto; }
  .hero h1, .hero h2 { font-size: clamp(2.9rem, 15vw, 4.1rem); }
  .phone-stage { min-height: 345px; transform: scale(.82); transform-origin: top center; }
  .phone { width: 180px; height: 330px; }
  .phone-main { width: 205px; height: 370px; left: 23%; }
  .phone img { width: 96px; height: 96px; }
  .section { padding: 54px 0; }
  .stats { grid-template-columns: 1fr; }
  .app-detail-logo { width: 120px; height: 120px; }
}

.phone:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 6px;
}

.phone:hover {
  box-shadow: 0 34px 82px rgba(0,0,0,.48);
}

.phone-stage.is-paused .phone {
  transition-duration: .2s;
}


.app-card img[alt="ub-MakeIt logo"],
.phone img[alt="ub-MakeIt app logo"],
.app-detail-logo[alt="ub-MakeIt logo"] {
  object-fit: contain;
  background: #ffffff;
}

.app-card img[alt="ub-MakeIt logo"],
.phone img[alt="ub-MakeIt app logo"] {
  padding: 0;
}


.app-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.app-logo-link:hover {
  transform: translateY(-2px);
}

.app-logo-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 6px;
}

.detail-logo-link {
  display: inline-flex;
  width: fit-content;
  border-radius: 30px;
  transition: transform .2s ease;
}

.detail-logo-link:hover {
  transform: translateY(-2px);
}

.detail-logo-link:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 6px;
}


.principles article {
  position: relative;
  padding-left: 58px;
}

.principles article::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 31px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(123, 213, 68, .18);
}

.principles article h3 {
  margin-top: 0;
}


@media (prefers-reduced-motion: reduce) {
  .phone-stage.is-rotating,
  .phone.is-spinning {
    animation: none;
  }
}


/* True three-phone group carousel:
   left drops off, center moves left, right becomes center, and the next app enters from the right. */
.phone-stage {
  perspective: 1100px;
  transform-style: preserve-3d;
}

.phone-stage .phone {
  left: 50% !important;
  right: auto !important;
  top: 50% !important;
  width: 190px;
  height: 360px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateX(430px) rotate(7deg) scale(.86);
  transition:
    transform 1.15s ease-in-out,
    opacity 1.15s ease-in-out,
    width 1.15s ease-in-out,
    height 1.15s ease-in-out,
    box-shadow .25s ease;
  will-change: transform, opacity, width, height;
}

.phone-stage .phone.slot-left {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  width: 190px;
  height: 360px;
  transform: translate(-50%, -50%) translateX(-225px) rotate(-4deg) scale(.95);
}

.phone-stage .phone.slot-center {
  opacity: 1;
  pointer-events: auto;
  z-index: 4;
  width: 222px;
  height: 418px;
  transform: translate(-50%, -50%) translateX(0) rotate(0deg) scale(1);
}

.phone-stage .phone.slot-right {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  width: 190px;
  height: 360px;
  transform: translate(-50%, -50%) translateX(225px) rotate(4deg) scale(.95);
}

.phone-stage .phone.slot-next {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  width: 190px;
  height: 360px;
  transform: translate(-50%, -50%) translateX(450px) rotate(7deg) scale(.86);
}

.phone-stage .phone.slot-exit {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  width: 190px;
  height: 360px;
  transform: translate(-50%, -50%) translateX(-450px) rotate(-7deg) scale(.86);
}

.phone-stage.is-paused .phone {
  transition-duration: .25s;
}

@media (min-width: 981px) and (max-width: 1180px) {
  .phone-stage .phone.slot-left {
    transform: translate(-50%, -50%) translateX(-195px) rotate(-4deg) scale(.92);
  }

  .phone-stage .phone.slot-right {
    transform: translate(-50%, -50%) translateX(195px) rotate(4deg) scale(.92);
  }

  .phone-stage .phone.slot-next {
    transform: translate(-50%, -50%) translateX(385px) rotate(7deg) scale(.82);
  }

  .phone-stage .phone.slot-exit {
    transform: translate(-50%, -50%) translateX(-385px) rotate(-7deg) scale(.82);
  }
}

@media (max-width: 720px) {
  .phone-stage .phone.slot-left {
    transform: translate(-50%, -50%) translateX(-165px) rotate(-4deg) scale(.88);
  }

  .phone-stage .phone.slot-center {
    transform: translate(-50%, -50%) translateX(0) rotate(0deg) scale(.94);
  }

  .phone-stage .phone.slot-right {
    transform: translate(-50%, -50%) translateX(165px) rotate(4deg) scale(.88);
  }

  .phone-stage .phone.slot-next {
    transform: translate(-50%, -50%) translateX(315px) rotate(7deg) scale(.78);
  }

  .phone-stage .phone.slot-exit {
    transform: translate(-50%, -50%) translateX(-315px) rotate(-7deg) scale(.78);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-stage .phone {
    transition: opacity .2s ease;
  }
}


.app-card {
  scroll-margin-top: 110px;
}

.app-card:target {
  border-color: rgba(123, 213, 68, .95);
  box-shadow: 0 24px 70px rgba(123, 213, 68, .20);
}


.founder .eyebrow {
  text-transform: none;
  letter-spacing: 0;
}


.apps .app-cards {
  margin-top: 0;
}


.hero-copy .hero-list {
  margin-bottom: 0;
}


/* CO byline casing override */
.brand small {
  text-transform: none;
  letter-spacing: 0;
}
