:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, .28);
  --blue: #245cff;
  --violet: #6848f2;
  --green: #0f9f6e;
  --rose: #d94683;
  --amber: #d28b00;
  --accent: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f8fbff;
}

.theme-examia { --accent: var(--violet); }
.theme-radar { --accent: var(--blue); }
.theme-portfolio { --accent: var(--green); }
.theme-report { --accent: var(--rose); }

.product-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.product-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 58px);
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, .78);
  border-bottom: 1px solid rgba(226, 232, 240, .72);
}

.brand,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, #68c9ff, var(--accent));
  font-size: 21px;
  font-weight: 950;
}

.brand strong {
  font-size: 24px;
  letter-spacing: -.02em;
}

.nav-link {
  color: var(--muted);
  font-weight: 850;
}

.product-hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(420px, 1.22fr);
  gap: clamp(24px, 4vw, 76px);
  align-items: center;
  padding: 116px clamp(24px, 6vw, 92px) 48px;
  background:
    radial-gradient(circle at 72% 34%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f1f6ff 58%, #ffffff 100%);
}

.product-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
  animation: riseIn .9s cubic-bezier(.2, .8, .2, 1) both;
}

.kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(62px, 8vw, 128px);
  line-height: .86;
  letter-spacing: -.04em;
}

.lead {
  max-width: 560px;
  margin: 26px 0 0;
  color: #344256;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .76);
  border-color: var(--line);
  box-shadow: none;
}

.product-visual {
  position: relative;
  min-height: min(66vw, 620px);
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .82);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(150deg, rgba(255, 255, 255, .86), color-mix(in srgb, var(--accent) 10%, #f8fbff));
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: 0 36px 90px rgba(15, 23, 42, .16);
  animation: visualIn 1.1s cubic-bezier(.2, .8, .2, 1) both;
}

.animation-frame {
  padding: 0;
  background: #fff;
}

.animation-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  background: #fff;
}

.animation-frame:after {
  display: none;
}

.product-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, .36), transparent 50%);
  pointer-events: none;
}

.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.detail {
  min-height: 260px;
  padding: clamp(24px, 3vw, 44px);
  background: #fff;
}

.detail span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.detail h2 {
  margin: 16px 0 12px;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.02;
}

.detail p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 5vw, 68px) clamp(24px, 6vw, 92px);
  background: #101827;
  color: #fff;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 64px);
  line-height: .98;
}

.final-cta p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.5;
}

.eye-scene .eye-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  aspect-ratio: 1.92;
  transform: translate(-50%, -50%) rotate(-10deg);
  border: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 65% 35% 65% 35% / 58% 42% 58% 42%;
  background: rgba(255, 255, 255, .56);
}

.eye-scene .iris,
.eye-scene .pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.eye-scene .iris {
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, #aee7ff 0 22%, var(--accent) 23% 62%, #e0f2fe 63%);
}

.eye-scene .pupil {
  width: 58px;
  height: 58px;
  background: #111827;
}

.eye-scene .scan {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanProduct 4s linear infinite;
}

.radar-scene .ring,
.radar-scene .sweep,
.report-scene .paper,
.market-scene .axis,
.market-scene .curve,
.market-scene .ticker {
  position: absolute;
}

.radar-scene .ring {
  inset: 18%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%;
}

.radar-scene .ring.two {
  inset: 30%;
}

.radar-scene .ring.three {
  inset: 42%;
}

.radar-scene .sweep {
  left: 50%;
  top: 50%;
  width: 34%;
  height: 3px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: rotateProduct 6s linear infinite;
}

.radar-scene .paper,
.report-scene .paper {
  position: absolute;
  width: 126px;
  height: 164px;
  border-radius: 18px;
  border: 1px solid #d8e1ef;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 20px 44px rgba(15, 23, 42, .12);
}

.radar-scene .paper.one {
  left: 15%;
  bottom: 18%;
  transform: rotate(-9deg);
}

.radar-scene .paper.two {
  right: 12%;
  top: 15%;
  transform: rotate(8deg);
}

.market-scene .axis {
  left: 12%;
  right: 10%;
  bottom: 18%;
  height: 2px;
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  box-shadow: -1px -330px 0 -1px color-mix(in srgb, var(--accent) 32%, transparent);
}

.market-scene .curve {
  inset: 16% 10% 20% 12%;
  clip-path: polygon(0 72%, 12% 60%, 24% 68%, 37% 43%, 48% 52%, 62% 22%, 76% 32%, 100% 8%, 100% 20%, 76% 44%, 62% 34%, 48% 64%, 37% 55%, 24% 80%, 12% 72%, 0 84%);
  background: linear-gradient(90deg, var(--accent), #5eead4);
  animation: pulseLine 2.8s ease-in-out infinite;
}

.market-scene .ticker {
  left: 12%;
  bottom: 9%;
  display: flex;
  gap: 10px;
}

.market-scene .ticker b {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  font-size: 12px;
}

.report-scene .paper.one {
  left: 29%;
  top: 23%;
  transform: rotate(-7deg);
}

.report-scene .paper.two {
  right: 25%;
  top: 31%;
  transform: rotate(8deg);
}

.report-scene .paper:before,
.radar-scene .paper:before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 34px;
  height: 7px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: 0 24px 0 #dbe3ee, 0 48px 0 #e2e8f0, 0 72px 0 #eef2f7;
}

.report-scene .spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 62%);
  animation: glow 2.8s ease-in-out infinite;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes visualIn {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scanProduct {
  0%, 100% { transform: translateY(-140px); opacity: .2; }
  50% { transform: translateY(140px); opacity: 1; }
}

@keyframes rotateProduct {
  to { transform: rotate(360deg); }
}

@keyframes pulseLine {
  0%, 100% { opacity: .76; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-8px); }
}

@keyframes glow {
  0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@media (max-width: 980px) {
  .product-nav {
    position: sticky;
  }

  .product-hero,
  .product-details {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: auto;
    padding-top: 54px;
  }

  .product-visual {
    min-height: 360px;
  }

  .final-cta {
    display: block;
  }

  .final-cta .button {
    margin-top: 24px;
  }
}
