:root {
  /* KamirUnify app palette */
  --bg: #0b0f14;
  --bg-soft: #10161d;
  --card: #141a22;
  --card-2: #1a212c;
  --line: #2a3442;
  --text: #eaf0f6;
  --muted: #9ca8b7;
  --accent: #ff8a3d;
  --success: #42b883;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 13% 6%, rgba(255, 138, 61, 0.15), transparent 27%),
    radial-gradient(circle at 88% 42%, rgba(255, 138, 61, 0.08), transparent 24%),
    linear-gradient(180deg, #0b0f14 0%, #0c1219 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  flex: 0 0 78px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand-logo {
  width: 25px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 7px 16px rgba(255, 50, 50, 0.17));
}

.brand-text {
  font-size: 1.22rem;
}

.hero {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  align-items: center;
  gap: clamp(34px, 5vw, 74px);
  padding: 18px 0 34px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffc39e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 138, 61, 0.12);
}

.hero h1 {
  max-width: 720px;
  margin: 12px 0 12px;
  font-size: clamp(3.35rem, 5.6vw, 5.55rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero-lead {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
  line-height: 1.72;
}

.hero-points {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 27px;
  color: #dbe3ed;
  font-size: 0.93rem;
  line-height: 1.5;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 138, 61, 0.10);
}


.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 16px;
}

.store-button {
  min-width: 172px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  background: #090d12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.store-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 138, 61, 0.42);
}

.store-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  fill: currentColor;
}

.store-button > span {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.store-button small {
  margin-bottom: 4px;
  color: #c5ced9;
  font-size: 0.64rem;
}

.store-button strong {
  font-size: 1rem;
}

.platform-note {
  margin: 8px 0 0;
  color: #7f8b98;
  font-size: 0.80rem;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(26px);
  pointer-events: none;
}

.glow-one {
  width: min(32vw, 390px);
  aspect-ratio: 1;
  top: 12%;
  right: 0;
  background: rgba(255, 138, 61, 0.14);
}

.glow-two {
  width: min(24vw, 280px);
  aspect-ratio: 1;
  bottom: 8%;
  left: 0;
  background: rgba(255, 255, 255, 0.055);
}

.phone {
  position: relative;
  z-index: 1;
  width: min(31vw, 350px);
  max-height: calc(100svh - 118px);
  aspect-ratio: 945 / 2048;
  padding: 10px;
  border-radius: 45px;
  background: linear-gradient(145deg, #303846, #090d13 45%, #212938);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  transform: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #0b0f14;
  padding: 14px 10px 12px;
}

.phone-screen-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #06090d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

@media (max-width: 1100px) {
  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.72fr);
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 5.6vw, 4.7rem);
  }

  .phone {
    width: min(31vw, 315px);
  }
}

@media (max-width: 760px) {
  .page-shell {
    min-height: 100dvh;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar {
    flex-basis: 62px;
  }

  .brand-logo {
    width: 21px;
    height: 32px;
  }

  .brand-text {
    font-size: 1.08rem;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 10px 0 14px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .eyebrow {
    font-size: 0.61rem;
  }

  .hero h1 {
    max-width: 540px;
    margin: 11px 0 10px;
    font-size: clamp(2.15rem, 10.2vw, 3.35rem);
    line-height: 0.98;
  }

  .hero-lead {
    max-width: 560px;
    font-size: 0.80rem;
    line-height: 1.48;
  }

  .hero-points {
    width: min(100%, 520px);
    margin-top: 13px;
    gap: 7px;
    text-align: left;
  }

  .hero-points li {
    padding-left: 23px;
    font-size: 0.77rem;
    line-height: 1.35;
  }

  .hero-points li::before {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.10);
  }


  .store-buttons {
    width: min(100%, 420px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .store-button {
    min-width: 0;
    min-height: 49px;
    justify-content: center;
    padding: 8px 10px;
  }

  .store-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .store-button small {
    font-size: 0.55rem;
  }

  .store-button strong {
    font-size: 0.82rem;
  }

  .platform-note {
    margin-top: 7px;
    font-size: 0.66rem;
  }

  .hero-visual {
    min-height: 0;
  }

  .phone {
    width: auto;
    height: min(31dvh, 280px);
    max-height: none;
    transform: none;
    padding: 7px;
    border-radius: 31px;
  }

  .phone-screen {
    border-radius: 25px;
    padding: 10px 7px 9px;
  }

  .phone-screen-inner {
    border-radius: 19px;
  }
}

@media (max-width: 760px) and (max-height: 730px) {
  .topbar {
    flex-basis: 54px;
  }

  .hero {
    gap: 8px;
    padding-top: 4px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9.1vw, 2.7rem);
    margin-block: 8px;
  }

  .hero-lead {
    font-size: 0.72rem;
  }

  .hero-points {
    margin-top: 9px;
    gap: 5px;
  }

  .hero-points li {
    font-size: 0.70rem;
  }


  .store-buttons {
    margin-top: 10px;
  }

  .platform-note {
    display: none;
  }

  .phone {
    height: min(25dvh, 205px);
  }

  .phone-screen {
    padding: 8px 6px 7px;
  }
}

@media (max-width: 390px) {
  .store-buttons {
    width: 100%;
  }

  .store-button {
    gap: 7px;
    padding-inline: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Download CTA is visually tied to the product preview. */
.visual-downloads {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.visual-downloads .store-buttons {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.visual-downloads .store-button {
  min-width: 0;
  width: 100%;
}

.visual-downloads .platform-note {
  margin-top: 7px;
  text-align: center;
}

/* The right side is now a compact vertical product stack. */
.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-visual > .phone {
  width: min(28vw, 318px);
  max-height: calc(100svh - 205px);
}

@media (max-width: 760px) {
  .hero {
    gap: 10px;
  }

  .visual-downloads {
    order: 0;
    width: min(100%, 390px);
    margin: 0 auto 6px;
  }

  .visual-downloads .store-buttons {
    gap: 8px;
  }

  /* On phones, remove the exaggerated device shell. The screenshot remains
     recognizable, but looks like a normal compact app preview instead of a
     very rounded miniature phone. */
  .phone {
    order: 1;
    width: min(52vw, 225px);
    height: auto;
    max-height: none;
    aspect-ratio: 945 / 2048;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: transparent;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
    overflow: hidden;
  }

  .phone-screen,
  .phone-screen-inner {
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: inherit;
    background: #0b0f14;
    box-shadow: none;
  }

  .phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: inherit;
  }
}

@media (max-width: 760px) and (max-height: 730px) {
  .visual-downloads {
    margin-bottom: 2px;
  }

  .visual-downloads .platform-note {
    display: none;
  }

  .phone {
    width: min(42vw, 180px);
    height: auto;
  }
}

@media (max-width: 760px) {
  /* Keep only one set of download actions on small screens. */
  .copy-store-buttons,
  .copy-platform-note {
    display: none;
  }
}

/* =========================================================
   DEVICE STACK FIX
   Download buttons and phone are one visual component.
   They now share the exact same width and move/scale together.
   ========================================================= */

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
}

.device-stack {
  --device-width: min(31vw, 350px);
  position: relative;
  z-index: 2;
  width: var(--device-width);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.device-stack .visual-downloads {
  width: 100%;
  margin: 0;
  display: block;
}

.device-stack .visual-downloads .store-buttons {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.device-stack .store-button {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 8px 10px;
  gap: 8px;
  justify-content: center;
}

.device-stack .store-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.device-stack .store-button small {
  font-size: 0.56rem;
}

.device-stack .store-button strong {
  font-size: 0.88rem;
}

/* Phone width is inherited from the same stack: no independent sizing. */
.device-stack > .phone,
.hero-visual > .device-stack > .phone {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  padding: 7px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #303846, #090d13 45%, #212938);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.device-stack > .phone > .phone-screen {
  width: 100%;
  height: auto;
  padding: 4px;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0f14;
}

.device-stack > .phone .phone-screen-inner {
  width: 100%;
  height: auto;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #06090d;
  box-shadow: none;
}

.device-stack > .phone .phone-screenshot {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  border-radius: 16px;
}

@media (max-width: 760px) {
  .hero {
    gap: 18px;
  }

  .device-stack {
    --device-width: min(88vw, 370px);
    gap: 12px;
    margin-inline: auto;
  }

  .device-stack .store-button {
    min-height: 54px;
    padding: 8px 9px;
  }

  .device-stack .store-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .device-stack .store-button small {
    font-size: 0.56rem;
  }

  .device-stack .store-button strong {
    font-size: 0.88rem;
  }

  .device-stack > .phone,
  .hero-visual > .device-stack > .phone {
    width: 100%;
    padding: 6px;
    border-radius: 25px;
  }

  .device-stack > .phone > .phone-screen {
    padding: 4px;
    border-radius: 20px;
  }

  .device-stack > .phone .phone-screen-inner {
    border-radius: 16px;
  }

  .device-stack > .phone .phone-screenshot {
    border-radius: 15px;
  }
}

@media (max-width: 390px) {
  .device-stack {
    --device-width: min(92vw, 355px);
  }

  .device-stack .visual-downloads .store-buttons {
    gap: 7px;
  }

  .device-stack .store-button {
    padding-inline: 7px;
    gap: 6px;
  }
}
