/* ==========================================================================
   Tennfold Labs — Gumloop-Inspired Light-Mode Product Flagship
   Crisp #FCFCFC canvas, pure #FFFFFF elevated windows, #18191B charcoal ink,
   #EBEBF1 1px hairlines, soft multi-stop paper shadows, and joyful purposeful
   micro-color strictly inside bespoke concierge glyphs, channel icons & data.
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  src: url("../assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Luminous Monochrome Architecture (Gumloop-inspired) */
  --bg: #fcfcfc;
  --surface: #ffffff;
  --stage: #f4f4f6;
  --stage-soft: #f9f9fb;
  --wash: #f1f1f4;
  --hairline: #ebebf1;
  --border: #e2e2e8;

  /* Ink & Contrast Band */
  --ink: #18191b;
  --ink-secondary: #585862;
  --ink-muted: #848490;
  --dark-surface: #18191b;
  --dark-card: #222327;
  --dark-border: rgba(255, 255, 255, 0.12);
  --ink-on-dark: #ffffff;
  --ink-on-dark-muted: rgba(255, 255, 255, 0.68);

  /* Crisp Micro-Color Sparks (strictly for product objects, glyphs & live metrics) */
  --spark-violet: #6e6ade;
  --spark-violet-soft: #f1f0fd;
  --spark-green: #22b567;
  --spark-green-soft: #e7f8ef;
  --spark-blue: #0190ff;
  --spark-blue-soft: #e6f4ff;
  --spark-coral: #ed6142;
  --spark-coral-soft: #fef0ec;
  --spark-amber: #e69d00;
  --spark-amber-soft: #fff6dc;
  --spark-pink: #de51a8;
  --spark-pink-soft: #fcebf5;

  /* Typography — Clean Medium-Weight Geometric Sans (Zero Colored Italics) */
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Layout & Radii (Gumloop 8px buttons / 14px cards / 18px stages) */
  --wrap-max: 1220px;
  --gutter: clamp(18px, 4vw, 48px);
  --section-pad: clamp(72px, 8vw, 118px);
  --radius-btn: 8px;
  --radius-sm: 10px;
  --radius-card: 14px;
  --radius-stage: 18px;

  /* Gumloop Signature Paper-Like Multi-Stop Shadows */
  --shadow-btn:
    0 0 0 1px var(--border),
    0 1px 2px rgba(24, 25, 27, 0.05),
    0 2px 5px rgba(24, 25, 27, 0.04);
  --shadow-card:
    0 0 0 1px var(--hairline),
    0 1px 2px rgba(24, 25, 27, 0.03),
    0 4px 12px rgba(24, 25, 27, 0.04);
  --shadow-window:
    0 0 0 1px var(--border),
    0 2px 4px rgba(24, 25, 27, 0.03),
    0 12px 28px -8px rgba(24, 25, 27, 0.08),
    0 24px 48px -16px rgba(24, 25, 27, 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 300px;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

h1, h2, h3, h4, p, figure, ol, ul, dl, dd, blockquote {
  margin: 0;
}

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

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--spark-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-btn);
  font-size: 0.88rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 14px;
}

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

.tabular {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Gumloop-Style Tactile 8px Rounded Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  font-size: 0.89rem;
  font-weight: 520;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 25, 27, 0.16);
}

.btn--primary:hover:not(:disabled) {
  background: #2c2d32;
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-btn);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--stage-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-secondary);
  padding-inline: 12px;
}

.btn--ghost:hover:not(:disabled) {
  background: var(--wash);
  color: var(--ink);
}

.btn--on-dark {
  background: #ffffff;
  color: var(--ink);
}

.btn--on-dark:hover:not(:disabled) {
  background: #ebebf1;
}

.btn--dark-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn--dark-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* macOS / App Window Dots */
.mac-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mac-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.mac-dots i:nth-child(1) { background: #ff5f57; }
.mac-dots i:nth-child(2) { background: #febc2e; }
.mac-dots i:nth-child(3) { background: #28c840; }

/* Section Kicker (Clean Gumloop-style plain text link/label) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.kicker--dark {
  color: var(--ink-on-dark-muted);
}

@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;
  }
}
