:root {
  --ink: #15302E;
  --background: #142625;
  --foreground: #F7F1E4;
  --card: #1C3433;
  --primary: #D98A3D;
  --primary-foreground: #1F1A12;
  --muted-foreground: #9C9384;
  --steel: #6FA9B8;
  --border-dark: rgba(247,241,228,0.08);

  --light-bg: #F4ECDC;
  --light-fg: #15302E;
  --light-muted-fg: #6E6256;
  --light-border: #E3D8C0;
  --light-primary: #B23A21;

  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
::selection { background: var(--primary); color: var(--primary-foreground); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(91,99,230,0.10), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(91,99,230,0.06), transparent 70%);
}

.font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; }
.text-muted { color: var(--muted-foreground); }
.text-primary-c { color: var(--primary); }
.bg-primary-c { background-color: var(--primary); }
.text-on-primary { color: var(--primary-foreground); }

.hairline-b { border-bottom: 1px solid var(--border-dark); }
.hairline-t { border-top: 1px solid var(--border-dark); }

.section-light { background-color: var(--light-bg); color: var(--light-fg); }
.section-light .text-muted { color: var(--light-muted-fg); }
.section-light .hairline-t { border-top-color: var(--light-border); }
.section-light .hairline-b { border-bottom-color: var(--light-border); }
.section-light .text-primary-c { color: var(--light-primary); }
.section-light .hover-card:hover { background-color: rgba(0,0,0,0.04); }

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(4px);
  transition: opacity 0.85s var(--ease-slow), transform 0.85s var(--ease-slow), filter 0.85s var(--ease-slow);
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 32s linear infinite; }

.reveal-line { position: relative; }
.reveal-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-snap);
}
.reveal-line:hover::after { transform: scaleX(1); transform-origin: left; }

.cat-row { transition: all 0.3s var(--ease-snap); }
.cat-row:hover { padding-left: 1.5rem; padding-right: 1.5rem; background: rgba(91,99,230,0.06); }
.cat-row .cat-arrow { opacity: 0; transform: translateX(-8px); transition: all 0.3s; }
.cat-row:hover .cat-arrow { opacity: 1; transform: translateX(0); }
.cat-row .cat-num, .cat-row .cat-icon { transition: color 0.3s; }
.cat-row:hover .cat-num, .cat-row:hover .cat-icon { color: var(--primary); }
.cat-row .cat-name { transition: all 0.3s; }
.cat-row:hover .cat-name { color: var(--foreground); transform: translateX(8px); }

.profile-card { transition: all 0.3s var(--ease-snap); }
.profile-card:hover { background: rgba(0,0,0,0.25); transform: translateY(-4px); }
.section-light .profile-card:hover { background: rgba(0,0,0,0.04); }
.profile-card:hover .profile-title { color: var(--primary); }

.faq-btn .faq-icon-plus { display: inline; }
.faq-btn .faq-icon-minus { display: none; }
.faq-item.open .faq-icon-plus { display: none; }
.faq-item.open .faq-icon-minus { display: inline; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease-slow), opacity 0.6s; opacity: 0; }
.faq-item.open .faq-answer { opacity: 1; }

.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-dark);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  outline: none;
  color: inherit;
  transition: border-color 0.3s;
  font-family: inherit;
}
.section-light .field-input { border-bottom-color: var(--light-border); }
.field-input:focus { border-color: var(--primary); }
.section-light .field-input:focus { border-color: var(--light-primary); }

.radio-dot {
  appearance: none;
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  border: 1px solid var(--muted-foreground);
  cursor: pointer;
}
.radio-dot:checked { background: var(--primary); border-color: var(--primary); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 50;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-slow);
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-link { opacity: 0; transform: translateY(20px); transition: all 0.3s; }
.menu-overlay.open .menu-link { opacity: 1; transform: translateY(0); }

/* Active nav state */
.menu-link.is-current .menu-link-title { color: var(--primary) !important; }

/* ---------- custom cursor: smooth square (lerp-driven, hugs hovered elements) ---------- */
html.has-square-cursor, html.has-square-cursor * { cursor: none !important; }
@media (hover: none) { #squareCursor, #cursorDot { display: none !important; } }
#cursorDot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9991;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  transform: translate(-50%, -50%);
  transition: width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1);
}
html.cursor-hover #cursorDot { width: 0; height: 0; }
#squareCursor {
  position: fixed; top: 0; left: 0; z-index: 9990; pointer-events: none;
  width: 40px; height: 40px;
  --tc-corner: 10px;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
#squareCursor .tc-spin { width: 100%; height: 100%; position: relative; }
.tc-corner { position: absolute; width: var(--tc-corner); height: var(--tc-corner); }
.tc-corner::before, .tc-corner::after { content: ''; position: absolute; background: var(--foreground); }
.tc-corner::before { width: 2px; height: var(--tc-corner); }
.tc-corner::after { width: var(--tc-corner); height: 2px; }
.tc-tl { top: 0; left: 0; } .tc-tl::before { top: 0; left: 0; } .tc-tl::after { top: 0; left: 0; }
.tc-tr { top: 0; right: 0; } .tc-tr::before { top: 0; right: 0; } .tc-tr::after { top: 0; right: 0; }
.tc-br { bottom: 0; right: 0; } .tc-br::before { bottom: 0; right: 0; } .tc-br::after { bottom: 0; right: 0; }
.tc-bl { bottom: 0; left: 0; } .tc-bl::before { bottom: 0; left: 0; } .tc-bl::after { bottom: 0; left: 0; }
