/* High Rise static site styles
   Design system: DESIGN.md
   Inter (primary) + JetBrains Mono (labels/metadata). Neon Yellow for primary CTA.
*/

:root {
  --surface: #f8f9fb;
  --surface-dim: #d9dadc;
  --surface-container: #edeef0;
  --surface-container-high: #e7e8ea;
  --on-surface: #191c1e;
  --on-surface-variant: #45474a;
  --outline: #75777a;
  --outline-variant: #c5c6ca;
  --charcoal: #1a1d21;
  --neon: #eaff00;
  --white: #ffffff;
  --glass-border: rgba(15, 17, 19, 0.08);

  --container-max: 1280px;
  --gutter: 24px;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p { overflow-wrap: break-word; word-wrap: break-word; hyphens: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(25, 28, 30, 0.4);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(248, 249, 251, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-dim);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.brand:hover img { transform: scale(1.05); }
.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-surface);
}
.nav {
  display: none;
  gap: 32px;
}
@media (min-width: 768px) { .nav { display: flex; } }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(25, 28, 30, 0.6);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--on-surface); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--neon);
  color: var(--charcoal);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #f4ff33;
}
.btn-primary.lg {
  padding: 16px 32px;
  font-size: 13px;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn:hover .arrow { transform: translateX(4px); }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 128px;
  overflow: hidden;
}
.hero .grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) { .hero .grid { grid-template-columns: 1fr 1fr; } }
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
@media (min-width: 640px) { .hero h1 { font-size: 64px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 72px; } }
.hero h1 .hl {
  display: inline-block;
  background-color: rgba(234, 255, 0, 0.9);
  padding: 0.05em 0.12em;
}
@media (min-width: 640px) { .hero h1 .hl { white-space: nowrap; } }
.hero p.lede {
  font-size: 18px;
  line-height: 28px;
  max-width: 560px;
  color: rgba(25, 28, 30, 0.7);
  margin: 0 0 32px;
}

/* Metrics panel */
.metrics-card {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) { .metrics-card { padding: 32px; } }
.metrics-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.metric { margin-bottom: 32px; }
.metric:last-child { margin-bottom: 0; }
.metric .top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.metric .bar {
  height: 6px;
  width: 100%;
  background: var(--surface-dim);
  overflow: hidden;
}
.metric .bar.dark { background: var(--charcoal); }
.metric .bar > span {
  display: block;
  height: 100%;
  background: var(--neon);
}
.metric .bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}
.metric .bars > span {
  flex: 1;
  background: var(--surface-dim);
  display: block;
}
.metric .bars > span.on { background: var(--neon); }
.green { color: #15803d; }
.metrics-card .foot {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--surface-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metrics-card .foot .stamp {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.metrics-card .foot .chip {
  background: var(--charcoal);
  color: var(--neon);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== Sections ===== */
section { padding: 96px 0; }
@media (min-width: 768px) { section { padding: 120px 0; } }

.section-competencies { background: var(--surface-container); }

.section-head {
  display: grid;
  gap: 48px;
  margin-bottom: 80px;
}
@media (min-width: 1024px) { .section-head { grid-template-columns: 1fr 1fr; } }
.section-head h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
@media (min-width: 640px) { .section-head h2 { font-size: 44px; } }
.section-head .rhs p {
  font-size: 18px;
  line-height: 28px;
  color: rgba(25, 28, 30, 0.6);
  margin: 0;
  align-self: end;
}

.cards {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  background: var(--white);
  padding: 32px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 768px) { .card { padding: 48px; } }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}
.card .icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container);
  color: var(--charcoal);
  margin-bottom: 48px;
  transition: background 0.15s ease;
}
.card:hover .icon { background: var(--neon); }
.card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 16px;
}
@media (min-width: 768px) {
  .card h3 { min-height: calc(1.2em * 2); }
}
.card p {
  font-size: 14px;
  line-height: 22px;
  color: rgba(25, 28, 30, 0.6);
  margin: 0;
}
.card::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 4px;
  background: var(--neon);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.card:hover::after { opacity: 1; }
@media (min-width: 768px) {
  .card::after { left: 48px; right: 48px; }
}

/* Scale section */
.scale-head h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
@media (min-width: 768px) { .scale-head h2 { font-size: 56px; } }
.scale-head p {
  max-width: 560px;
  color: rgba(25, 28, 30, 0.6);
  margin: 0 0 80px;
}
.steps {
  display: grid;
  gap: 1px;
  background: var(--surface-dim);
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .step { min-height: 360px; gap: 0; justify-content: space-between; }
}
.step.accent { background: var(--neon); }
.step .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.step h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.step p {
  margin: 0;
  color: rgba(25, 28, 30, 0.65);
}
.step.accent p { color: var(--charcoal); font-weight: 700; }
@media (min-width: 768px) { .step { padding: 48px; min-height: 360px; gap: 48px; } }
.step .top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* CTA (dark) */
.cta-dark {
  background: var(--charcoal);
  color: var(--white);
}
.cta-dark .grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) { .cta-dark .grid { grid-template-columns: 1fr 1fr; } }
.cta-dark h2 {
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 700;
}
@media (min-width: 768px) { .cta-dark h2 { font-size: 80px; } }
.cta-dark .sub {
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  max-width: 440px;
}
.cta-dark .email-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 12px;
}
.cta-dark .email {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  word-break: break-word;
  transition: color 0.15s ease;
  display: inline-block;
}
@media (min-width: 640px) { .cta-dark .email { font-size: 32px; } }
.cta-dark .email:hover { color: var(--white); }

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 48px 0;
}
.site-footer .row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .site-footer .row { flex-direction: row; align-items: center; }
}
.site-footer .brand img {
  height: 32px;
  filter: brightness(0) invert(1);
}
.site-footer .brand-name { color: var(--white); }
.site-footer p.copy {
  margin: 12px 0 8px;
  max-width: 320px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer a.email {
  font-size: 13px;
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer a.email:hover { color: var(--white); }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
}
.site-footer nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-footer nav a:hover { color: var(--white); border-bottom-color: var(--white); }

/* ===== Legal pages ===== */
.legal {
  padding: 96px 0;
  min-height: 80vh;
}
.legal .grid {
  display: grid;
  gap: 64px;
}
@media (min-width: 1024px) { .legal .grid { grid-template-columns: 1fr 3fr; } }
.legal aside .meta {
  margin-bottom: 48px;
}
.legal aside .meta p {
  margin: 4px 0 0;
  font-weight: 500;
}
.legal h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  line-height: 1;
}
@media (min-width: 1024px) { .legal h1 { font-size: 96px; } }
.legal .rule {
  height: 1px;
  background: var(--surface-dim);
  margin: 48px 0;
}
.legal article p {
  font-size: 18px;
  line-height: 28px;
  color: rgba(25, 28, 30, 0.7);
  margin: 0 0 24px;
}
.legal article h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.legal article a {
  text-decoration: underline;
  text-decoration-color: var(--neon);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.legal article a:hover { color: var(--charcoal); }

.legal .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.legal .chip {
  background: var(--surface-dim);
  color: var(--charcoal);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal .chip.ghost {
  background: transparent;
  color: rgba(25, 28, 30, 0.4);
  padding-left: 0;
}
