:root {
  --ink: #13213e;
  --ink-soft: #1c2c52;
  --moss: #2a3f73;
  --mint: #5178e1;
  --mint-dim: #3d63c9;
  --mint-bright: #6b8ff0;
  --paper: #ffffff;
  --paper-warm: #eef1f8;
  --cream: #f6f7fb;
  --text: #13213e;
  --muted: #5c677a;
  --line: rgba(19, 33, 62, 0.12);
  --radius: 4px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  display: block;
  width: clamp(200px, 28vw, 250px);
  height: auto;
}

.footer-logo img {
  display: block;
  width: 180px;
  height: auto;
}

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

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink) !important;
  background: var(--cream);
}

.nav-cta:hover {
  border-color: rgba(81, 120, 225, 0.45);
  background: #eef2fc;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 4.25rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem)
    clamp(3rem, 6vh, 4rem);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 55% at 90% 20%, rgba(81, 120, 225, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 40% at 5% 90%, rgba(19, 33, 62, 0.06), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, var(--cream) 55%, #e8edf8 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 33, 62, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 33, 62, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, black, transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  animation: rise 0.9s var(--ease) both;
}

.brand-logo {
  display: block;
  width: min(100%, 230px);
  height: auto;
  margin: 0 0 1.35rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.9vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 22ch;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 40ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--mint);
  color: #fff;
}

.btn-primary:hover {
  background: var(--mint-dim);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  border-color: rgba(81, 120, 225, 0.45);
  background: #fff;
}

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 1;
  height: min(58vh, 420px);
  display: grid;
  place-items: center;
  animation: rise 1.1s var(--ease) 0.15s both;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(81, 120, 225, 0.28);
  border-radius: 50%;
}

.orbit-a {
  width: min(90%, 380px);
  aspect-ratio: 1;
  animation: spin 28s linear infinite;
}

.orbit-a::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: var(--mint);
  border-radius: 50%;
}

.orbit-b {
  width: min(68%, 280px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: spin 18s linear infinite reverse;
}

.stamp-stack {
  position: relative;
  width: min(72%, 260px);
  aspect-ratio: 0.72;
}

.stamp-sheet {
  position: absolute;
  inset: 0;
  background: var(--paper);
  border: 1px solid rgba(19, 33, 62, 0.12);
  box-shadow: 0 18px 40px rgba(19, 33, 62, 0.12);
}

.sheet-back {
  transform: rotate(-8deg) translate(-10px, 6px);
  background: var(--paper-warm);
  animation: float-sheet 5.5s var(--ease) infinite;
}

.sheet-mid {
  transform: rotate(4deg) translate(8px, -4px);
  background: #efe9db;
  animation: float-sheet 5.5s var(--ease) 0.4s infinite reverse;
}

.sheet-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem 1.25rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(81, 120, 225, 0.08), transparent 28%),
    linear-gradient(135deg, transparent 60%, rgba(81, 120, 225, 0.08)),
    #fff;
  animation: float-front 4.8s var(--ease) infinite;
}

.stamp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.stamp-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  padding-top: 0.35rem;
}

.seal-logo {
  width: 2.4rem;
  height: auto;
  flex-shrink: 0;
}

.stamp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem 0;
}

.stamp-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stamp-lines {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stamp-lines span {
  display: block;
  height: 5px;
  background: rgba(19, 33, 62, 0.12);
}

.stamp-lines span:nth-child(1) {
  width: 78%;
}
.stamp-lines span:nth-child(2) {
  width: 92%;
}
.stamp-lines span:nth-child(3) {
  width: 64%;
}

.stamp-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(19, 33, 62, 0.1);
}

.id-chip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.28rem;
  width: 55%;
}

.id-chip i {
  display: block;
  height: 1.25rem;
  background: var(--ink);
  opacity: 0.75;
}

.id-chip i:nth-child(2) {
  opacity: 0.35;
}
.id-chip i:nth-child(3) {
  opacity: 0.55;
}
.id-chip i:nth-child(4) {
  opacity: 0.9;
  background: var(--mint-dim);
}

.stamp-meta {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Products */
.products {
  padding: clamp(4rem, 10vh, 6.5rem) clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, #eef1f8, var(--cream) 100%);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-dim);
}

.eyebrow.light {
  color: var(--mint);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  animation: rise 0.8s var(--ease) both;
}

.section-intro h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.section-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.product {
  padding-top: 1.75rem;
  border-top: none;
}

.product + .product {
  border-left: 1px solid var(--line);
  padding-left: clamp(2rem, 5vw, 4rem);
}

.product-index {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--mint-dim);
}

.product h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}

.product p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 36ch;
}

.product ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.98rem;
}

.product li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--mint-dim);
}

/* Contact */
.contact {
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vh, 5.5rem);
}

.contact-panel {
  padding: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(81, 120, 225, 0.28), transparent 50%),
    linear-gradient(135deg, var(--ink) 0%, var(--moss) 100%);
  color: var(--paper);
}

.contact-copy {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.contact-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.contact-copy > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0 0 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-details dt {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-details dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

.contact-details a {
  color: #b7c9ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-details a:hover {
  color: #fff;
}

.contact-details address {
  font-style: normal;
}

.contact-panel .btn-primary {
  background: #fff;
  color: var(--ink);
}

.contact-panel .btn-primary:hover {
  background: #e8edf8;
}

/* Footer */
.site-footer {
  padding: 2.25rem clamp(1.25rem, 4vw, 3rem) 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  background: #fff;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem 3rem;
  padding-bottom: 1.75rem;
}

.footer-logo .logo-wordmark {
  font-size: 0.85rem;
}

.footer-tagline {
  margin: 0.65rem 0 0;
  max-width: 22ch;
  line-height: 1.4;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.footer-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}

.footer-cols a,
.footer-cols address {
  font-style: normal;
  line-height: 1.45;
  color: var(--text);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mint-dim);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float-front {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float-sheet {
  0%,
  100% {
    transform: rotate(-8deg) translate(-10px, 6px);
  }
  50% {
    transform: rotate(-6deg) translate(-10px, -2px);
  }
}

.sheet-mid {
  animation-name: float-mid;
}

@keyframes float-mid {
  0%,
  100% {
    transform: rotate(4deg) translate(8px, -4px);
  }
  50% {
    transform: rotate(6deg) translate(8px, 4px);
  }
}

@keyframes pulse-mark {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .hero-visual {
    order: -1;
    height: 280px;
    margin-bottom: 0.5rem;
  }

  .brand-logo {
    width: min(100%, 160px);
  }

  .hero h1 {
    max-width: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product + .product {
    border-left: none;
    padding-left: 0;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
  }

  .contact-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 180px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .contact-panel .btn {
    width: 100%;
  }
}
