/* =========================================================
   CREATORKIT — Design System v2
   Modern sans-serif · clean · airy · professional
   ========================================================= */

:root {
  /* Palette — lighter, more neutral */
  --paper:        #FFFFFF;
  --surface:      #FAFAF7;
  --surface-2:    #F4F3EE;
  --ink:          #0E0E0E;
  --ink-soft:     #2E2E2E;
  --mute:         #6B6B6B;
  --mute-light:   #9A9A9A;
  --line:         #EBEBE5;
  --line-soft:    #F2F1EC;
  --tomato:       #FF4A1C;
  --tomato-soft:  #FFF1EC;
  --mint:         #D3F5E0;
  --white:        #FFFFFF;

  /* Typography */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  /* Rhythm */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows — very subtle */
  --shadow-xs: 0 1px 2px rgba(14,14,14,.04);
  --shadow-sm: 0 1px 3px rgba(14,14,14,.06), 0 1px 2px rgba(14,14,14,.04);
  --shadow-md: 0 8px 24px -12px rgba(14,14,14,.12);
  --shadow-lg: 0 24px 48px -24px rgba(14,14,14,.18);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

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

a { color: inherit; text-decoration: none; transition: opacity .2s ease; }

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }

.display {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--mute);
}

.mono { font-family: var(--font-mono); font-size: 12px; }
.accent { color: var(--tomato); }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.wrap-narrow {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand__dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--tomato);
  position: relative;
}
.brand__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--paper);
  border-radius: 1px;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.nav__links a:hover { color: var(--tomato); opacity: 1; }

@media (max-width: 720px) { .nav__links { display: none; } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #252525; }

.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: #D4D4CE; }

.btn--tomato { background: var(--tomato); color: var(--paper); }
.btn--tomato:hover { background: #E63B10; }

.btn--plain { background: transparent; color: var(--ink); padding: 9px 12px; }
.btn--plain:hover { background: var(--surface); }

.btn--lg { padding: 12px 22px; font-size: 14px; border-radius: 10px; }
.btn--sm { padding: 7px 12px; font-size: 12.5px; border-radius: 7px; }

.btn__arrow { transition: transform .2s ease; font-size: 13px; }
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ============ Form ============ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--mute); }

.input, .textarea, .select {
  width: 100%;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14,14,14,.06);
}
.textarea {
  min-height: 96px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}
.input::placeholder, .textarea::placeholder { color: var(--mute-light); }

.row   { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.row-3 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) {
  .row, .row-3 { grid-template-columns: 1fr; }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--paper);
  cursor: pointer;
  transition: all .15s ease;
  font-weight: 450;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stack-2 > * + * { margin-top: 8px; }
.stack-3 > * + * { margin-top: 14px; }
.stack-4 > * + * { margin-top: 20px; }
.stack-5 > * + * { margin-top: 32px; }
.stack-6 > * + * { margin-top: 48px; }

.muted { color: var(--mute); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 450;
  color: var(--ink-soft);
}
.tag--tomato {
  background: var(--tomato-soft);
  border-color: transparent;
  color: var(--tomato);
}
.tag--dot::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.rise-1 { animation-delay: .04s; }
.rise-2 { animation-delay: .1s; }
.rise-3 { animation-delay: .18s; }
.rise-4 { animation-delay: .26s; }
.rise-5 { animation-delay: .34s; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Footer */
.footer {
  margin-top: 140px;
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer h5 {
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  margin-bottom: 16px;
  letter-spacing: 0;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 13.5px; }
.footer li a:hover { color: var(--tomato); opacity: 1; }
.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--mute);
}
@media (max-width: 640px) { .footer__bar { flex-direction: column; gap: 12px; } }
