@import url("fonts.css");

:root {
  --bg: #08111d;
  --bg-deep: #040914;
  --surface: rgba(12, 21, 39, 0.72);
  --surface-strong: rgba(15, 26, 47, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eef4ff;
  --muted: #9ba9c1;
  --muted-strong: #c3cfdf;
  --accent: #6fd6ff;
  --accent-strong: #ffb66e;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1220px;
  --pointer-x: 50vw;
  --pointer-y: 30vh;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(111, 214, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 182, 110, 0.16), transparent 24%),
    linear-gradient(180deg, #09111e 0%, #060b14 45%, #04070f 100%);
  color: var(--text);
  font-family: "poppins-regular", sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      380px circle at var(--pointer-x) var(--pointer-y),
      rgba(111, 214, 255, 0.16),
      transparent 70%
    );
  opacity: 0.9;
  z-index: 0;
}

::selection {
  background: rgba(111, 214, 255, 0.28);
  color: #fff;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ambient-layer,
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.ambient-layer {
  pointer-events: none;
}

.ambient-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.7;
}

.orb-one {
  width: 28rem;
  height: 28rem;
  top: 8rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(111, 214, 255, 0.22), transparent 72%);
  animation: drift 18s ease-in-out infinite;
}

.orb-two {
  width: 26rem;
  height: 26rem;
  right: -6rem;
  top: 32rem;
  background: radial-gradient(circle, rgba(255, 182, 110, 0.22), transparent 70%);
  animation: drift 24s ease-in-out infinite reverse;
}

.ambient-grid,
.ambient-noise {
  position: fixed;
  inset: 0;
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 88%);
  opacity: 0.14;
}

.ambient-noise {
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.04) 0.9px, transparent 0.9px);
  background-size: 10px 10px;
  opacity: 0.05;
}

.site-header {
  position: sticky;
  top: 0;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 1rem auto 0;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(111, 214, 255, 0.95), rgba(255, 182, 110, 0.85));
  color: #04111c;
  font-family: "poppins-semibold", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-copy strong {
  font-family: "poppins-semibold", sans-serif;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-link {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
  transform: translateX(-50%);
}

.nav-toggle::before {
  top: 1.15rem;
}

.nav-toggle::after {
  top: 1.65rem;
}

.section {
  padding: 5rem 1rem;
}

.section-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.hero {
  padding-top: 4.25rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: "poppins-semibold", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow.small {
  margin-bottom: 0.9rem;
  font-size: 0.74rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "poppins-semibold", sans-serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.96;
}

.hero-lead,
.section-head p,
.story-card p,
.capability-card p,
.contact-copy p,
.contact-copy-small,
.app-tab-copy,
.spotlight-description,
.spotlight-note {
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-lead {
  max-width: 42rem;
  margin-top: 1.5rem;
}

.role-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.75rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.role-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.role-value {
  color: var(--text);
  font-family: "poppins-semibold", sans-serif;
  transition: opacity 180ms ease, transform 180ms ease;
}

.role-value.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04111c;
  font-family: "poppins-semibold", sans-serif;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.metric-card {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.metric-value {
  display: block;
  font-family: "poppins-semibold", sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.metric-static {
  font-size: 1.3rem;
}

.metric-label {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait-shell {
  width: min(100%, 32rem);
  --tilt-rotate-x: 0deg;
  --tilt-rotate-y: 0deg;
  transition: transform 180ms ease;
}

.portrait-card {
  position: relative;
  padding: 2rem;
  border-radius: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(7, 13, 23, 0.74);
  box-shadow: var(--shadow);
  transform:
    perspective(1200px)
    rotateX(var(--tilt-rotate-x))
    rotateY(var(--tilt-rotate-y));
  transform-style: preserve-3d;
}

.portrait-rings {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 18%, rgba(111, 214, 255, 0.28), transparent 22%),
    radial-gradient(circle at 82% 72%, rgba(255, 182, 110, 0.24), transparent 20%);
  animation: pulse 8s ease-in-out infinite;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 2rem 2rem 5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08));
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.floating-tag {
  position: absolute;
  z-index: 2;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 15, 27, 0.72);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 0.84rem;
  white-space: nowrap;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  animation: float 7s ease-in-out infinite;
}

.tag-top {
  top: 1rem;
  right: 1.2rem;
}

.tag-right {
  top: 42%;
  right: -1.2rem;
  animation-delay: -1.8s;
}

.tag-bottom {
  left: 1rem;
  bottom: 8.75rem;
  animation-delay: -3.1s;
}

.signal-card {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 2;
  width: min(16rem, calc(100% - 2.4rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.3rem;
  background: rgba(5, 10, 18, 0.84);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
}

.signal-header,
.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.signal-header {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.signal-header::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(111, 214, 255, 0.6);
  animation: ping 2.2s ease-in-out infinite;
  flex: 0 0 auto;
}

.signal-row {
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.84rem;
}

.signal-row strong {
  color: var(--text);
  font-family: "poppins-semibold", sans-serif;
}

.section-head {
  max-width: 44rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

.section-head p {
  margin-top: 1rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.capability-card,
.story-card,
.pill-card,
.app-tab,
.spotlight-card,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(8, 14, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.capability-card {
  height: 100%;
  padding: 1.45rem;
  border-radius: var(--radius-lg);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
  --tilt-rotate-x: 0deg;
  --tilt-rotate-y: 0deg;
  transform:
    perspective(1100px)
    rotateX(var(--tilt-rotate-x))
    rotateY(var(--tilt-rotate-y));
}

.capability-card:hover {
  border-color: rgba(111, 214, 255, 0.22);
}

.capability-kicker {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.42);
  font-family: "poppins-semibold", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.capability-card h3,
.story-card h3,
.contact-copy h2 {
  font-size: 1.55rem;
  line-height: 1.1;
}

.capability-card p {
  margin-top: 0.85rem;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1rem;
  margin-top: 1rem;
}

.story-card,
.pill-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.story-card p:last-child {
  margin-top: 1rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.pill-list span {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.apps-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.app-selector {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.app-tab {
  display: grid;
  gap: 0.65rem;
  padding: 1.15rem;
  border-radius: 1.5rem;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.app-tab:hover,
.app-tab:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(111, 214, 255, 0.22);
  outline: none;
}

.app-tab.is-active {
  border-color: rgba(111, 214, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(111, 214, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(8, 14, 24, 0.82);
}

.app-tab-kicker,
.spotlight-label,
.contact-card-title {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-tab strong {
  font-family: "poppins-semibold", sans-serif;
  font-size: 1.2rem;
}

.app-spotlight {
  position: relative;
}

.spotlight-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  min-height: 42rem;
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--app-gradient);
  box-shadow: var(--shadow);
  overflow: hidden;
  --tilt-rotate-x: 0deg;
  --tilt-rotate-y: 0deg;
  transform:
    perspective(1200px)
    rotateX(var(--tilt-rotate-x))
    rotateY(var(--tilt-rotate-y));
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, var(--app-soft), transparent 30%),
    radial-gradient(circle at 32% 84%, rgba(255, 255, 255, 0.08), transparent 34%);
  pointer-events: none;
}

.spotlight-copy,
.spotlight-gallery {
  position: relative;
  z-index: 1;
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem;
}

.spotlight-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-icon {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.4rem;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.22);
}

.spotlight-head h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.spotlight-store-name {
  margin-top: 0.35rem;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.meta-card {
  padding: 0.9rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "poppins-medium", sans-serif;
  font-size: 0.96rem;
}

.feature-list {
  display: grid;
  gap: 0.72rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted-strong);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--app-accent);
  box-shadow: 0 0 18px var(--app-accent);
}

.spotlight-note {
  font-size: 0.88rem;
}

.spotlight-gallery {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.app-icon-tile {
  position: absolute;
  top: 1.2rem;
  left: 1rem;
  width: 6.25rem;
  padding: 0.6rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 18, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  animation: float 7.6s ease-in-out infinite;
}

.app-icon-tile img {
  border-radius: 1.1rem;
}

.device {
  position: relative;
  width: min(15rem, 52vw);
  border-radius: 2.25rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(25, 28, 34, 0.95), rgba(3, 6, 10, 0.95));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.device::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 38%;
  height: 1.15rem;
  border-radius: 0 0 1rem 1rem;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.82);
}

.device img {
  width: 100%;
  border-radius: 1.7rem;
}

.device-main {
  transform: translate(2rem, 0) rotate(5deg);
  animation: hover-main 7.2s ease-in-out infinite;
}

.device-secondary {
  position: absolute;
  right: 1rem;
  bottom: 1.5rem;
  width: min(12.5rem, 42vw);
  transform: rotate(-9deg);
  animation: hover-secondary 8s ease-in-out infinite;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
  align-items: start;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-card {
  height: 100%;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  --tilt-rotate-x: 0deg;
  --tilt-rotate-y: 0deg;
  transform:
    perspective(1100px)
    rotateX(var(--tilt-rotate-x))
    rotateY(var(--tilt-rotate-y));
}

.contact-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--text);
  font-family: "poppins-semibold", sans-serif;
  font-size: 1.2rem;
  text-decoration: none;
}

.contact-copy-small {
  margin-top: 0.9rem;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.site-footer {
  padding: 0 1rem 2.5rem;
}

.site-footer p {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(1.25rem, 2rem, 0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(1.5deg);
  }
}

@keyframes hover-main {
  0%,
  100% {
    transform: translate(2rem, 0) rotate(5deg);
  }
  50% {
    transform: translate(2rem, -12px) rotate(6.4deg);
  }
}

@keyframes hover-secondary {
  0%,
  100% {
    transform: rotate(-9deg);
  }
  50% {
    transform: translateY(-12px) rotate(-7deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 214, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(111, 214, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(111, 214, 255, 0);
  }
}

@media (max-width: 1080px) {
  .hero-shell,
  .contact-shell,
  .apps-layout,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .metric-grid,
  .meta-grid,
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spotlight-card {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .site-header {
    width: calc(100% - 1rem);
    padding: 0.8rem 0.9rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    display: grid;
    gap: 0.35rem;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.4rem;
    background: rgba(4, 8, 15, 0.92);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  body.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body.menu-open .nav-toggle::before {
    transform: translateX(-50%) translateY(4px) rotate(45deg);
  }

  body.menu-open .nav-toggle::after {
    transform: translateX(-50%) translateY(-4px) rotate(-45deg);
  }

  .nav-link {
    padding: 0.85rem 1rem;
  }

  .metric-grid,
  .meta-grid,
  .capability-grid,
  .app-selector {
    grid-template-columns: 1fr;
  }

  .spotlight-card {
    padding: 1rem;
  }

  .spotlight-head {
    align-items: flex-start;
  }

  .spotlight-gallery {
    min-height: 28rem;
    padding-top: 4rem;
  }

  .app-icon-tile {
    width: 5.2rem;
    top: 0.2rem;
  }

  .device-main {
    transform: translate(0.8rem, 0) rotate(4deg);
  }

  .device-main {
    animation-name: hover-main-tablet;
  }

  .device-secondary {
    animation-name: hover-secondary-tablet;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 92px;
  }

  .section {
    padding: 4rem 1rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .role-strip {
    width: 100%;
    border-radius: 1.2rem;
  }

  .portrait-card,
  .spotlight-card,
  .story-card,
  .pill-card,
  .capability-card,
  .contact-card {
    border-radius: 1.5rem;
  }

  .signal-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .tag-right {
    right: 0.5rem;
  }

  .tag-bottom {
    left: 0.6rem;
    bottom: 6.4rem;
  }

  .spotlight-copy {
    padding: 0.3rem;
  }

  .spotlight-head h3 {
    font-size: 1.75rem;
  }

  .device {
    width: min(11.25rem, 54vw);
    padding: 0.6rem;
    border-radius: 1.8rem;
  }

  .device img {
    border-radius: 1.3rem;
  }

  .device-main {
    transform: translate(0.2rem, 0) rotate(3deg);
  }

  .device-secondary {
    width: min(9rem, 41vw);
    right: 0.2rem;
    bottom: 0.5rem;
  }

  .device-main {
    animation-name: hover-main-mobile;
  }

  .device-secondary {
    animation-name: hover-secondary-mobile;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@keyframes hover-main-tablet {
  0%,
  100% {
    transform: translate(0.8rem, 0) rotate(4deg);
  }
  50% {
    transform: translate(0.8rem, -10px) rotate(5.5deg);
  }
}

@keyframes hover-secondary-tablet {
  0%,
  100% {
    transform: rotate(-9deg);
  }
  50% {
    transform: translateY(-10px) rotate(-7deg);
  }
}

@keyframes hover-main-mobile {
  0%,
  100% {
    transform: translate(0.2rem, 0) rotate(3deg);
  }
  50% {
    transform: translate(0.2rem, -8px) rotate(4deg);
  }
}

@keyframes hover-secondary-mobile {
  0%,
  100% {
    transform: rotate(-9deg);
  }
  50% {
    transform: translateY(-8px) rotate(-7deg);
  }
}
