/* ============================================================
   Elevatoro — The Blueprint Room
   The dashboard as a technical drawing of the actual building.
   See the direction contract in index.html <body> for the full brief.
   ============================================================ */

@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('/fonts/big-shoulders-display-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/public-sans-variable.woff2') format('woff2');
}

/* Big Shoulders Display, JetBrains Mono and Public Sans carry no Georgian (Mkhedruli)
   glyphs. The /ka/ mirror swaps every role to Noto Sans Georgian instead, scoped to
   <html lang="ka">, so the shared stylesheet still serves both pages. Georgian script
   is unicameral, so the uppercase/tracked label treatment carries over as tracking only. */
@font-face {
  font-family: 'Noto Sans Georgian';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/noto-sans-georgian-variable.woff2') format('woff2');
}

html[lang='ka'] {
  --font-display: 'Noto Sans Georgian', 'Big Shoulders Display', sans-serif;
  --font-mono: 'Noto Sans Georgian', 'JetBrains Mono', sans-serif;
  --font-body: 'Noto Sans Georgian', 'Public Sans', sans-serif;
}

:root {
  /* -- blueprint (dark, page-scale fields) -- */
  --blue-950: #081d38;
  --blue-900: #0d2c52;
  --blue-800: #163f70;
  --line: #bfe0ff;
  --line-soft: rgba(191, 224, 255, 0.34);
  --line-faint: rgba(191, 224, 255, 0.14);
  --line-muted: #a9c3e0;
  --line-dim: #7f9ac2;
  --paper-on-blue: #f4f8ff;
  --amber: #e8a83c;
  --amber-strong: #f4c274;
  --amber-soft: rgba(232, 168, 60, 0.16);

  /* -- vellum (light interior sections) -- */
  --paper: #f6f3e9;
  --ink: #16233d;
  --ink-muted: #4c5b78;
  --ink-faint: #7c88a0;
  --amber-ink: #8f590d;
  --border: #d9d4c4;

  --wrap: 76rem;
  --edge: 1px solid var(--line-soft);

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --tab-cut: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--blue-900);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--blue-900);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.75rem;
}

a {
  color: inherit;
}

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

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

svg {
  display: block;
}

.mono {
  font-family: var(--font-mono);
}

/* ---- shared: dimension / leader-line typography ---- */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ============ header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--blue-800);
  border-bottom: var(--edge);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper-on-blue);
  flex-shrink: 0;
}

.brand-mark {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--amber);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.site-header nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--line-muted);
  transition: color 150ms ease;
  white-space: nowrap;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--paper-on-blue);
}

.site-header nav a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.lang-switch {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(191, 224, 255, 0.3);
}

.lang-switch:hover {
  border-color: var(--line);
  color: var(--paper-on-blue) !important;
}

/* ---- buttons: drafting index-tab shape, cut top-right corner ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem 0.85rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - var(--tab-cut)) 0, 100% var(--tab-cut), 100% 100%, 0 100%);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--amber);
  color: var(--blue-950);
}

.btn-primary:hover {
  background: var(--amber-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--paper-on-blue);
  border-color: rgba(191, 224, 255, 0.4);
}

.btn-ghost:hover {
  border-color: var(--line);
  background: rgba(191, 224, 255, 0.08);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost-dark:hover {
  border-color: var(--ink-muted);
  background: rgba(22, 35, 61, 0.04);
}

.nav-cta {
  padding: 0.55rem 1.05rem 0.55rem 0.9rem;
  font-size: 0.74rem;
  --tab-cut: 10px;
}

.cta-text-short {
  display: none;
}

/* ============ hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue-900);
  min-height: calc(100svh - 4.5rem);
  padding: 4.5rem 0 4rem;
  border-bottom: var(--edge);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60rem 34rem at 12% -12%, rgba(191, 224, 255, 0.12), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  color: var(--paper-on-blue);
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  color: var(--paper-on-blue);
  margin-bottom: 1.15rem;
}

.hero .lead {
  max-width: 34rem;
  font-size: 1.05rem;
  color: #c7d6ec;
}

.cta-row {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.85rem;
  flex-wrap: wrap;
}

.hero-diagram-wrap {
  position: relative;
}

.hero-diagram {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hd-building { fill: none; stroke: var(--line); stroke-width: 1.25; }
.hd-shaft { fill: none; stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.hd-floor-line { stroke: var(--line-faint); stroke-width: 1; }
.hd-dim { stroke: var(--line-soft); stroke-width: 1; }
.hd-dim-text { fill: #9fbcdd; font-family: var(--font-mono); font-size: 14px; }
.hd-car {
  fill: var(--amber-soft);
  stroke: var(--amber);
  stroke-width: 1.25;
}
.hd-car-cached {
  fill: rgba(191, 224, 255, 0.06);
  stroke: var(--line-soft);
  stroke-dasharray: 2 3;
}
.hd-leader { fill: none; stroke: var(--line); stroke-width: 1; }
.hd-callout-title {
  fill: var(--paper-on-blue);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.hd-callout-detail {
  fill: #9fbcdd;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.hd-titleblock-rule { stroke: var(--line-soft); stroke-width: 1; }
.hd-titleblock-label {
  fill: var(--line-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.hd-titleblock-value {
  fill: var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
}
.hd-scale-text {
  fill: var(--line-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.hd-pulse {
  animation: hd-pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}

.hd-draw {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: hd-draw 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hd-draw-1 { animation-delay: 0.15s; }
.hd-draw-2 { animation-delay: 0.55s; }

.hd-fade {
  opacity: 0;
  animation: hd-fade-in 0.6s ease-out forwards;
}
.hd-fade-1 { animation-delay: 0.55s; }
.hd-fade-2 { animation-delay: 0.95s; }

@keyframes hd-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes hd-fade-in {
  to { opacity: 1; }
}
@keyframes hd-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .hd-pulse, .hd-draw, .hd-fade {
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ============ section shared ============ */
section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.on-paper { background: var(--paper); }
.on-blue { background: var(--blue-800); border-top: var(--edge); border-bottom: var(--edge); }

/* ============ features: screen schedule ============ */
.features {
  background: var(--paper);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(246, 243, 233, 0.55) 100%);
  pointer-events: none;
}

.schedule-title {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.6rem;
  margin-bottom: 0;
}

.schedule-head {
  display: grid;
  grid-template-columns: 2.75rem 2.75rem 1fr;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding: 0.75rem 0 0.6rem;
}

.schedule {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.schedule-row {
  display: grid;
  grid-template-columns: 2.75rem 2.75rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}

.schedule-row:nth-child(even) {
  background: rgba(207, 199, 170, 0.16);
}

.schedule-ref {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-ink);
  padding-top: 0.15rem;
}

.schedule-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ink);
}

.schedule-icon svg {
  width: 100%;
  height: 100%;
}

.schedule-row h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.schedule-row p {
  color: var(--ink-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ============ how it works: revision sequence ============ */
.how {
  background: var(--blue-800);
  position: relative;
}

.how .section-head h2,
.how .section-head p {
  color: var(--paper-on-blue);
}

.how .section-head p {
  color: #b9cce6;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 3.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 1.35rem;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-soft) 0 8px, transparent 8px 14px);
}

.steps li {
  position: relative;
  padding: 0 1.5rem 0 0;
  border-left: 1px solid var(--line-soft);
  padding-left: 1.5rem;
}

.steps li:first-child {
  border-left: none;
  padding-left: 0;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue-950);
  background: var(--amber);
  padding: 0.3rem 0.55rem 0.3rem 0.5rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  margin-bottom: 1.1rem;
}

.steps h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--paper-on-blue);
  margin-bottom: 0.4rem;
}

.steps p {
  color: var(--line-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ============ contact: title block ============ */
.contact {
  background: var(--paper);
}

.contact .wrap {
  max-width: 44rem;
}

.title-block {
  border: 1px solid var(--ink);
  padding: 2.75rem 2.5rem;
  position: relative;
}

.title-block::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--border);
  pointer-events: none;
}

.tb-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 1.6rem;
}

.tb-row strong {
  color: var(--ink);
  font-weight: 700;
}

.title-block h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  margin-bottom: 0.9rem;
}

.title-block > p {
  color: var(--ink-muted);
  max-width: 34rem;
}

.title-block .cta-row {
  margin-top: 1.75rem;
}

/* ============ footer ============ */
.site-footer {
  background: var(--blue-950);
  color: var(--line-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 1.75rem;
  border-top: var(--edge);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper-on-blue);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-brand .brand-mark {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--amber);
}

.footer-sheet {
  letter-spacing: 0.06em;
}

/* ============ responsive ============ */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-row {
    justify-content: center;
  }
  .hero-diagram-wrap {
    max-width: 26rem;
    min-width: 0;
    width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .hero-diagram {
    min-width: 460px;
  }
  .schedule-row {
    grid-template-columns: 2.25rem 2.25rem 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
  .steps::before {
    display: none;
  }
  .steps li {
    border-left: none;
    padding-left: 0;
  }
  .steps li:nth-child(2n) {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line-soft);
  }
}

@media (max-width: 640px) {
  section {
    padding: 3.75rem 0;
  }
  .site-header nav {
    gap: 0.3rem;
  }
  .brand {
    font-size: 1.05rem;
    gap: 0.4rem;
  }
  .site-header nav a:not(.nav-cta):not(.lang-switch) {
    display: none;
  }
  .lang-switch {
    padding: 0.35rem 0.4rem;
    font-size: 0.66rem;
  }
  .nav-cta {
    padding: 0.5rem 0.7rem 0.5rem 0.55rem;
    font-size: 0.66rem;
  }
  .cta-text-full {
    display: none;
  }
  .cta-text-short {
    display: inline;
  }
  .hero {
    padding: 3rem 0 2.75rem;
  }
  .schedule-head {
    display: none;
  }
  .schedule-row {
    grid-template-columns: 2rem 1fr;
  }
  .schedule-icon {
    grid-row: 1 / 3;
  }
  .steps {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  .steps li:nth-child(2n) {
    padding-left: 0;
    border-left: none;
  }
  .title-block {
    padding: 2rem 1.5rem;
  }
  .tb-row {
    flex-direction: column;
    gap: 0.35rem;
  }
  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
  }
}
