/* ============================================================
   Software Kings Hungary — styles.css
   Palette: Danube ink + brass. Type: Bricolage Grotesque /
   Inter Tight / JetBrains Mono. No serifs anywhere.
   ============================================================ */

:root {
  --ink:        #0D141B;
  --ink-raised: #16202B;
  --slate:      #5D6E7E;
  --paper:      #EDEFF1;
  --paper-2:    #F7F8F9;
  --brass:      #C4922F;
  --brass-soft: #E7C888;
  --line-dark:  rgba(237, 239, 241, 0.14);
  --line-light: rgba(13, 20, 27, 0.12);

  --display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --body:    "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --shell: 1160px;
  --pad:   clamp(20px, 5vw, 48px);
  --r:     14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.15rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.85rem); }
h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }

p { margin: 0; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: var(--ink);
  padding: 12px 18px; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

/* ── Eyebrow ─────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 18px;
}
.eyebrow-dark { color: #9A7524; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-dark); }

.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: inherit;
  margin-right: auto;
}
.brand-mark { width: 30px; height: 27px; flex: none; overflow: visible; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display);
  font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em;
}
.brand-place {
  font-family: var(--mono);
  font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass); margin-top: 4px;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  text-decoration: none;
  font-size: 0.93rem;
  color: rgba(237, 239, 241, 0.78);
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--paper); }

.nav-cta {
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--paper) !important;
  transition: border-color .18s ease, background .18s ease;
}
.nav-cta:hover { border-color: var(--brass); background: rgba(196, 146, 47, 0.12); }

.nav-toggle {
  display: none;
  align-items: center; gap: 9px;
  background: none; border: 1px solid var(--line-dark);
  border-radius: 999px; padding: 8px 14px;
  color: var(--paper); font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars i {
  display: block; width: 16px; height: 1.5px; background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child  { transform: translateY(-2.75px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.lede {
  margin-top: 24px;
  max-width: 46ch;
  color: rgba(237, 239, 241, 0.72);
  font-size: 1.06rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-soft); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-dark); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-1px); }

/* ── Signature: the settlement ledger ────────────────── */
.ledger {
  margin: 0;
  background: var(--ink-raised);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 30px);
}
.ledger-head {
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(237, 239, 241, 0.45);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}
.ledger-status { color: var(--brass-soft); transition: color .3s ease; }
.ledger-status.is-settled { color: #7FC9A6; }

.ledger-row { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 26px; }
.ledger-side { display: flex; flex-direction: column; gap: 7px; }
.ledger-side-right { text-align: right; }
.ledger-label {
  font-family: var(--mono);
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(237, 239, 241, 0.42);
}
.ledger-figure {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 1.9vw, 1.28rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.track { position: relative; height: 22px; }
.track-line {
  position: absolute; inset-inline: 0; top: 10px; height: 1px;
  background: var(--line-dark);
}
.track-node {
  position: absolute; left: 50%; top: 10px;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  background: var(--brass);
  transform: rotate(45deg) scale(0);
  transition: transform .45s cubic-bezier(.2,.9,.3,1.4);
}
.track-node.is-on { transform: rotate(45deg) scale(1); }
.track-marker {
  position: absolute; top: 10px;
  width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%;
  background: var(--paper);
  transition: left 1.7s cubic-bezier(.33,.9,.28,1), right 1.7s cubic-bezier(.33,.9,.28,1);
}
.track-marker-a { left: 0; margin-left: -3.5px; }
.track-marker-b { right: 0; margin-right: -3.5px; }
.ledger.is-closing .track-marker-a { left: 50%; }
.ledger.is-closing .track-marker-b { right: 50%; }

.ledger-settled {
  display: flex; flex-direction: column; gap: 7px;
  margin-top: 24px; padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s ease .1s, transform .5s ease .1s;
}
.ledger-settled.is-on { opacity: 1; transform: none; }
.ledger-total {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: -0.03em;
  color: var(--brass-soft);
  font-variant-numeric: tabular-nums;
}
.ledger-terms { color: rgba(237, 239, 241, 0.42); font-size: 0.66rem; }
.ledger-caption {
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(237, 239, 241, 0.38);
}

/* ── Sections ────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-tint { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--paper); }

.section-head { max-width: 62ch; margin-bottom: clamp(38px, 5vw, 58px); }
.section-lede { margin-top: 20px; color: var(--slate); font-size: 1.04rem; max-width: 54ch; }
.section-dark .section-lede { color: rgba(237, 239, 241, 0.7); }

/* ── Cards ───────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--r);
  overflow: hidden;
}
.card { background: var(--paper-2); padding: clamp(26px, 3vw, 34px); }
.card h3 { margin: 20px 0 10px; }
.card p { color: var(--slate); font-size: 0.96rem; }

.icon {
  width: 30px; height: 30px;
  fill: none; stroke: var(--brass); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-inline { width: 18px; height: 18px; stroke: var(--brass); flex: none; }

/* ── Steps ───────────────────────────────────────────── */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 46px);
}
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step-num { color: var(--brass); display: block; margin-bottom: 14px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--slate); font-size: 0.96rem; }

/* ── Team ────────────────────────────────────────────── */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(30px, 4vw, 48px);
}
.member img {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  margin-bottom: 22px;
}
.member h3 { margin-bottom: 6px; }
.member .role { color: var(--brass); margin-bottom: 12px; }
.member p { color: var(--slate); font-size: 0.96rem; }
.member-mail {
  display: inline-block; margin-top: 14px;
  font-size: 0.9rem; color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 2px;
  transition: border-color .18s ease;
  overflow-wrap: anywhere;
}
.member-mail:hover { border-bottom-color: var(--brass); }

/* ── Office ──────────────────────────────────────────── */
.office-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.office-details {
  border-left: 2px solid var(--brass);
  padding-left: clamp(22px, 3vw, 32px);
}
.office-address { font-size: 1.12rem; line-height: 1.75; }
.office-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; text-decoration: none;
  font-size: 0.95rem;
  color: rgba(237, 239, 241, 0.85);
  transition: color .18s ease;
  overflow-wrap: anywhere;
}
.office-link:hover { color: var(--paper); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(237, 239, 241, 0.6);
  border-top: 1px solid var(--line-dark);
  padding: 42px 0;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.brand-footer { color: var(--paper); margin-right: 0; }
.footer-line { font-size: 0.92rem; margin-right: auto; }
.footer-meta { font-size: 0.64rem; color: rgba(237, 239, 241, 0.4); }

/* ── Reveal on scroll ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid, .office-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 6px 0 22px;
    border-top: 1px solid var(--line-dark);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 0; font-size: 1rem; }
  .nav-cta { margin-top: 10px; padding: 11px 22px; }
  .ledger-row { flex-direction: row; }
  .footer-line { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
