/* WireCalc marketing site */

:root {
  --navy: #0B1222;
  --slate: #0F172A;
  --slate-2: #1E293B;
  --slate-3: #273449;
  --line: #243044;
  --line-soft: #1A2436;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --dim: #64748B;
  --orange: #EA580C;
  --orange-2: #FB923C;
  --orange-deep: #C2410C;
  --amber: #FACC15;
  --blue: #3B82F6;
  --green: #22C55E;
  --shell: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; }

a { color: var(--orange-2); text-decoration: none; }
a:hover { color: #FDBA74; }
::selection { background: var(--orange); color: #fff; }
img, video { max-width: 100%; }

h1, h2, h3 { font-family: Unbounded, sans-serif; letter-spacing: -0.02em; margin: 0; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.shell { max-width: var(--shell); margin: 0 auto; }

/* blueprint grid backdrop */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
}

/* ---------- nav ---------- */

.nav {
  position: relative;
  z-index: 2;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 18px rgba(234, 88, 12, 0.3);
}
.nav__word { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.nav__spacer { flex: 1; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--orange);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 20px -6px rgba(234, 88, 12, 0.7);
}
.nav__cta:hover { background: var(--orange-deep); }

/* ---------- hero ---------- */

.hero-wrap { position: relative; overflow: hidden; }
.hero-wrap::after {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  right: -260px; top: -200px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.18), transparent 60%);
  pointer-events: none;
}
.hero {
  position: relative;
  z-index: 1;
  padding: 56px 32px 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 26px;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.hero h1 {
  font-weight: 800;
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--orange-2); }
.hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 34px;
  max-width: 540px;
  text-wrap: pretty;
}
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.badge { display: inline-flex; }
.badge img { height: 54px; display: block; }
.price-note { font-size: 15px; color: var(--muted); }
.price-note strong { color: var(--text); font-family: Unbounded, sans-serif; font-size: 16px; font-weight: 800; }

/* ---------- device frames ---------- */

.device-wrap { position: relative; display: flex; justify-content: center; }
.device {
  position: relative;
  background: linear-gradient(135deg, #475569, #1E293B 45%, #64748B);
  border-radius: 52px;
  padding: 11px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  width: 330px;
}
.device img { display: block; width: 100%; height: auto; border-radius: 42px; background: #05070D; }
.device--md { border-radius: 48px; padding: 10px; width: 300px; }
.device--md img { border-radius: 39px; }
.device--sm { border-radius: 42px; padding: 9px; width: 240px; }
.device--sm img { border-radius: 34px; }
.device--offset { margin-top: 48px; }
.device--glow { box-shadow: 0 40px 90px -30px rgba(234, 88, 12, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.device-pair { display: flex; justify-content: center; align-items: flex-start; gap: 20px; }

/* floating result callouts on hero phone */
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 2px solid var(--orange);
  border-radius: 999px;
  padding: 12px 20px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  animation: float 5s ease-in-out infinite;
}
.callout--nec { left: -56px; top: 46%; border-color: var(--blue); color: #93C5FD; animation-delay: -1.2s; }
.callout--pass { right: -30px; top: 22%; border-color: var(--green); color: #4ADE80; animation-delay: -2.5s; }
.callout--pass::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- video ---------- */

.watch { padding: 16px 32px 88px; }
.watch__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.watch__head h2 { font-weight: 800; font-size: 32px; text-wrap: balance; }
.watch__head p { margin: 0; font-size: 16px; color: var(--muted); max-width: 380px; text-wrap: pretty; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.player video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.player__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  border: 0;
  padding: 28px;
  cursor: pointer;
  background: transparent;
  transition: opacity 0.25s ease;
}
.player__pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px 8px 8px;
  border-radius: 999px;
  background: rgba(11, 18, 34, 0.82);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 700 15px Inter, sans-serif;
  text-align: left;
}
.player__pill small { display: block; font: 700 12px "JetBrains Mono", monospace; color: var(--muted); letter-spacing: 0.06em; margin-top: 2px; }
.player__btn {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6);
  animation: pulse 2.2s ease-out infinite;
  transition: transform 0.2s ease;
}
.player__play:hover .player__btn { transform: scale(1.07); }
.player__btn svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
.player.is-playing .player__play { opacity: 0; pointer-events: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 18px rgba(234, 88, 12, 0); } 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); } }

/* ---------- stat strip ---------- */

.strip { padding: 0 32px 40px; }
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
}
.strip__item { padding: 26px 28px; border-right: 1px solid var(--line); }
.strip__item:last-child { border-right: 0; }
.strip__stat { font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: 26px; color: var(--orange-2); margin-bottom: 6px; }
.strip__label { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- features ---------- */

.features { padding: 56px 32px 8px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin-bottom: 14px;
}
.eyebrow--blue { color: #60A5FA; }
.eyebrow--green { color: #4ADE80; }
.eyebrow--amber { color: var(--amber); }
.section-head h2 { font-weight: 800; font-size: 40px; line-height: 1.12; margin: 0 0 18px; text-wrap: balance; }
.section-head p { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 0; text-wrap: pretty; }

.split { display: grid; gap: 72px; align-items: center; padding: 48px 0; grid-template-columns: 0.9fr 1.1fr; }
.split--flip { grid-template-columns: 1.1fr 0.9fr; }
.split h3 { font-weight: 800; font-size: 30px; line-height: 1.18; margin: 0 0 18px; text-wrap: balance; }
.split p { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; text-wrap: pretty; }
.split strong { color: var(--text); }
.split__body { min-width: 0; }
.spec {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.spec span {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--slate-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}
.formula {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 4px 0 0;
  display: inline-block;
}

/* ---------- cards ---------- */

.cards { padding: 56px 32px; }
.cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--slate-2), var(--slate));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
}
.card__stat { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 26px; margin-bottom: 12px; color: var(--orange-2); }
.card__stat--blue { color: #60A5FA; }
.card__stat--green { color: #4ADE80; }
.card__title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.card__body { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- offline block ---------- */

.offline { padding: 24px 32px 80px; }
.offline__inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1A120C, #0F172A 55%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.offline h3 { font-weight: 800; font-size: 34px; line-height: 1.15; margin: 0 0 18px; text-wrap: balance; }
.offline p { font-size: 16.5px; line-height: 1.7; color: var(--muted); margin: 0 0 28px; text-wrap: pretty; }
.offline__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offline__item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(11, 18, 34, 0.6);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
}
.offline__item::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1222' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.nosignal { display: flex; justify-content: center; }
.nosignal svg { width: min(320px, 70vw); height: auto; }

/* ---------- pricing ---------- */

.pricing { padding: 24px 32px 88px; }
.pricing__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.pricing__head h2 { font-weight: 800; font-size: 40px; margin: 0 0 16px; }
.pricing__head p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }
.pricing__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.plan {
  background: linear-gradient(160deg, var(--orange-2), var(--orange) 45%, var(--orange-deep));
  border-radius: 24px;
  padding: 44px;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px -24px rgba(234, 88, 12, 0.6);
}
.plan__head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.plan__head img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.plan__name { font-weight: 700; font-size: 18px; }
.plan__price { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 64px; letter-spacing: -0.04em; line-height: 1; }
.plan__once { font-family: Unbounded, sans-serif; font-weight: 500; font-size: 18px; margin: 10px 0 22px; opacity: 0.9; }
.plan__body { font-size: 15.5px; line-height: 1.7; opacity: 0.95; margin-bottom: 28px; }
.plan__foot { margin-top: auto; }

.compare {
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.compare__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 20px;
}
.compare__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.compare__row:last-child { border-bottom: none; }
.compare__label { font-weight: 700; font-size: 16px; }
.compare__sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.compare__price { font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: 17px; color: var(--muted); white-space: nowrap; }
.compare__row--us .compare__label,
.compare__row--us .compare__price { color: var(--orange-2); }

/* ---------- faq ---------- */

.faq { max-width: 780px; margin: 0 auto; padding: 0 32px 88px; }
.faq h2 { font-weight: 800; font-size: 30px; margin: 0 0 28px; text-align: center; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--slate); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; }
.faq__q { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.faq__a { font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* ---------- closer ---------- */

.closer { padding: 0 32px 88px; }
.closer__inner {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(234, 88, 12, 0.28), transparent 60%), var(--slate);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 76px 48px;
  text-align: center;
}
.closer__icon { position: relative; width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 16px 40px rgba(234, 88, 12, 0.4); margin-bottom: 28px; }
.closer h2 { position: relative; font-weight: 800; font-size: 40px; line-height: 1.12; margin: 0 0 16px; text-wrap: balance; }
.closer p { position: relative; font-size: 17px; color: var(--muted); margin: 0 0 34px; }
.closer__actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.closer__actions .badge img { height: 58px; }
.closer__price { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 14px; color: var(--orange-2); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line-soft); }
.footer__inner { padding: 32px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer__icon { width: 30px; height: 30px; border-radius: 8px; }
.footer__name { font-weight: 700; font-size: 15px; }
.footer__links { display: flex; gap: 18px; font-size: 14px; margin-left: 12px; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__spacer { flex: 1; }
.footer__fine { font-size: 13px; color: var(--dim); max-width: 520px; line-height: 1.5; }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .callout, .player__btn { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 32px; }
  .hero h1 { font-size: 42px; }
  .hero__lede { font-size: 18px; max-width: none; }

  .split, .split--flip { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .split .device-wrap, .split .device-pair { order: 2; }
  .split .split__body { order: 1; }

  .section-head h2, .pricing__head h2 { font-size: 32px; }
  .split h3, .offline h3 { font-size: 26px; }
  .watch__head { flex-direction: column; align-items: flex-start; }

  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__item:nth-child(2) { border-right: 0; }
  .strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .cards__grid { grid-template-columns: 1fr; }
  .offline__inner { grid-template-columns: 1fr; padding: 40px 32px; }
  .nosignal { order: -1; }
  .pricing__grid { grid-template-columns: 1fr; }

  .closer__inner { padding: 56px 28px; }
  .closer h2 { font-size: 30px; }
}

@media (max-width: 700px) {
  .nav { flex-wrap: wrap; padding: 16px 16px; }
  .nav__spacer { display: none; }
  .nav__links { width: 100%; gap: 14px; font-size: 14px; justify-content: space-between; }

  .hero, .watch, .strip, .features, .cards, .offline, .pricing, .closer, .faq, .footer__inner { padding-left: 16px; padding-right: 16px; }

  .hero h1 { font-size: 34px; }
  .device { width: min(290px, 78vw); }
  .device--md { width: min(270px, 78vw); }
  .device-pair { gap: 12px; }
  .device--sm { width: min(180px, 42vw); }
  .device--offset { margin-top: 28px; }
  .callout { font-size: 15px; padding: 10px 16px; }
  .callout--nec { left: -8px; }
  .callout--pass { right: -8px; }

  .player { border-radius: 16px; }
  .player__play { padding: 12px; }
  .player__pill { padding: 5px 14px 5px 5px; font-size: 13px; gap: 10px; }
  .player__pill small { display: none; }
  .player__btn { width: 38px; height: 38px; }
  .player__btn svg { width: 16px; height: 16px; }

  .strip__item { padding: 20px; }
  .strip__stat { font-size: 21px; }

  .offline__grid { grid-template-columns: 1fr; }
  .plan, .compare { padding: 32px 24px; }
  .plan__price { font-size: 52px; }
  .compare__row { flex-direction: column; align-items: flex-start; gap: 4px; }

  .footer__links { margin-left: 0; }
  .footer__spacer { display: none; }
  .footer__fine { width: 100%; }
}
