/* ============================================
   PDICT — Observability Architect
   Pure CSS, no framework. Modern features only.
   ============================================ */

/* --- Self-hosted Fonts --- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(fonts/syne-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(fonts/syne-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Icon Base --- */
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* --- Custom Properties --- */
:root {
  --primary: #ec5b13;
  --primary-glow: #ec5b1340;
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: rgba(255, 255, 255, 0.025);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --cyan: #00f5ff;
  --magenta: #ff00e5;
  --text: #e4e4e7;
  --text-muted: #71717a;
  --text-dim: #3f3f46;
  --white: #fafafa;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1200px;
  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--primary-glow);
  color: var(--white);
}

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

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

address {
  font-style: normal;
}

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-primary { color: var(--primary); }
.text-cyan { color: var(--cyan); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
}

.section-title--center {
  text-align: center;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.expertise__cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.expertise__cards .reveal:nth-child(3) { transition-delay: 0.2s; }
.toolbelt__grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.toolbelt__grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.toolbelt__grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.toolbelt__grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.toolbelt__grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.toolbelt__grid .reveal:nth-child(7) { transition-delay: 0.3s; }
.toolbelt__grid .reveal:nth-child(8) { transition-delay: 0.35s; }
.peekmon__features .reveal:nth-child(2) { transition-delay: 0.1s; }
.peekmon__features .reveal:nth-child(3) { transition-delay: 0.2s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 32px var(--primary-glow);

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--primary-glow);
  }
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid var(--border);

  &:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
  }
}

.btn--dark {
  background: var(--bg);
  color: var(--white);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);

  &:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  }
}

.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  border-radius: var(--radius);
}

.btn--lg {
  padding: 1.15rem 2.5rem;
  font-size: 1.1rem;
}

.btn--xl {
  padding: 1.4rem 3rem;
  font-size: 1.35rem;
  border-radius: var(--radius-xl);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;

  &:hover {
    color: var(--primary);
  }
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.nav__toggle[aria-expanded="true"] {
  .nav__toggle-bar:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
  }
  .nav__toggle-bar:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 10rem) 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

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

/* Honeycomb Animation */
.honeycomb-anim {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.22;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

.honeycomb-anim.hc-phase-terminal {
  opacity: 0.55;
}

.honeycomb-svg {
  width: 100%;
  max-width: 550px;
  height: auto;
  transition: transform 1.5s var(--ease-out), opacity 0.8s ease;
  will-change: transform, opacity;
}

.honeycomb-terminal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  font-family: 'Courier New', monospace;
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  line-height: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
  max-width: 700px;
  margin: 0 auto;
}

.honeycomb-terminal.visible { opacity: 1; }

.honeycomb-terminal .log-line {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
}

.honeycomb-terminal .log-line.shown {
  opacity: 1;
  transform: translateY(0);
}

.honeycomb-terminal .log-resolve {
  margin-top: 4px;
  padding: 3px 8px;
  background: rgba(34, 197, 94, 0.06);
  border-left: 2px solid #22c55e;
  border-radius: 0 4px 4px 0;
}

.honeycomb-terminal .log-metrics {
  margin-top: 8px;
  padding: 5px 8px;
  background: rgba(0, 245, 255, 0.03);
  border: 1px solid rgba(0, 245, 255, 0.08);
  border-radius: 4px;
  font-size: 0.85em;
}

/* Hex alert flicker */
.hc-alert polygon {
  animation: hc-flicker 0.6s ease-in-out infinite;
}

.hc-alert circle[r="25"] {
  animation: hc-pulse-ring 1.2s ease-out infinite;
}

@keyframes hc-flicker {
  0%, 100% { stroke: #ff4444; fill: #1a0808; }
  50% { stroke: #ec5b13; fill: #2a0f0a; }
}

@keyframes hc-pulse-ring {
  0% { r: 25; opacity: 0.5; }
  100% { r: 50; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .honeycomb-anim { display: none; }
}

.hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.hero__glow--orange {
  top: -10%;
  left: 15%;
  background: var(--primary);
  opacity: 0.15;
}

.hero__glow--cyan {
  bottom: -10%;
  right: 15%;
  background: var(--cyan);
  opacity: 0.07;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 80rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: rgba(236, 91, 19, 0.08);
  border: 1px solid rgba(236, 91, 19, 0.2);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2.5rem;
}

.hero__pulse {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;

  &::before,
  &::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary);
  }

  &::before {
    animation: pulse 2s ease-in-out infinite;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(2.5); opacity: 0; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7.5vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--white);
  margin-bottom: 2rem;

  em {
    font-style: italic;
    color: var(--primary);
  }
}

.hero__dot {
  color: var(--primary);
}

.hero__subtitle {
  max-width: 48rem;
  margin: 0 auto 3rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 500;

  strong {
    color: var(--primary);
    font-weight: 700;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Expertise --- */
.expertise {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: var(--bg);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.expertise__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.expertise__intro {
  .section-title {
    margin-bottom: 2rem;
  }
}

.expertise__body {
  p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
  }
}

.expertise__quote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.5rem;
  background: rgba(236, 91, 19, 0.04);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.expertise__quote--cyan {
  border-left-color: var(--cyan);
  background: rgba(0, 245, 255, 0.04);
  margin-bottom: 2rem;
}

.expertise__stats {
  display: flex;
  gap: 1rem;
}

.stat {
  flex: 1;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.stat__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  font-weight: 700;
  margin-top: 0.25rem;
}

.expertise__cards {
  display: grid;
  gap: 1.25rem;
}

/* --- Cards --- */
.card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.5s ease;
}

.card:hover {
  border-color: var(--border-hover);
}

.card--magenta:hover { border-color: rgba(255, 0, 229, 0.35); }
.card--cyan:hover { border-color: rgba(0, 245, 255, 0.35); }
.card--primary:hover { border-color: rgba(236, 91, 19, 0.35); }

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card__icon {
  font-size: 2.75rem;
}

.card__icon--magenta { color: var(--magenta); }
.card__icon--cyan { color: var(--cyan); }
.card__icon--primary { color: var(--primary); }

.card__tag {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card__tag--magenta {
  background: rgba(255, 0, 229, 0.08);
  color: var(--magenta);
}

.card__tag--cyan {
  background: rgba(0, 245, 255, 0.08);
  color: var(--cyan);
}

.card__tag--primary {
  background: rgba(236, 91, 19, 0.08);
  color: var(--primary);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Peekmon --- */
.peekmon {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: var(--bg);
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.peekmon__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.peekmon__showcase {
  position: relative;
}

.peekmon__glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.12), rgba(236, 91, 19, 0.12));
  border-radius: var(--radius-xl);
  filter: blur(40px);
  opacity: 0.5;
  transition: opacity 0.8s ease;
}

.peekmon__showcase:hover .peekmon__glow {
  opacity: 0.8;
}

.peekmon__frame {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 0.5rem;
  overflow: hidden;
}

.peekmon__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 0.25rem);
}

.peekmon__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.peekmon__icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-lg);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.peekmon__product-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
}

.peekmon__product-tagline {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.peekmon__description {
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.peekmon__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
  transition: gap 0.3s var(--ease-out);

  &:hover {
    gap: 0.8rem;
  }
}

.peekmon__story {
  .section-title {
    margin-bottom: 1.5rem;
  }
}

.peekmon__intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.peekmon__features {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.peekmon__feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.peekmon__check {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(0, 245, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;

  .icon {
    width: 0.9rem;
    height: 0.9rem;
    fill: var(--cyan);
  }
}

.peekmon__feature-title {
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.peekmon__feature-text {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Toolbelt --- */
.toolbelt {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: #0f172a;
  color: var(--white);
  overflow: hidden;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.toolbelt__grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(90deg, white 0, white 1px, transparent 1px, transparent),
    repeating-linear-gradient(0deg, white 0, white 1px, transparent 1px, transparent);
  background-size: calc(100% / 12) 100%, 100% calc(100% / 6);
  pointer-events: none;
}

.toolbelt__inner {
  position: relative;
  z-index: 1;
}

.toolbelt__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.toolbelt__divider {
  width: 5rem;
  height: 4px;
  background: var(--primary);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.toolbelt__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tool-card {
  padding: 2rem 1.25rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: all 0.35s var(--ease-out);
  cursor: default;
}

.tool-card__icon {
  font-size: 2.75rem;
  transition: color 0.35s ease;
}

.tool-card--primary {
  .tool-card__icon { color: var(--primary); }
  &:hover {
    background: var(--primary);
    border-color: var(--primary);
    .tool-card__icon { color: white; }
  }
}

.tool-card--cyan {
  .tool-card__icon { color: var(--cyan); }
  &:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #0a0a0a;
    .tool-card__icon { color: #0a0a0a; }
  }
}

.tool-card--magenta {
  .tool-card__icon { color: var(--magenta); }
  &:hover {
    background: var(--magenta);
    border-color: var(--magenta);
    .tool-card__icon { color: white; }
  }
}

.tool-card__label {
  font-weight: 800;
  font-size: 1rem;
}

/* --- CTA --- */
.cta {
  position: relative;
  padding: clamp(5rem, 10vw, 10rem) 1.5rem;
  background: var(--primary);
  color: white;
  text-align: center;
  overflow: hidden;
}

.cta__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.cta__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 3rem;
}

/* --- Footer --- */
.footer {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  .nav__brand {
    margin-bottom: 1.5rem;
  }
}

.footer__legal {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.8;

  strong {
    color: var(--text-muted);
  }
}

.footer__heading {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;

  a {
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;

    &:hover { color: var(--primary); }
  }
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;

  a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;

    .icon {
      fill: var(--primary);
      width: 1.2rem;
      height: 1.2rem;
    }

    &:hover { color: var(--primary); }
  }
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;

  p {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
  }
}

.footer__tags {
  display: flex;
  gap: 1.5rem;

  span {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    opacity: 0.5;
  }
}

/* ============================================
   Responsive — Desktop up
   ============================================ */
@media (min-width: 768px) {
  .nav__toggle { display: none; }

  .expertise__grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }

  .peekmon__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .toolbelt__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 90;
  }

  .nav__links--open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links .nav__link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
  }

  .nav__links .btn {
    font-size: 1.2rem;
    padding: 0.75rem 2rem;
  }

  .nav__toggle {
    position: relative;
    z-index: 95;
  }

  .hero__title {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;

    .btn {
      width: 100%;
      max-width: 20rem;
      justify-content: center;
    }
  }

  .btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .btn--xl {
    padding: 1.15rem 2.25rem;
    font-size: 1.15rem;
  }
}

/* ============================================
   Performance: reduce motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__pulse::before {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   SEO/GEO layer (2026-09-15): skip link, language toggle, FAQ, 404
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Two links, one per page; the current language is a span, not a link. */
.lang-toggle { display: flex; gap: 2px; }
.lang-toggle__btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-toggle__btn:hover { color: var(--white); }
.lang-toggle__btn--active { color: var(--white); background: rgba(255, 255, 255, 0.08); }

.faq {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: var(--bg-elevated);
}
.faq .container { max-width: 820px; }
.faq__list { margin-top: 3rem; display: grid; gap: 0.75rem; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 0 1.5rem;
  transition: border-color 0.3s ease;
}
.faq__item:hover, .faq__item[open] { border-color: var(--border-hover); }
.faq__question {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+';
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s var(--ease-out);
}
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__answer { color: var(--text-muted); line-height: 1.7; padding: 0 0 1.25rem; }

.notfound { min-height: 100vh; display: flex; align-items: center; padding: 6rem 0; }
.notfound__code { color: var(--primary); font-weight: 800; letter-spacing: 0.2em; margin-bottom: 1rem; }
.notfound__text { color: var(--text-muted); margin-top: 1rem; line-height: 1.7; }
.notfound__text a { color: var(--primary); }

/* Contrast (WCAG AA on #0a0a0a): the footer greys measured 1.3 to 4.1 : 1 and white on the orange button 3.5 : 1. */
.footer__legal, .footer__heading, .footer__bottom p { color: #a1a1aa; }
.footer__legal strong { color: var(--text); }
.footer__nav a, .footer__links a { color: #a1a1aa; }
.footer__tags span { color: #8b8b94; opacity: 1; }
.btn--primary { color: var(--bg); }
