/* Hadeys — hadeys.com */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #6a7282;
  --faint: #99a1af;
  --line: #e5e7eb;
  --surface: #f3f4f6;
  --surface-2: #f9fafb;
  --ink: #000000;
  --ink-line: #202020;
  --ink-surface: #0d0d0d;
  --radius: 999px;
  --radius-card: 24px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --pad: 56px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: var(--radius);
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: opacity .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--fg); color: #fff; }
.btn-primary:hover { opacity: .82; }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: #c9cdd4; background: var(--surface-2); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 9px;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; color: #4b5563; }
.nav-links a:hover { color: var(--fg); }
.lang { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.lang button {
  background: none; border: 0; padding: 2px 3px; cursor: pointer;
  font: inherit; color: var(--faint);
}
.lang button[aria-pressed="true"] { color: var(--fg); }
.nav-cta { padding: 9px 18px; font-size: 14px; }

/* ---------- hero ---------- */

.section { padding: 0 0 96px; }
[id] { scroll-margin-top: 88px; }
.hero { padding: 92px 0 72px; text-align: center; }
.hero-title { font-size: clamp(42px, 7.6vw, 76px); }
.rotator {
  position: relative;
  display: block;
  height: 1.14em;
  overflow: hidden;
  margin-top: .04em;
}
.rotator-word {
  position: absolute;
  white-space: nowrap;
  left: 0; right: 0; top: 0;
  opacity: 0;
  transform: translateY(102%);
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), opacity .34s ease;
  will-change: transform, opacity;
}
.rotator-word.is-active { opacity: 1; transform: translateY(0); }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-102%); }

html[lang="uk"] .hero-title { font-size: clamp(30px, 6vw, 68px); }

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin: 26px auto 0;
}
.hero-sub em { font-style: italic; color: var(--fg); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-logos { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 56px; }
.logo-row { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.logo-row svg { width: 22px; height: 22px; fill: var(--fg); opacity: .5; transition: opacity .15s ease; }
.logo-row svg:hover { opacity: 1; }

/* ---------- pillar cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-visual {
  min-height: 150px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.card h3 { font-size: 24px; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--muted); }
.card-head { display: flex; flex-direction: column; gap: 8px; }

.bars { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.bar { display: flex; align-items: center; gap: 10px; }
.bar span { font-family: var(--mono); font-size: 11px; color: var(--faint); width: 56px; flex: 0 0 56px; }
.bar i { display: block; height: 10px; border-radius: var(--radius); background: var(--fg); }
.bar.is-next i { background: #d1d5dc; }

.checks { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #4b5563; }
.checks svg { width: 16px; height: 16px; flex: 0 0 16px; }

.domain { font-family: var(--mono); font-size: 20px; font-weight: 500; display: flex; align-items: center; gap: 2px; }
.domain b { font-weight: 500; color: var(--fg); }
.domain span { color: var(--faint); }
.caret { width: 2px; height: 22px; background: var(--fg); margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }

/* ---------- section heads ---------- */

.head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 44px; }
.head h2 { font-size: clamp(30px, 4.4vw, 44px); max-width: 720px; }
.head p { font-size: 17px; color: var(--muted); max-width: 580px; }

/* ---------- services ---------- */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.service { border-top: 1px solid var(--line); padding: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.service-num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.service h3 { font-size: 20px; letter-spacing: -0.01em; }
.service p { font-size: 14px; color: var(--muted); }

/* ---------- ai band ---------- */

.band {
  background: var(--ink);
  border-radius: 28px;
  padding: 80px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.band .label { color: var(--muted); }
.band h2 { font-size: clamp(30px, 4.4vw, 52px); color: #fff; max-width: 880px; line-height: 1.14; }
.band h2 em { font-style: italic; }
.band p { font-size: 17px; color: var(--faint); max-width: 640px; }
.band-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 940px; margin-top: 14px; }
.band-chips .chip { background: var(--ink-surface); border-color: var(--ink-line); color: #fff; }
.band-chips .chip svg { fill: #fff; }

/* ---------- chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
}
.chip svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* ---------- stack ---------- */

.stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
.stack-group { display: flex; flex-direction: column; gap: 14px; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- work ---------- */

.work {
  background: var(--surface);
  border-radius: 28px;
  padding: 64px;
  display: flex;
  align-items: center;
  gap: 72px;
}
.work-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 18px; }
.work-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill-dark {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: var(--fg);
  color: #fff;
  border-radius: var(--radius);
  padding: 4px 9px;
}
.work h3 { font-size: clamp(30px, 3.6vw, 40px); }
.work p { font-size: 17px; color: var(--muted); max-width: 460px; }
.work-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 8px; }
.note { font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* phone mockup */
.phone { flex: 0 0 288px; display: flex; justify-content: center; }
.phone-frame { width: 268px; background: #000; border-radius: 40px; padding: 10px; }
.phone-screen {
  background: #f2f0ea;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 536px;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 12px; }
.phone-brand { font-size: 16px; font-weight: 600; color: #1f5f55; }
.phone-day { font-size: 12px; font-weight: 600; color: #c99a4e; background: #f6f1e6; border-radius: var(--radius); padding: 4px 10px; }
.phone-card {
  margin: 10px 16px;
  background: #fff;
  border: 1px solid #e7e4db;
  border-radius: 20px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: center;
}
.phone-kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #767061; }
.phone-word { font-size: 28px; font-weight: 600; color: #23211c; }
.phone-ipa { font-size: 14px; color: #767061; }
.phone-btn { margin-top: 14px; background: #1f5f55; color: #f4f1e8; border-radius: var(--radius); padding: 12px 24px; font-size: 14px; font-weight: 600; }
.phone-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0 6px; }
.phone-dots i { width: 24px; height: 5px; border-radius: 3px; background: #e9e6dd; }
.phone-dots i.on { background: #1f5f55; }
.phone-foot { font-size: 11px; color: #767061; text-align: center; padding-bottom: 18px; }

/* ---------- about / contact ---------- */

.about { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.about p { font-size: clamp(21px, 2.5vw, 30px); font-weight: 500; line-height: 1.5; letter-spacing: -0.015em; max-width: 880px; }

.contact { border-top: 1px solid var(--line); padding-top: 72px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.contact h2 { font-size: clamp(32px, 4.6vw, 52px); }
.contact p { font-size: 17px; color: var(--muted); max-width: 500px; }
.contact-mail { font-size: 17px; padding: 16px 30px; margin-top: 6px; }
.contact-meta { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 8px; }
.contact-meta a:hover { color: var(--fg); }

/* ---------- footer ---------- */

.site-footer {
  padding: 0 0 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--fg); }

/* ---------- legal page ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 72px 0 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 48px; }
.legal h2 { font-size: 22px; margin: 44px 0 14px; }
.legal p, .legal li { font-size: 16px; color: #374151; line-height: 1.75; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 20px; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 40px;
}
.back:hover { color: var(--fg); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  :root { --pad: 32px; }
  .cards { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .work { flex-direction: column-reverse; gap: 48px; padding: 48px 32px; text-align: center; }
  .work-body { align-items: center; }
  .work p { max-width: 520px; }
  .work-actions { align-items: center; }
  .work-tags { justify-content: center; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .nav { padding: 14px 0; }
  .nav-links { gap: 14px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 15px; font-size: 13px; }
  .tag { display: none; }
  .hero { padding: 56px 0 48px; }
  html[lang="uk"] .hero-title { font-size: clamp(30px, 6vw, 68px); }

.hero-sub { font-size: 16px; }
  .section { padding-bottom: 64px; }
  .head { margin-bottom: 32px; }
  .services { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr; }
  .band { padding: 48px 24px; border-radius: 22px; }
  .card { padding: 24px; }
  .logo-row { gap: 22px; }
  .contact { padding-top: 48px; }
  .site-footer { flex-direction: column; align-items: flex-start; font-size: 11px; }
  .legal { padding: 40px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rotator-word { transition: none; }
  .caret { animation: none; }
}
