/* ============================================================
   Artgon — styles
   Design system: Mintlify Landing (see design.md)
   Tokens are CSS custom properties; never reference raw literals.
   ============================================================ */

/* ---------- Tokens: light (default) ---------- */
:root {
  /* surfaces & foreground */
  --base-default: #ffffff;
  --base-invert: #0a0b0f;
  --base-white: #ffffff;
  --base-black: #0a0b0f;
  --background-primary: #fefdfb;
  --background-secondary: #faf8f5;
  --background-tertiary: #ebe9e6;
  --background-tertiary-invert: #485450;
  --foreground-primary: #121715;
  --foreground-invert: #faf8f5;
  --foreground-secondary: #485450;
  --foreground-tertiary: #717d79;
  --foreground-muted: #969e9b;
  /* borders */
  --border-line: #f1f0ee;
  --border-primary: #0000000a;
  --border-secondary: #0000000f;
  --border-tertiary: #00000014;
  --border-muted: #00000080;
  /* brand & status */
  --brand-base: #357b77;
  --brand-vivid: #3f8f8a;
  --brand-8: #357b7714;
  --brand-10: #357b771a;
  --brand-20: #357b7733;
  --error: oklch(0.637 0.237 25.331);

  /* typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-serif: "ABC Arizona Flare", "Fraunces", "Iowan Old Style", Georgia, serif;

  /* layout grid */
  --grid-gap: 16px;
  --grid-margin: 16px;
  --grid-max-width: 1088px;

  /* elevation (soft, diffuse, low-opacity) */
  --shadow-button-sm: 0 1px 2px #0000000f;
  --shadow-drop-sm: 0 1px 2px #0000000f, 0 2px 6px #00000012;
  --shadow-drop-md: 0 2px 6px #0000000f, 0 8px 24px #00000014;
  --shadow-feature-card: 0 12px 40px -12px #00000017, 0 2px 8px #0000000d;
  --shadow-navbar-bg: 0 59px 36px 0 rgba(0, 0, 0, .01), 0 26px 26px 0 rgba(0, 0, 0, .02), 0 7px 14px 0 rgba(0, 0, 0, .02);

  /* motion easings */
  --ease-out-soft: cubic-bezier(.22, 1, .36, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out-smooth: cubic-bezier(.4, 0, .2, 1);
  --ease-out-strong: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out-strong: cubic-bezier(.77, 0, .175, 1);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-sans);
  background: var(--background-primary);
  color: var(--foreground-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  transition: background-color .2s var(--ease-in-out-smooth), color .2s var(--ease-in-out-smooth);
}

:where(h1, h2, h3, h4) { text-wrap: balance; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
:where(p) { text-wrap: pretty; }

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

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

/* Visible focus ring on every interactive element (brand, 2px, 2px offset) */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--brand-base);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--brand-base); color: var(--base-white);
  padding: 8px 14px; border-radius: 4px; box-shadow: var(--shadow-drop-md);
  transition: top .2s var(--ease-out-soft);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.grid-layout-inner {
  width: 100%;
  max-width: var(--grid-max-width);
  margin-inline: auto;
  padding-inline: var(--grid-margin);
}
@media (min-width: 1024px) { :root { --grid-margin: 32px; } }

/* Full-bleed sections; content centers inside via .grid-layout-inner */
.page { width: 100%; }
[data-line] { border-bottom: 1px solid var(--border-line); }
[data-rail] { position: relative; }

.section { padding-block: clamp(64px, 9vw, 128px); }

/* ---------- Ambient glow (radial gradient + blur + slow drift) ---------- */
.has-glow { overflow: hidden; }
.has-glow > .grid-layout-inner { position: relative; z-index: 1; }
.has-glow::before, .has-glow::after {
  content: ""; position: absolute; z-index: 0; border-radius: 999px;
  pointer-events: none; filter: blur(64px); will-change: transform;
}
.has-glow::before {
  width: 520px; height: 520px; top: -180px; right: -140px;
  background: radial-gradient(circle, var(--brand-20), transparent 70%);
  animation: glow-drift-a 28s var(--ease-in-out-smooth) infinite alternate;
}
.has-glow::after {
  width: 420px; height: 420px; bottom: -160px; left: -120px;
  background: radial-gradient(circle, var(--brand-10), transparent 70%);
  animation: glow-drift-b 34s var(--ease-in-out-smooth) infinite alternate;
}
/* mirrored variant so adjacent sections don't repeat the same composition */
.has-glow.glow-alt::before { right: auto; left: -140px; }
.has-glow.glow-alt::after { left: auto; right: -120px; }
@keyframes glow-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-64px, 44px, 0) scale(1.14); }
}
@keyframes glow-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(52px, -36px, 0) scale(.94); }
}

/* ---------- Section headings (design source-of-truth) ---------- */
.section-head { margin-bottom: 44px; }
.section-title {
  font-size: 1.75rem; line-height: 2rem; font-weight: 500; letter-spacing: -0.72px;
}
@media (min-width: 1024px) {
  .section-title { font-size: 2.25rem; line-height: 2.5rem; }
}
.section-sub { display: block; color: var(--foreground-tertiary); font-weight: 400; letter-spacing: -0.01em; margin-top: 10px; font-size: 1rem; line-height: 1.5; max-width: 54ch; }
.minor-title { font-size: 1.15rem; font-weight: 600; margin: 40px 0 20px; letter-spacing: -0.01em; }
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }

.lead { font-size: 1.125rem; color: var(--foreground-secondary); }
.muted { color: var(--foreground-tertiary); }

/* ---------- Buttons ---------- */
.btn {
  --btn-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 500; font-size: .95rem; padding: 11px 20px; border-radius: var(--btn-radius);
  cursor: pointer; border: 0; line-height: 1;
  transition: transform .18s var(--ease-out-soft), background-color .18s var(--ease-in-out-smooth),
              box-shadow .18s var(--ease-out-soft), color .18s var(--ease-in-out-smooth);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand-base); color: var(--base-white);
  box-shadow: var(--shadow-button-sm), inset 0 0 0 1px #ffffff1f;
}
.btn-primary:hover { background: var(--brand-vivid); box-shadow: var(--shadow-drop-sm); }
.btn-ghost {
  background: var(--background-secondary); color: var(--foreground-primary);
  box-shadow: inset 0 0 0 1px var(--border-secondary);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--border-tertiary); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; width: 100%;
  background: color-mix(in srgb, var(--background-primary) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: var(--shadow-navbar-bg);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.brand-logo {
  width: 32px; height: 32px; object-fit: contain;
}
.brand-name { font-size: 1.15rem; }
.brand-accent {
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-weight: 500; letter-spacing: -0.02em; color: var(--brand-base);
}

.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  font-size: .9rem; color: var(--foreground-secondary); padding: 8px 12px; border-radius: 4px;
  transition: color .18s var(--ease-in-out-smooth), background-color .18s var(--ease-in-out-smooth);
}
.nav a:hover { color: var(--foreground-primary); background: var(--brand-8); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 900px) { .header-actions { margin-left: 0; } }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--background-secondary); border-radius: 4px; padding: 3px;
  box-shadow: inset 0 0 0 1px var(--border-secondary);
}
.lang-btn {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  padding: 5px 9px; border-radius: 2px; border: 0; cursor: pointer;
  background: transparent; color: var(--foreground-tertiary);
  transition: color .18s var(--ease-in-out-smooth), background-color .18s var(--ease-in-out-smooth);
}
.lang-btn[aria-pressed="true"] {
  background: var(--brand-base); color: var(--base-white);
  box-shadow: var(--shadow-button-sm);
}
.lang-sep { width: 1px; height: 14px; background: var(--border-secondary); }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 4px; cursor: pointer;
  background: var(--background-secondary); color: var(--foreground-secondary);
  box-shadow: inset 0 0 0 1px var(--border-secondary);
  transition: color .18s var(--ease-in-out-smooth), background-color .18s var(--ease-in-out-smooth);
}
.icon-btn:hover { color: var(--foreground-primary); background: var(--background-tertiary); }
.menu-btn { display: inline-grid; }
@media (min-width: 900px) { .menu-btn { display: none; } .nav { display: flex; } }

/* mobile nav */
.mobile-nav {
  max-height: 0; overflow: hidden; visibility: hidden;
  transition: max-height .25s var(--ease-out-soft), visibility 0s .25s;
  border-top: 1px solid var(--border-line);
}
.mobile-nav.open {
  max-height: 320px; visibility: visible;
  transition: max-height .25s var(--ease-out-soft);
}
.mobile-nav a {
  display: block; padding: 12px 20px; color: var(--foreground-secondary);
  border-bottom: 1px solid var(--border-line); font-size: .95rem;
}
.mobile-nav a:hover { color: var(--foreground-primary); background: var(--brand-8); }
@media (min-width: 900px) { .mobile-nav { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(72px, 11vw, 144px); position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-title {
  font-family: var(--font-serif); font-optical-sizing: auto;
  font-size: clamp(2.5rem, 6.5vw, 4rem); font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.06;
}
.hero-sub { margin-top: 20px; max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 48px;
  width: fit-content; max-width: 100%;
  background: var(--base-white); border-radius: 6px; padding: 22px 28px;
  box-shadow: inset 0 0 0 1px var(--border-line);
}
@media (min-width: 640px) {
  .hero-stats > div + div { border-left: 1px solid var(--border-line); padding-left: 40px; }
}
.hero-stats dt { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--foreground-primary); font-family: var(--font-sans); }
.hero-stats dd { color: var(--foreground-tertiary); font-size: .9rem; margin-top: 2px; }

/* hero topographic contour backdrop */
.hero-contours {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-contours svg { width: 100%; height: 100%; display: block; }
.hero-contours use { fill: none; stroke: var(--brand-base); stroke-width: 1; }
.contour-drift {
  transform-box: fill-box; transform-origin: center;
  will-change: transform;
}
.contour-drift-a { animation: contour-drift-a 36s var(--ease-in-out-smooth) infinite alternate; }
.contour-drift-b { animation: contour-drift-b 44s var(--ease-in-out-smooth) infinite alternate; }
@keyframes contour-drift-a {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to   { transform: translate(-36px, 22px) rotate(5deg) scale(1.07); }
}
@keyframes contour-drift-b {
  from { transform: translate(0, 0) rotate(0deg) scale(1.05); }
  to   { transform: translate(28px, -18px) rotate(-6deg) scale(.96); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--background-secondary); border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--border-line);
}
.card.pad { padding: 24px; }

/* ---------- Categories ---------- */
.category-grid {
  list-style: none; padding: 0; display: grid; gap: var(--grid-gap);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
.category-card {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--border-line);
  transition: box-shadow .18s var(--ease-out-soft);
}
.category-card:hover { box-shadow: inset 0 0 0 1px var(--border-tertiary); }
.category-emoji {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  font-size: 1.25rem; border-radius: 6px; background: var(--background-secondary);
  box-shadow: inset 0 0 0 1px var(--border-secondary);
}
.category-name { font-weight: 500; font-size: .98rem; }

/* ---------- Two column ---------- */
.two-col { display: grid; gap: 40px; align-items: start; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.two-col-text .btn { margin-top: 24px; }

/* ---------- About ---------- */
.about-split { display: grid; gap: 32px; margin-top: 8px; }
@media (min-width: 760px) { .about-split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.about-col { padding-top: 20px; border-top: 1px solid var(--border-line); }
.about-col-title {
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--foreground-muted); margin-bottom: 10px;
}
.about-col p { color: var(--foreground-secondary); max-width: 46ch; }

.benefit-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.benefit-list li {
  display: flex; align-items: flex-start; gap: 12px;
}
.check {
  flex: none; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: var(--brand-base); color: var(--base-white); margin-top: 1px;
}
.check svg { width: 13px; height: 13px; }

/* ---------- Reasons ---------- */
.reason-grid {
  list-style: none; padding: 0; display: grid; gap: var(--grid-gap);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .reason-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reason-grid { grid-template-columns: repeat(4, 1fr); } }
.reason-card {
  padding: 20px 22px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--border-line);
  transition: box-shadow .18s var(--ease-out-soft);
}
.reason-card:hover { box-shadow: inset 0 0 0 1px var(--border-tertiary); }
.reason-num {
  font-family: var(--font-mono); font-size: .8rem; color: var(--foreground-muted);
  display: inline-block; margin-bottom: 12px;
}
.reason-text { font-weight: 500; font-size: 1rem; line-height: 1.35; }

/* ---------- Contact ---------- */
.contact-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-meta li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
@media (max-width: 899px) {
  .contact-meta { gap: 16px; }
  .contact-meta li { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.contact-meta a:hover { color: var(--brand-base); }
.meta-label {
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--foreground-muted); min-width: 84px; display: inline-block;
}
.contact-card { max-width: 560px; padding: 28px; display: grid; gap: 24px; align-content: start; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .btn { flex: 1 1 auto; }

/* ---------- Footer ---------- */
.site-footer { width: 100%; background: var(--background-secondary); }
.footer-bottom { padding-block: 28px; text-align: center; }
.footer-bottom p { font-size: .85rem; }

/* ---------- Motion: honor reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
