:root {
  --bg: #07090d;
  --bg-elevated: #0c1017;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6fa;
  --muted: #9aa6b5;
  --faint: #6b7686;
  --ice: #9fd4f0;
  --ice-deep: #5ba8ce;
  --navy: #152033;
  --live: #5dcea0;
  --building: #e0b35a;
  --experiment: #8ba4ff;
  --archived: #7a8494;
  --radius: 18px;
  --max: 1080px;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(91, 168, 206, 0.16), transparent 58%),
    radial-gradient(700px 420px at 90% 20%, rgba(21, 32, 51, 0.9), transparent 55%),
    radial-gradient(600px 400px at 0% 60%, rgba(91, 168, 206, 0.06), transparent 50%),
    linear-gradient(180deg, #06080c 0%, var(--bg) 40%, #05070a 100%);
  background-attachment: fixed;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

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

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

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ice);
  color: #061018;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 9, 13, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--stroke);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  align-items: center;
  padding: 4rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18% 50% auto;
  width: min(620px, 90vw);
  height: 420px;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(159, 212, 240, 0.12), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-logo {
  width: clamp(96px, 16vw, 140px);
  height: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 18px 40px rgba(91, 168, 206, 0.18));
  animation: float-in 1s var(--ease) both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  animation: float-in 1s var(--ease) 0.08s both;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--ice);
  font-weight: 500;
  letter-spacing: -0.02em;
  animation: float-in 1s var(--ease) 0.14s both;
}

.hero-desc {
  margin: 0.2rem 0 0.6rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  animation: float-in 1s var(--ease) 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
  animation: float-in 1s var(--ease) 0.26s both;
}

.scroll-hint {
  margin-top: 3.5rem;
  color: var(--faint);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  animation: float-in 1s var(--ease) 0.4s both;
}

.scroll-hint span {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ice-deep), transparent);
  animation: pulse-line 1.8s ease-in-out infinite;
}

/* —— Sections —— */
section {
  padding: 6.5rem 0;
}

.section-label {
  margin: 0 0 0.75rem;
  color: var(--ice-deep);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-weight: 680;
}

.section-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 2.75rem;
}

/* —— Products —— */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 760px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.45rem 1.4rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--stroke-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: var(--ice);
  background: linear-gradient(145deg, rgba(159, 212, 240, 0.14), rgba(21, 32, 51, 0.7));
  border: 1px solid rgba(159, 212, 240, 0.18);
}

.product-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-live {
  color: var(--live);
  background: rgba(93, 206, 160, 0.1);
  border-color: rgba(93, 206, 160, 0.22);
}

.badge-building {
  color: var(--building);
  background: rgba(224, 179, 90, 0.1);
  border-color: rgba(224, 179, 90, 0.22);
}

.badge-experiment {
  color: var(--experiment);
  background: rgba(139, 164, 255, 0.1);
  border-color: rgba(139, 164, 255, 0.22);
}

.badge-archived {
  color: var(--archived);
  background: rgba(122, 132, 148, 0.12);
  border-color: rgba(122, 132, 148, 0.22);
}

.badge-new {
  color: var(--ice);
  background: rgba(159, 212, 240, 0.1);
  border-color: rgba(159, 212, 240, 0.22);
}

.badge-new::before {
  display: none;
}

.product-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 680;
}

.product-card__desc {
  margin: 0;
  color: var(--muted);
  flex: 1;
  font-size: 0.98rem;
}

/* —— About —— */
.about {
  border-block: 1px solid var(--stroke);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015), transparent);
}

.about-copy {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.about-copy strong {
  color: var(--text);
  font-weight: 600;
}

/* —— Contact —— */
.contact-panel {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(145deg, rgba(159, 212, 240, 0.06), transparent 45%),
    var(--bg-elevated);
}

.contact-panel p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 34rem;
}

.contact-panel p:first-of-type {
  margin-top: 0.85rem;
  color: var(--text);
  font-size: 1.15rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 620;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  width: fit-content;
}

.btn-primary {
  background: var(--text);
  color: #081018;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--stroke-strong);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.btn-muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--faint);
  border-color: var(--stroke);
  cursor: default;
}

.btn-arrow {
  transition: transform 0.25s var(--ease);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(2px);
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--stroke);
  color: var(--faint);
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

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

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
