/*
 * DagForge private preview — static site.
 * Layout and tokens mirror apps/web (PublicHeader, PublicFooter,
 * SectionHeading, ProductPage) so the preview page and the product read as
 * one system. Keep values in sync; do not introduce raw colours below.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap');

:root {
  /* Page is a soft off-white so white cards and tinted bands read as layers.
     Keep --card pure white; the platform app inverts this, the marketing page
     does not. */
  --background: oklch(0.975 0.004 253);
  --foreground: oklch(0.23185 0.0323 266.44);
  --card: oklch(1 0 0);
  --primary: oklch(0.469 0.084 257.657);
  --primary-foreground: oklch(0.98 0.006 248.717);
  --secondary: oklch(0.95 0.006 253);
  --muted: oklch(0.95 0.006 253);
  --muted-foreground: oklch(0.45 0.055 251);
  --accent: oklch(0.962 0.012 249.46);
  --accent-foreground: oklch(0.324 0.072 260.329);
  --border: oklch(0.892 0.011 253);
  --surface: oklch(0.951 0.007 253);
  --surface-muted: oklch(0.933 0.008 253);
  --brand-subtle: oklch(0.958 0.014 248.717);
  --brand-emphasis: oklch(0.324 0.072 260.329);
  --accent-warm: oklch(0.769 0.188 70.08);
  --accent-warm-soft: oklch(0.962 0.059 95.617);
  --success: oklch(0.47 0.2 149);
  /* Accessible variants for small text; the raw warm/success hues are
     decorative and fail contrast on text at these sizes. */
  --brand-amber-text: oklch(0.48 0.14 55);
  --success-text: oklch(0.4 0.15 149);
  --warning: oklch(0.666 0.179 58.318);
  --destructive: oklch(0.577 0.245 27.325);
  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px oklch(0.23185 0.0323 266.44 / 0.05);
  --shadow-md: 0 1px 2px oklch(0.23185 0.0323 266.44 / 0.05),
    0 10px 28px oklch(0.23185 0.0323 266.44 / 0.07);
  --shadow-lg: 0 1px 2px oklch(0.23185 0.0323 266.44 / 0.05),
    0 24px 60px oklch(0.23185 0.0323 266.44 / 0.12);
  color-scheme: light;
}

:root.dark,
:root[data-theme='dark'] {
  --background: oklch(0.179 0.05 265.487);
  --foreground: oklch(0.985 0.004 253);
  --card: oklch(0.23185 0.0323 266.44);
  --primary: oklch(0.705 0.066 256.378);
  --primary-foreground: oklch(0.179 0.05 265.487);
  --secondary: oklch(0.259 0.062 265.566);
  --muted: oklch(0.259 0.062 265.566);
  --muted-foreground: oklch(0.75 0.025 252);
  --accent: oklch(0.324 0.072 260.329);
  --accent-foreground: oklch(0.962 0.012 249.46);
  --border: oklch(0.259 0.062 265.566);
  --surface: oklch(0.23185 0.0323 266.44);
  --surface-muted: oklch(0.259 0.062 265.566);
  --brand-subtle: oklch(0.259 0.062 265.566);
  --brand-emphasis: oklch(0.923 0.023 255.082);
  --accent-warm: oklch(0.828 0.189 84.429);
  --accent-warm-soft: oklch(0.414 0.112 45.904);
  --success: oklch(0.75 0.18 153);
  --warning: oklch(0.828 0.189 84.429);
  --destructive: oklch(0.637 0.237 25.331);
  --brand-amber-text: oklch(0.828 0.189 84.429);
  --success-text: oklch(0.8 0.17 153);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 1px 2px oklch(0 0 0 / 0.3), 0 10px 28px oklch(0 0 0 / 0.28);
  --shadow-lg: 0 1px 2px oklch(0 0 0 / 0.3), 0 24px 60px oklch(0 0 0 / 0.4);
  color-scheme: dark;
}

/* No-JS fallback; the bootstrap script normally sets .dark and data-theme. */
@media (prefers-color-scheme: dark) {
  :root:not(.dark):not([data-theme='light']) {
    --background: oklch(0.179 0.05 265.487);
    --foreground: oklch(0.985 0.004 253);
    --card: oklch(0.23185 0.0323 266.44);
    --primary: oklch(0.705 0.066 256.378);
    --primary-foreground: oklch(0.179 0.05 265.487);
    --secondary: oklch(0.259 0.062 265.566);
    --muted: oklch(0.259 0.062 265.566);
    --muted-foreground: oklch(0.75 0.025 252);
    --accent: oklch(0.324 0.072 260.329);
    --accent-foreground: oklch(0.962 0.012 249.46);
    --border: oklch(0.259 0.062 265.566);
    --surface: oklch(0.23185 0.0323 266.44);
    --surface-muted: oklch(0.259 0.062 265.566);
    --brand-subtle: oklch(0.259 0.062 265.566);
    --brand-emphasis: oklch(0.923 0.023 255.082);
    --accent-warm: oklch(0.828 0.189 84.429);
    --accent-warm-soft: oklch(0.414 0.112 45.904);
    --success: oklch(0.75 0.18 153);
    --warning: oklch(0.828 0.189 84.429);
    --destructive: oklch(0.637 0.237 25.331);
    --brand-amber-text: oklch(0.828 0.189 84.429);
    --success-text: oklch(0.8 0.17 153);
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 1px 2px oklch(0 0 0 / 0.3), 0 10px 28px oklch(0 0 0 / 0.28);
    --shadow-lg: 0 1px 2px oklch(0 0 0 / 0.3), 0 24px 60px oklch(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--brand-subtle);
  color: var(--brand-emphasis);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
}

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

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
  background: color-mix(in oklch, var(--background) 85%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--border) 80%, transparent);
}

.brand .forge {
  color: var(--brand-amber-text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--accent-warm);
}

@media (max-width: 1199px) {
  .brand .badge {
    display: none;
  }
}

.nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  padding: 0.5rem 0.65rem;
  white-space: nowrap;
  border-radius: 0.4rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 120ms ease;
}

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

.nav .soon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
}

.nav .soon span {
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 1150px) {
  .nav {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ------------------------------------------------------------ theme menu */

.theme-menu {
  position: relative;
}

/* ------------------------------------------------------------ mobile nav */

.header-actions .menu-toggle {
  display: inline-flex;
}

@media (min-width: 1150px) {
  .header-actions .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--background);
  box-shadow: var(--shadow-md);
  padding: 0.85rem 1.25rem 1.25rem;
}

.mobile-nav:not([hidden]) {
  display: grid;
  gap: 0.25rem;
}

@media (max-width: 639px) {
  .header-actions a.header-cta {
    display: none;
  }
}

.mobile-nav a:not(.button) {
  padding: 0.7rem 0.5rem;
  border-radius: 0.45rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  font-weight: 500;
}

.mobile-nav a:not(.button):hover {
  background: var(--surface);
  color: var(--foreground);
}

.mobile-nav .button {
  white-space: nowrap;
  margin-top: 0.5rem;
}

@media (min-width: 1150px) {
  .mobile-nav {
    display: none !important;
  }
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition:
    color 120ms ease,
    background 120ms ease;
}

.icon-button:hover {
  background: var(--surface);
  color: var(--foreground);
}

.theme-icon {
  width: 1rem;
  height: 1rem;
}

.theme-icon-sun {
  display: none;
}

.theme-icon-moon {
  display: block;
}

.dark .theme-icon-sun {
  display: block;
}

.dark .theme-icon-moon {
  display: none;
}

.theme-options {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 60;
  display: grid;
  width: 10rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.theme-options[hidden] {
  display: none;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
}

.theme-option:hover {
  background: var(--surface);
  color: var(--foreground);
}

.theme-option[aria-checked='true'] {
  background: var(--brand-subtle);
  color: var(--brand-emphasis);
  font-weight: 600;
}

.theme-option svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
}

/* --------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  white-space: nowrap;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.button:hover {
  opacity: 0.93;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button.secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--foreground);
}

.button.secondary:hover {
  background: var(--surface);
}

.button.small {
  min-height: 2.25rem;
  padding: 0 0.9rem;
  font-size: 0.82rem;
}

.button.large {
  min-height: 3rem;
  padding: 0 1.5rem;
  font-size: 0.98rem;
}

.arrow {
  font-size: 1.05em;
  line-height: 1;
}

.nowrap {
  white-space: nowrap;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(
      55rem 28rem at 12% -8%,
      color-mix(in oklch, var(--brand-subtle) 92%, var(--primary)),
      transparent 62%
    ),
    radial-gradient(
      40rem 24rem at 100% 0%,
      color-mix(in oklch, var(--accent-warm-soft) 70%, transparent),
      transparent 55%
    ),
    var(--background);
}

/* Faint dot grid, fading out before the hero copy. Decorative only. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    color-mix(in oklch, var(--border) 85%, transparent) 1px,
    transparent 0
  );
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 0 5rem;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
    padding: 6rem 0;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--accent-warm);
}

.hero h1 {
  margin-top: 1.25rem;
  max-width: 19ch;
  font-size: clamp(2.3rem, 4.2vw, 3.3rem);
  line-height: 1.12;
}

.hero-copy {
  margin-top: 1.5rem;
  max-width: 33rem;
  color: var(--muted-foreground);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 2.25rem;
}

@media (min-width: 520px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

.hero-note {
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------ hero panel */

.panel-wrap {
  position: relative;
}

.panel-wrap::before {
  content: '';
  position: absolute;
  inset: -1.5rem;
  z-index: -1;
  border-radius: 2rem;
  background: color-mix(in oklch, var(--primary) 8%, transparent);
  filter: blur(24px);
}

.panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.panel-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-weight: 600;
}

.dots {
  display: flex;
  gap: 0.32rem;
}

.dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--border);
}

.dots span:nth-child(1) {
  background: color-mix(in oklch, var(--destructive) 70%, transparent);
}

.dots span:nth-child(2) {
  background: color-mix(in oklch, var(--warning) 80%, transparent);
}

.dots span:nth-child(3) {
  background: color-mix(in oklch, var(--success) 70%, transparent);
}

.panel-body {
  display: grid;
  gap: 0.8rem;
  padding: 1.15rem;
}

.panel-block {
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
}

.panel-block.core {
  border-color: color-mix(in oklch, var(--primary) 25%, var(--border));
  background: var(--brand-subtle);
}

.panel-label {
  color: var(--muted-foreground);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-title {
  margin-top: 0.3rem;
  font-family: 'Manrope', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.panel-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.panel-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini {
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--card);
}

.mini-title {
  font-size: 0.8rem;
  font-weight: 700;
}

.mini-copy {
  margin-top: 0.1rem;
  color: var(--muted-foreground);
  font-size: 0.7rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--muted-foreground);
  font-size: 0.6rem;
  font-weight: 600;
}

.pill.live {
  background: color-mix(in oklch, var(--success) 14%, transparent);
  color: var(--success-text);
}

.pill.live::before {
  content: '';
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: var(--success);
}

.core-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.core-part {
  padding: 0.35rem 0.2rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 0.64rem;
  font-weight: 600;
  text-align: center;
}

.run-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.4rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: var(--card);
  font-size: 0.74rem;
}

.run-name {
  font-weight: 600;
}

.run-meta {
  color: var(--muted-foreground);
  font-size: 0.66rem;
}

/* --------------------------------------------------------------- sections */

.section {
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 6rem 0;
  }
}

.section.tinted {
  background: var(--surface);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 48rem;
}

.section-head.center {
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.section-head h2 {
  max-width: 46rem;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
}

.section-head p {
  max-width: 42rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .section-head p {
    font-size: 1.08rem;
  }
}

/* ----------------------------------------------------------- trust strip */

.trust {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 0;
}

.trust-label {
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2rem;
  margin-top: 1.1rem;
  list-style: none;
}

.trust-list li {
  color: var(--muted-foreground);
  font-family: 'Manrope', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
}

/* --------------------------------------------------------------- compare */

.split {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1000px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.check-list li::before {
  content: '✓';
  flex: none;
  margin-top: 0.05rem;
  color: var(--primary);
  font-weight: 700;
}

.compare {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.compare-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare-card.good {
  border-color: color-mix(in oklch, var(--primary) 25%, var(--border));
  background: var(--brand-subtle);
}

.compare-card h3 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-card.good h3 {
  color: var(--primary);
}

.compare-card ul {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  list-style: none;
}

.compare-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

.compare-card.good li {
  color: var(--foreground);
}

.compare-card li::before {
  content: '×';
  flex: none;
  color: color-mix(in oklch, var(--destructive) 65%, transparent);
  font-weight: 700;
}

.compare-card.good li::before {
  content: '✓';
  color: var(--primary);
}

/* ------------------------------------------------------------- card grid */

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .card.wide {
    grid-column: span 2;
  }

  .card.full {
    grid-column: span 3;
  }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.card:hover {
  border-color: color-mix(in oklch, var(--primary) 20%, var(--border));
  box-shadow: var(--shadow-md);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.55rem;
  background: var(--brand-subtle);
  color: var(--primary);
}

.card h3 {
  margin-top: 1rem;
  font-size: 1.02rem;
}

.card .promise {
  margin-top: 0.15rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.card ul {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.84rem;
}

.card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ------------------------------------------------------------- diagram */

.diagram {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .diagram {
    grid-template-columns: 1fr auto 1.15fr auto 1fr;
    align-items: center;
  }
}

.diagram-box {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.diagram-box.core {
  border-color: color-mix(in oklch, var(--primary) 25%, var(--border));
  background: var(--brand-subtle);
}

.diagram-box h3 {
  font-size: 0.95rem;
}

.diagram-box p {
  margin-top: 0.35rem;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.diagram-list {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
  list-style: none;
}

.diagram-list li {
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: var(--background);
  font-size: 0.74rem;
  font-weight: 500;
}

.arrow-mid {
  display: none;
  color: var(--muted-foreground);
  font-size: 1.25rem;
  text-align: center;
}

@media (min-width: 900px) {
  .arrow-mid {
    display: block;
  }
}

.tenant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tenant-chip {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  font-size: 0.68rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------- steps */

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
  list-style: none;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.8rem;
  font-weight: 700;
}

.step h3 {
  margin-top: 0.85rem;
  font-size: 1rem;
}

.step p {
  margin-top: 0.45rem;
  color: var(--muted-foreground);
  font-size: 0.86rem;
}

/* -------------------------------------------------------- feature grid */

.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------- product mock */

@media (min-width: 1000px) {
  .split.reverse .mock {
    order: 1;
  }

  .split.reverse .split-copy {
    order: 2;
  }
}

.mock {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 0.72rem;
  font-weight: 600;
}

.mock-body {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.method {
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: color-mix(in oklch, var(--success) 16%, transparent);
  color: var(--success-text);
  font-size: 0.62rem;
  font-weight: 700;
}

.code {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.chat {
  display: grid;
  gap: 0.6rem;
}

.chat-user {
  justify-self: end;
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem 0.65rem 0.15rem 0.65rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.8rem;
}

.chat-ai {
  max-width: 92%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem 0.65rem 0.65rem 0.15rem;
  background: var(--surface);
  font-size: 0.8rem;
}

.chat-ai strong {
  font-weight: 700;
}

.chat-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--card);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------- roles */

.role-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
}

@media (min-width: 640px) {
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .role-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.role {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.role h3 {
  margin-top: 0.85rem;
  font-size: 1rem;
}

.role p {
  margin-top: 0.45rem;
  color: var(--muted-foreground);
  font-size: 0.86rem;
}

/* ---------------------------------------------------------------- notice */

.notice {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.75rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid color-mix(in oklch, var(--accent-warm) 40%, var(--border));
  border-radius: var(--radius);
  background: var(--accent-warm-soft);
}

@media (min-width: 800px) {
  .notice {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.notice-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-warm);
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 800;
}

.notice h3 {
  font-size: 0.98rem;
}

.notice p {
  margin-top: 0.2rem;
  color: var(--muted-foreground);
  font-size: 0.86rem;
}

.dark .notice p {
  color: var(--foreground);
}

/* ------------------------------------------------------------------ faq */

.faq {
  display: grid;
  gap: 0.55rem;
  margin-top: 2.5rem;
}

.faq details {
  padding: 0 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--card);
}

.faq summary {
  padding: 1rem 0;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  float: right;
  color: var(--muted-foreground);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding: 0 0 1rem;
  color: var(--muted-foreground);
  font-size: 0.88rem;
}

/* ------------------------------------------------------------------ cta */

.cta {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(
      40rem 20rem at 50% 0%,
      var(--brand-subtle),
      transparent 70%
    ),
    var(--background);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

.cta p {
  max-width: 34rem;
  margin: 0.9rem auto 0;
  color: var(--muted-foreground);
}

.cta .button {
  margin-top: 1.75rem;
}

/* --------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand p {
  max-width: 20rem;
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.65;
}

.footer-col h3 {
  color: var(--muted-foreground);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  list-style: none;
}

.footer-col a,
.footer-col span {
  color: var(--muted-foreground);
  font-size: 0.84rem;
}

.footer-col a:hover {
  color: var(--foreground);
}

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

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.4rem 0;
  color: var(--muted-foreground);
  font-size: 0.74rem;
}

@media (min-width: 800px) {
  .footer-bottom-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.trademark {
  flex-basis: 100%;
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.7rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- legal */

.legal h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.legal h3 {
  margin-top: 1.4rem;
  font-size: 1.05rem;
}

.legal p,
.legal ul {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-top: 0.35rem;
}

.legal .back {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* --------------------------------------------------------------- pillars */

.pillar-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
}

@media (min-width: 700px) {
  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pillar {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.pillar h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
}

.pillar .promise {
  margin-top: 0.15rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.pillar ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
  list-style: none;
}

.pillar li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--muted-foreground);
  font-size: 0.88rem;
}

.pillar li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.supporting-label {
  margin-top: 2.25rem;
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.supporting-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  list-style: none;
}

.supporting-list li {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ----------------------------------------------------------------- form */

.form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  margin-top: 2rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.form input,
.form textarea {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--input);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  font-size: 0.9rem;
}

.form textarea {
  min-height: 6rem;
  resize: vertical;
}

.form .hint {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 400;
}

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

  * {
    transition: none !important;
  }
}
