/* heavist.com: the app's colours (Shared/Theme.swift), dark only. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #0B0B0C;
  --surface: #161618;
  --surface2: #222226;
  --border: #2C2C31;
  --text: #F5F5F7;
  --muted: #8E8E93;
  --primary: #FFD60A;
  --primary-soft: rgba(255, 214, 10, 0.14);
  --on-primary: #0B0B0C;
  --display: "Archivo", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.3; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.overline {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.overline.accent { color: var(--primary); }

.lead { margin: 18px 0 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 38em; text-wrap: pretty; }

/* Header */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(44, 44, 49, 0.6);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 20px; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.nav-links > a { color: var(--muted); text-decoration: none; }
.nav-links > a:hover { color: var(--text); }

.languages { display: flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.languages a { padding: 4px 10px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.languages a:hover { color: var(--text); }
.languages a[aria-current] { background: var(--text); color: var(--bg); }

/* Hero */

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; padding: 72px 0 40px; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 34px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 17px;
}
.badge svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge-note { color: var(--muted); font-size: 14px; }

.hero-phones { position: relative; height: 620px; }
.glow {
  position: absolute;
  inset: 12% 0 0 6%;
  background: radial-gradient(closest-side, rgba(255, 214, 10, 0.22), transparent);
  filter: blur(20px);
}
.phone {
  margin: 0;
  padding: 8px;
  border-radius: 46px;
  background: #1C1C1F;
  border: 1px solid #34343A;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.phone img { border-radius: 38px; width: 100%; }
.hero-phones .phone { position: absolute; width: 280px; }
.phone-front { right: 4%; top: 0; }
.phone-back { right: 46%; top: 70px; width: 250px !important; opacity: 0.55; transform: rotate(-6deg); }

/* Sections */

.section { padding: 72px 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.screens figure { margin: 0; }
.screens .phone { max-width: 300px; margin-inline: auto; }
.screens figcaption { max-width: 300px; margin: 22px auto 0; color: var(--muted); font-size: 15px; text-align: center; }
.screens figcaption strong { display: block; margin-bottom: 4px; color: var(--text); font-family: var(--display); font-stretch: 125%; font-size: 17px; }

.library { text-align: center; }
.library .lead { margin-inline: auto; }
.pictograms {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.pictograms li { display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.pictograms svg { width: 58%; height: 58%; }

.ai {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 32px;
  background: linear-gradient(160deg, #1D1B10, var(--surface) 55%);
  border: 1px solid var(--border);
}
.note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 4px 14px;
  padding: 18px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 15px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}
.steps span { align-self: center; }
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--surface2); }
.address code { flex: 1; white-space: nowrap; font: 500 13.5px ui-monospace, "SF Mono", Menlo, monospace; color: var(--primary); }
.copy { flex: none; padding: 8px 14px; border: 0; border-radius: 9px; background: var(--text); color: var(--bg); font: 600 13px var(--body); cursor: pointer; }

.cta { display: grid; justify-items: center; text-align: center; padding: 64px 24px; border-radius: 32px; background: var(--surface); border: 1px solid var(--border); }
.cta img { border-radius: 17px; margin-bottom: 24px; }
.cta .badge { margin-top: 30px; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }

/* Narrower screens */

@media (max-width: 1040px) {
  .ai { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-phones { height: 560px; max-width: 520px; width: 100%; margin-inline: auto; }
  .phone-front { right: 6%; }
  .phone-back { right: auto; left: 2%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: 1fr; gap: 56px; }
  .pictograms { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 600px) {
  .nav-links > a { display: none; }
  .hero-phones { height: 500px; }
  .hero-phones .phone { width: 230px; }
  .phone-back { width: 200px !important; top: 60px; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .pictograms { grid-template-columns: repeat(4, 1fr); }
  .ai { padding: 22px; border-radius: 24px; }
  .steps li { padding: 14px; }
  .address code { font-size: 12.5px; }
  .cta { padding: 48px 20px; }
  .footer { flex-direction: column; }
}
