/* Hero and device frame. Tokens live in base.css. */

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -14%;
  width: min(68vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(18, 109, 204, 0.09), rgba(18, 109, 204, 0.03) 55%, transparent);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  min-height: min(calc(100svh - var(--header-h)), 900px);
  padding-block: clamp(48px, 7vh, 80px) clamp(56px, 8vh, 96px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(9, 36, 73, 0.04);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 109, 204, 0.14);
}

.hero-title {
  margin-top: 28px;
  color: var(--ink);
  font-size: clamp(2.75rem, 1rem + 5.2vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-title-accent {
  color: var(--brand);
}

:lang(en) .hero-title {
  font-size: clamp(2.5rem, 0.9rem + 4.4vw, 4.375rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

:lang(en) .hero-title span {
  white-space: normal;
}

.hero-lede {
  max-width: 30em;
  margin-top: 24px;
  color: var(--text);
  font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.1875rem);
  line-height: 1.75;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.purchase-note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  max-width: 560px;
  margin-top: clamp(44px, 7vh, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding-inline: 28px;
  border-left: 1px solid var(--line);
}

.hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dd {
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 13px;
}

/* Device ----------------------------------------------------------------- */

.hero-visual {
  --device-w: 304px;
  --device-bezel: 10px;
  --screen-w: calc(var(--device-w) - 2 * var(--device-bezel));
  --screen-h: calc(var(--screen-w) * 2.3444);
  position: relative;
  width: calc(var(--device-w) + 150px);
}

.device {
  position: relative;
  width: var(--device-w);
  padding: var(--device-bezel);
  border-radius: 54px;
  background: linear-gradient(150deg, #24324a 0%, var(--bezel) 38%, #050b16 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 3px rgba(0, 0, 0, 0.35),
    0 2px 4px rgba(9, 36, 73, 0.06),
    0 40px 80px -28px rgba(9, 36, 73, 0.34),
    0 24px 40px -24px rgba(9, 36, 73, 0.3);
}

.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  background: var(--canvas);
}

.device-screen img {
  width: 100%;
  height: auto;
}

.device-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--screen-h) * 0.0521);
  padding: 4px 22px 0 26px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.device-camera {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border-radius: 50%;
  background: #0a1220;
  box-shadow: inset 0 0 0 2px #1c2638;
  transform: translate(-50%, -50%);
}

.device-icons {
  width: 54px;
  height: 11px;
  fill: currentColor;
}

.device-icons .battery-shell {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.45;
}

.device-home {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 34%;
  height: 4px;
  border-radius: 4px;
  background: rgba(16, 43, 82, 0.55);
  transform: translateX(-50%);
}

.device-stage {
  position: relative;
  transform-style: preserve-3d;
}

.device-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%);
  mix-blend-mode: soft-light;
  opacity: var(--sheen-opacity, 0);
  transform: translateX(var(--sheen-x, -130%));
  pointer-events: none;
}

.callouts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.callout {
  position: absolute;
  left: calc(var(--device-w) - 5px);
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.callout::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(18, 109, 204, 0.25);
}

.callout::after {
  content: "";
  order: 1;
  flex: none;
  width: 40px;
  height: 1px;
  margin-inline: 6px 12px;
  background: linear-gradient(90deg, var(--brand), rgba(18, 109, 204, 0.25));
}

.callout span {
  order: 2;
}

.callout-original {
  top: calc(var(--device-bezel) + var(--screen-h) * 0.242);
}

.callout-support {
  top: calc(var(--device-bezel) + var(--screen-h) * 0.346);
}

.callout-answer {
  top: calc(var(--device-bezel) + var(--screen-h) * 0.544);
}

.callout-answer::before {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(19, 168, 116, 0.3);
}

.callout-answer::after {
  background: linear-gradient(90deg, var(--success), rgba(19, 168, 116, 0.25));
}

.callout-explain {
  top: calc(var(--device-bezel) + var(--screen-h) * 0.682);
}

.visual-caption {
  width: var(--device-w);
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
