/* Deweb — drafting-sheet identity taken from the logo's construction grid. */
:root {
  --slate: #1e2830;      /* the logo's ground */
  --deep: #172027;
  --chalk: #eef1f3;
  --graphite: #97a4ae;
  --line: #34424d;
  --line-soft: rgba(238, 241, 243, 0.07);
  --pencil: #e3cf96;     /* dimension marks and focus only */
  --font: "Urbanist", "FiraGO", system-ui, sans-serif;
  --font-ka: "FiraGO", "Urbanist", system-ui, sans-serif;
  --measure: 34rem;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}

@font-face { font-family: "FiraGO"; src: url("fonts/firago-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "FiraGO"; src: url("fonts/firago-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "FiraGO"; src: url("fonts/firago-600.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("fonts/urbanist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--slate);
  color: var(--chalk);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Georgian text is set in FiraGO; Latin words inside it fall back to Urbanist only where FiraGO has no glyph. */
:root:not([data-lang="en"]) body { font-family: var(--font-ka); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--pencil); }
:focus-visible { outline: 2px solid var(--pencil); outline-offset: 3px; border-radius: 2px; }

/* Language switch: Georgian by default */
:root:not([data-lang="en"]) [data-l="en"],
:root[data-lang="en"] [data-l="ka"] { display: none !important; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.brand img { height: 2.25rem; width: auto; }
.top nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--graphite); }
.top nav a:hover { color: var(--chalk); }
.lang {
  font: inherit; font-size: 0.9rem; color: var(--chalk); cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem;
}
.lang:hover { border-color: var(--graphite); }

/* Hero: the drafting sheet */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .sheet {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero svg.construct { position: absolute; right: max(-5rem, calc(50% - 42rem)); top: 52%; transform: translateY(-50%); width: min(40rem, 50%); height: auto; }
.hero .lede, .hero h1 { text-shadow: 0 0 18px var(--slate), 0 0 4px var(--slate); }
.construct * { fill: none; }
.construct .faint { stroke: var(--chalk); stroke-opacity: 0.13; stroke-width: 1; vector-effect: non-scaling-stroke; }
.construct .mark { stroke: var(--chalk); stroke-width: 24.2; stroke-linejoin: miter; stroke-linecap: butt; }
.hero-body { position: relative; z-index: 1; padding-top: clamp(4rem, 12vw, 9rem); padding-bottom: clamp(4rem, 12vw, 9rem); }
.hero h1 {
  margin: 0; max-width: 18ch; text-wrap: balance;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.02em;
}
.hero h1[data-l="ka"] { font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: 1.12; letter-spacing: 0; max-width: 17ch; }
.hero p.lede { margin: 1.75rem 0 0; max-width: var(--measure); color: var(--graphite); font-size: 1.2rem; }
.actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 1px solid var(--chalk);
}
.btn.solid { background: var(--chalk); color: var(--slate); }
.btn.solid:hover { background: #fff; }
.btn.ghost:hover { background: rgba(238, 241, 243, 0.08); }

/* Dimension line: a drafting annotation that labels what a section measures */
.dim { display: flex; align-items: center; gap: 0.75rem; color: var(--pencil); font-size: 0.9rem; margin-bottom: 2.5rem; }
.dim::before, .dim::after { content: ""; height: 1px; background: currentColor; opacity: 0.6; }
.dim::before { width: 2.5rem; }
.dim::after { flex: 1; }

section.block { padding: clamp(4rem, 9vw, 7rem) 0; border-bottom: 1px solid var(--line); }
section.block.deep { background: var(--deep); }
h2 { margin: 0 0 1rem; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; max-width: 20ch; }
h2[data-l="ka"] { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; letter-spacing: 0; }
h3 { margin: 0; font-size: 1.45rem; line-height: 1.25; font-weight: 600; }
p { margin: 0 0 1rem; }
.muted { color: var(--graphite); }

/* Services ledger */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger > li {
  display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr; gap: 1rem 3rem;
  padding: 2.25rem 0; border-bottom: 1px solid var(--line);
}
.ledger p { max-width: var(--measure); color: var(--graphite); }
.ledger ul.incl { margin: 0.25rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ledger ul.incl li { font-size: 0.9rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.8rem; color: var(--chalk); }

/* Assistant showcase */
.assistant { display: grid; grid-template-columns: 1fr minmax(18rem, 25rem); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.assistant .points { margin: 1.5rem 0 0; padding: 0; list-style: none; max-width: var(--measure); }
.assistant .points li { padding: 0.9rem 0; border-top: 1px solid var(--line); color: var(--graphite); }
.assistant .points li strong { color: var(--chalk); font-weight: 600; display: block; }
.chat {
  border: 1px solid var(--line); border-radius: 22px; background: var(--slate);
  padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.chat .who { font-size: 0.85rem; color: var(--graphite); padding: 0.25rem 0.4rem 0.6rem; border-bottom: 1px solid var(--line); margin-bottom: 0.4rem; }
.msg { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 18px; font-size: 0.97rem; line-height: 1.45; }
.msg.in { align-self: flex-end; background: var(--chalk); color: var(--slate); border-bottom-right-radius: 6px; }
.msg.out { align-self: flex-start; background: #2a3741; border-bottom-left-radius: 6px; }
.chat .note { font-size: 0.85rem; color: var(--pencil); border-top: 1px dashed var(--line); padding-top: 0.7rem; margin-top: 0.3rem; }
.chat-caption { font-size: 0.85rem; color: var(--graphite); margin-top: 0.75rem; }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 1.75rem 1.5rem 0 0; position: relative; }
.steps li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 300; color: var(--pencil); line-height: 1; margin-bottom: 1rem; }
.steps p { color: var(--graphite); max-width: 22rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: end; }
.contact .mail { font-size: clamp(1.6rem, 4.2vw, 3rem); font-weight: 600; text-decoration: none; letter-spacing: -0.01em; word-break: break-all; }
.contact .mail:hover { text-decoration: underline; text-decoration-color: var(--pencil); }

/* Footer */
footer { padding: 2.5rem 0 3rem; color: var(--graphite); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer a { color: var(--chalk); }

/* Legal page */
.legal { padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.legal article { max-width: 44rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 0.75rem; font-weight: 600; }
.legal h2 { font-size: 1.45rem; margin: 2.75rem 0 0.75rem; max-width: none; line-height: 1.3; }
.legal p, .legal li { color: #c9d1d7; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.45rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.97rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.legal th { color: var(--chalk); font-weight: 600; }
.legal td { color: #c9d1d7; }
.legal .updated { color: var(--graphite); }
.legal .box { border: 1px solid var(--pencil); border-radius: 14px; padding: 1.25rem 1.4rem; margin-top: 1rem; }

/* One orchestrated moment: the construction drawing traces itself once */
@media (prefers-reduced-motion: no-preference) {
  /* Construction circles first, then the letter is drawn in one stroke, then the hook. */
  .construct .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.4s cubic-bezier(.65,.05,.25,1) forwards; }
  .construct .c2 { animation-delay: 0.15s; }
  .construct .c3 { animation-delay: 0.3s; }
  .construct .mark .d1 { animation-duration: 2.1s; animation-delay: 0.5s; }
  .construct .mark .d2 { animation-duration: 0.45s; animation-delay: 2.45s; animation-timing-function: ease-out; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
  .top nav .nav-link { display: none; }
  .ledger > li { grid-template-columns: 1fr; gap: 0.75rem; }
  .assistant { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .contact { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero svg.construct { right: -30%; top: auto; bottom: -6%; transform: none; opacity: 0.16; width: 115%; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .brand img { height: 1.9rem; }
}
