/* ============================================
   LYNKVA — base.css
   Tokens, reset, typography, buttons
   Visual system: 1:1 with exactly.ai
   ============================================ */

:root {
  /* Palette */
  --bg: #ffffff;
  --ink: #000000;
  --ink-2: #1e1e1e;
  --head-gray: #b9b9b9;       /* second headline line */
  --text-gray: #9b9b9b;       /* body/desc gray */
  --text-gray-2: #7c7c7c;
  --accent: #2563eb;       /* primary CTA — dashboard ac-primary */
  --accent-hover: #1d4ed8; /* pressed/hover state */
  --accent-tint: #ddedf8;  /* light tint — dashboard c-blue */
  --pill-gray: rgba(124, 124, 124, 0.08);
  --pill-gray-hover: rgba(124, 124, 124, 0.14);
  --card-gray: #f7f7f7;
  --line-dot: #d8d8d8;
  --black: #000000;

  /* Radii — exactly.ai uses 40px panels, 1000px pills */
  --r-panel: 2.5rem;
  --r-pill: 62.5rem;
  --r-join: clamp(1.75rem, 5vw, 3.5rem); /* rounded seam between page and footer */

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif KR", Georgia, serif;

  --t-display: clamp(2rem, 4.4vw, 3rem);      /* 48px */
  --t-feature: clamp(1.15rem, 1.8vw, 1.35rem); /* ~22px */
  --t-body: 1rem;
  --t-small: 0.875rem;

  /* Layout */
  --edge: 0.5rem;               /* full-bleed card gutter */
  --w-content: 73.75rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

ul {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Typography ----------
   exactly.ai sets headings at weight 400 with tight tracking. */
h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.012em;
}

.display {
  font-size: var(--t-display);
  line-height: 1.17;
  text-align: center;
  text-wrap: balance;
}

.display .muted {
  display: block;
  color: var(--head-gray);
}

.feature-title {
  font-size: var(--t-feature);
  line-height: 1.45;
  color: var(--ink);
}

.feature-desc {
  font-size: var(--t-feature);
  line-height: 1.5;
  color: var(--text-gray);
  text-wrap: pretty;
}

/* ---------- Layout ---------- */
/* white page sits on the black footer with rounded bottom corners,
   like exactly.ai */
main {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-radius: 0 0 var(--r-join) var(--r-join);
}

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

.section {
  padding-block: clamp(5rem, 11vw, 10rem);
}

/* dotted divider, like exactly.ai testimonial separators */
.dotted {
  border: none;
  border-top: 0.09375rem dotted var(--line-dot);
}

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.125rem 2rem;
  border-radius: var(--r-pill);
  font-size: var(--t-body);
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-gray {
  background: var(--pill-gray);
  color: var(--ink);
}

.btn-gray:hover {
  background: var(--pill-gray-hover);
}

.btn-black {
  background: var(--ink-2);
  color: #fff;
}

.btn-black:hover {
  background: #000;
}

.btn-sm {
  padding: 0.5625rem 1.125rem;
  font-size: var(--t-small);
}

/* underlined text link, like "View pricing" */
.link-under {
  font-size: var(--t-body);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  color: var(--ink);
}

.link-under:hover {
  color: var(--text-gray-2);
}

.reveal {
  will-change: transform, opacity;
}

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