@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/nunito-latin-400-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/roboto-condensed-latin-700.woff2') format('woff2');
}

:root {
  --color-black: #000000;
  --color-blue: #4a90e2;
  --color-white: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.72);
  --color-subtle: rgba(255, 255, 255, 0.56);
  --color-soft: rgba(255, 255, 255, 0.08);
  --color-panel: rgba(255, 255, 255, 0.045);
  --color-border: rgba(255, 255, 255, 0.12);
  --font-heading: 'Roboto Condensed', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --content-width: 1120px;
  --header-height: 72px;
  --radius: 8px;
  --motion-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-ease-panel: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-linear-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --motion-product-ease: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  --motion-contact-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#products,
#about,
#contact {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.js .hero-motion {
  --hero-blur: 6px;
  --hero-delay: 280ms;
  --hero-duration: 700ms;
  --hero-rise: 20%;
  --hero-scale: 1;
  opacity: 0;
  filter: blur(var(--hero-blur));
  transform: translate3d(0, var(--hero-rise), 0) scale(var(--hero-scale));
  will-change: opacity, transform, filter;
}

.js .hero-motion-banner {
  --hero-blur: 6px;
  --hero-delay: 80ms;
  --hero-duration: 900ms;
  --hero-rise: 24px;
  --hero-scale: 0.985;
}

.hero-motion-line {
  display: block;
}

.js .hero-motion-line-1 {
  --hero-delay: 280ms;
  --hero-duration: 700ms;
}

.js .hero-motion-line-2 {
  --hero-delay: 360ms;
  --hero-duration: 700ms;
}

.js .hero-motion-body {
  --hero-delay: 520ms;
  --hero-duration: 620ms;
  --hero-rise: 20%;
}

.js .hero-motion-actions {
  --hero-delay: 680ms;
  --hero-duration: 520ms;
  --hero-rise: 20%;
}

.js .hero-motion.is-visible {
  animation: hero-bloom var(--hero-duration) var(--motion-linear-ease) var(--hero-delay) both;
}

.js .hero-motion-banner.is-visible {
  animation-timing-function: var(--motion-product-ease);
}

.js .product-card-motion {
  --product-card-delay: 0ms;
  opacity: 0;
  filter: blur(4px);
  transform: translate3d(0, 18px, 0) scale(0.985);
  will-change: opacity, transform, filter;
}

.js .product-card-motion-2 {
  --product-card-delay: 120ms;
}

.js .product-card-motion .card-accent {
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.js .product-card-motion.is-visible {
  animation: product-card-rise 720ms var(--motion-ease-out) var(--product-card-delay) both;
}

.js .product-card-motion.is-visible .card-accent {
  animation: product-accent-sweep 760ms var(--motion-ease-out) calc(var(--product-card-delay) + 80ms) both;
}

.js .contact-panel-motion {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(-22px, 18px, 0) scale(0.985);
  will-change: opacity, transform, filter;
}

.js .contact-copy-motion,
.js .contact-action-motion {
  opacity: 0;
  filter: blur(4px);
  transform: translate3d(0, 16px, 0);
  will-change: opacity, transform, filter;
}

.contact-action-motion {
  justify-self: start;
}

.js .contact-panel-motion.is-visible {
  animation: contact-panel-arrive 1040ms var(--motion-contact-ease) both;
}

.js .contact-panel-motion.is-visible .contact-copy-motion {
  animation: contact-content-arrive 820ms var(--motion-contact-ease) 160ms both;
}

.js .contact-panel-motion.is-visible .contact-action-motion {
  animation: contact-content-arrive 820ms var(--motion-contact-ease) 180ms both;
}

@keyframes hero-bloom {
  from {
    opacity: 0;
    filter: blur(var(--hero-blur));
    transform: translate3d(0, var(--hero-rise), 0) scale(var(--hero-scale));
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
    will-change: auto;
  }
}

@keyframes product-card-rise {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(0, 18px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
    will-change: auto;
  }
}

@keyframes product-accent-sweep {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
    will-change: auto;
  }
}

@keyframes contact-panel-arrive {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(-22px, 18px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
    will-change: auto;
  }
}

@keyframes contact-content-arrive {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(0, 16px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
    will-change: auto;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(16px);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(calc(100% - 32px), var(--content-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--color-muted);
  font-weight: 700;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-links a[aria-current="location"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
}

.section {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 88px 0;
}

.build-section {
  padding-top: 68px;
}

.hero {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  padding-top: 52px;
  padding-bottom: 76px;
}

.hero-inner {
  display: grid;
  gap: 44px;
  align-items: center;
  text-align: center;
}

.hero-banner {
  width: min(100%, 980px);
  margin: 0 auto;
  border-radius: var(--radius);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.2rem, 3.8rem, 4.9rem);
  max-width: 780px;
  margin-inline: auto;
}

h2 {
  font-size: clamp(2.35rem, 2.8rem, 3.55rem);
  max-width: 760px;
}

h3 {
  margin: 0;
  color: var(--color-white);
  font-size: 1.35rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

.hero-text {
  max-width: 650px;
  margin: 22px auto 0;
  color: var(--color-muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 22px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button-primary {
  background: var(--color-blue);
  color: var(--color-black);
}

.button-secondary {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.section-heading.compact {
  margin-bottom: 0;
}

.about-label {
  text-transform: none;
}

.product-list {
  display: grid;
  gap: 16px;
}

.product-card,
.principle-card,
.contact-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-panel);
}

.product-card {
  --product-accent: var(--color-blue);
  --product-accent-border: rgba(74, 144, 226, 0.55);
  --product-border: var(--color-border);
  --product-icon-border: rgba(255, 255, 255, 0.1);
  position: relative;
  min-height: 236px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border-color: var(--product-border);
  gap: 28px;
  overflow: hidden;
  padding: 32px;
}

.product-card--spinflix {
  --product-accent: #ff7448;
  --product-accent-border: rgba(255, 116, 72, 0.48);
  --product-border: rgba(255, 116, 72, 0.2);
  --product-icon-border: rgba(255, 196, 77, 0.24);
}

.product-card--bullsstats {
  --product-accent: #27c863;
  --product-accent-border: rgba(39, 200, 99, 0.48);
  --product-border: rgba(39, 200, 99, 0.2);
  --product-icon-border: rgba(39, 200, 99, 0.24);
}

.card-accent {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--product-accent);
}

.product-card-main {
  display: grid;
  gap: 22px;
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 1px solid var(--product-icon-border);
  border-radius: var(--radius);
  background: var(--color-black);
  object-fit: cover;
}

.product-card-main p:last-child {
  max-width: 580px;
  color: var(--color-muted);
  font-size: 1.04rem;
}

.status-label {
  margin-bottom: 10px;
  color: var(--product-accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border: 1px solid var(--product-accent-border);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--color-white);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.about-copy {
  max-width: 620px;
  display: grid;
  gap: 18px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principle-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}

.principle-mark {
  width: 32px;
  height: 3px;
  margin-bottom: 42px;
  border-radius: var(--radius);
  background: var(--color-blue);
}

.principle-card p {
  margin-top: 12px;
  color: var(--color-muted);
}

.contact-section {
  min-height: calc(100vh - var(--header-height) - 172px);
  min-height: calc(100svh - var(--header-height) - 172px);
  padding-bottom: 120px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 32px;
}

.contact-panel p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 14px;
  color: var(--color-muted);
}

.contact-link {
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background-color: var(--color-blue);
  background-image: none;
  padding: 0 22px;
  color: var(--color-black);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

button.contact-link,
button.contact-link:hover,
button.contact-link:focus,
button.contact-link:focus-visible,
button.contact-link:active {
  background-color: var(--color-blue);
  background-image: none;
  color: var(--color-black);
  -webkit-text-fill-color: var(--color-black);
  box-shadow: none;
}

.brand:active,
.button:active,
.contact-link:active {
  transform: translateY(1px);
}

.nav-links a:active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    background: var(--color-soft);
    color: var(--color-white);
  }

  .button:hover {
    transform: translateY(-1px);
  }

  .button-secondary:hover {
    border-color: rgba(74, 144, 226, 0.72);
  }

  .brand:hover {
    opacity: 0.88;
  }

  .contact-link:hover {
    transform: translateY(-1px);
  }

}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 34px 0;
}

.footer-inner {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-logo {
  width: 170px;
  height: auto;
}

.footer-brand p,
.footer-meta {
  color: var(--color-subtle);
  font-size: 0.95rem;
}

.footer-meta {
  display: grid;
  gap: 6px;
  text-align: right;
}

.footer-meta address {
  font-style: normal;
}

.error-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.error-shell {
  width: min(calc(100% - 32px), 560px);
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 72px 0;
}

.error-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 32px;
  border-radius: var(--radius);
}

.error-shell h1 {
  max-width: 100%;
}

.error-shell p {
  max-width: 420px;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.error-shell .button {
  margin-top: 32px;
}

@media (max-width: 1180px), (hover: none), (pointer: coarse) {
  .brand {
    min-width: 44px;
    min-height: 44px;
  }

  .nav-links a {
    min-height: 44px;
  }
}

@media (max-width: 800px) {
  :root {
    --header-height: 68px;
  }

  .nav {
    min-height: 68px;
  }

  .brand {
    min-width: 44px;
    min-height: 44px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    min-height: 44px;
    padding: 0 8px;
    font-size: 0.92rem;
  }

  .section {
    padding: 70px 0;
  }

  .build-section {
    padding-top: 28px;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .contact-section {
    min-height: calc(100vh - var(--header-height) - 252px);
    min-height: calc(100svh - var(--header-height) - 252px);
    padding-bottom: 92px;
  }

  .hero-inner {
    gap: 34px;
  }

  .hero-banner {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.55rem, 2.9rem, 3.1rem);
  }

  h2 {
    font-size: clamp(2.05rem, 2.35rem, 2.65rem);
  }

  .product-card,
  .contact-panel,
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section {
    gap: 28px;
    padding-bottom: 40px;
  }

  .product-card {
    min-height: 0;
    padding: 28px;
  }

  .status-pill {
    justify-self: start;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    min-height: 172px;
  }

  .principle-mark {
    margin-bottom: 32px;
  }

  .contact-panel {
    padding: 28px;
  }

  .contact-link {
    justify-self: start;
  }

  .footer-inner {
    align-items: center;
    flex-direction: column;
  }

  .footer-brand {
    justify-items: center;
  }

  .footer-meta {
    text-align: center;
  }

  .footer-logo {
    width: 150px;
  }
}

@media (min-width: 700px) and (max-width: 900px) {
  .section {
    padding: 76px 0;
  }

  .build-section {
    padding-top: 32px;
  }

  .contact-section {
    padding-bottom: 96px;
  }

  section[aria-labelledby="products-title"] {
    padding-bottom: 200px;
  }

  .product-card {
    min-height: 220px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 48px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    min-height: 190px;
  }

  .principles-grid .principle-card:last-child {
    min-height: 190px;
  }

  .contact-panel {
    padding: 30px;
  }
}

@media (min-width: 801px) and (max-width: 900px) and (min-height: 1100px) {
  section[aria-labelledby="products-title"] {
    padding-bottom: 360px;
  }
}

@media (min-width: 901px) and (max-width: 1023px) {
  .build-section {
    padding-top: 45px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle-card {
    min-height: 190px;
  }

  .principles-grid .principle-card:last-child {
    min-height: 190px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) and (min-height: 1000px) {
  section[aria-labelledby="products-title"] {
    padding-bottom: 176px;
  }

  section[aria-labelledby="about-title"] {
    padding-bottom: 260px;
  }
}

@media (max-width: 520px) {
  .nav {
    width: min(calc(100% - 24px), var(--content-width));
    gap: 12px;
  }

  .nav-links a {
    min-height: 44px;
    font-size: 0.88rem;
  }

  .section {
    width: min(calc(100% - 24px), var(--content-width));
    padding: 58px 0;
  }

  .build-section {
    padding-top: 26px;
    padding-bottom: 88px;
  }

  .split-section {
    padding-bottom: 36px;
  }

  .contact-section {
    padding-bottom: 66px;
  }

  .hero {
    padding-top: 30px;
    padding-bottom: 56px;
  }

  @supports (height: 100lvh) {
    .hero {
      min-height: calc(100lvh - var(--header-height));
    }
  }

  .hero-copy {
    text-align: center;
  }

  h1,
  h2 {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.3rem, 2.58rem, 2.78rem);
    line-height: 1.03;
  }

  .hero-text {
    font-size: 1.04rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .button {
    width: 100%;
  }

  .product-card,
  .principle-card,
  .contact-panel {
    padding: 22px;
  }

  .product-card {
    min-height: 278px;
  }

  .about-copy {
    max-width: 366px;
  }

  .contact-link {
    width: 100%;
    font-size: 0.98rem;
  }

  .contact-action-motion {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-text {
    max-width: 400px;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 2.3rem;
    line-height: 1.04;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.2rem;
    line-height: 1.05;
  }

  .principle-card {
    min-height: 196px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-motion,
  .js .product-card-motion,
  .js .contact-panel-motion,
  .js .contact-copy-motion,
  .js .contact-action-motion {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .js .product-card-motion .card-accent {
    transform: none !important;
    animation: none !important;
  }

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