/* NEW TECH LLC - site styles */

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-armenian-armenian-400-normal.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}
@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-armenian-armenian-500-normal.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}
@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-armenian-armenian-600-normal.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}
@font-face {
  font-family: "Noto Sans Armenian";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-armenian-armenian-700-normal.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0d1117;
  --bg-soft: #111720;
  --surface: #161b22;
  --surface-2: #1c2330;
  --border: #30363d;
  --border-soft: #21262d;

  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #6e7681;

  --accent: #58a6ff;
  --accent-strong: #1f6feb;
  --accent-soft: rgba(56, 139, 253, 0.12);
  --green: #3fb950;
  --orange: #d29922;
  --purple: #bc8cff;
  --red: #ff7b72;

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

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1160px;
  --gutter: 24px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent-strong);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 12px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(13, 17, 23, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.brand {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
}
.brand small {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background-color 0.15s;
}
.nav a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.header-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-muted);
}
.lang-switch a:hover {
  color: var(--text);
  text-decoration: none;
}
.lang-switch a[aria-current="true"] {
  background: var(--surface-2);
  color: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  font: 600 15px/1.2 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-strong);
  color: #fff;
}
.btn-primary:hover {
  background: #388bfd;
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}
.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 14px;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border-soft);
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(31, 111, 235, 0.22), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 60px);
}
.hero h1 .accent {
  background: linear-gradient(90deg, #79c0ff, #58a6ff 45%, #bc8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: 18px;
  color: var(--text-muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border-soft);
}
.hero-facts div {
  min-width: 0;
}
.hero-facts dt {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.hero-facts dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero visual: code window + phone */
.hero-visual {
  position: relative;
  min-height: 460px;
}

.window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.window-bar i:nth-child(2) {
  background: #febc2e;
}
.window-bar i:nth-child(3) {
  background: #28c840;
}
.window-bar span {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.code-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
}
.code-window pre {
  margin: 0;
  padding: 18px 20px 22px;
  font: 400 13px/1.75 var(--font-mono);
  color: var(--text);
  white-space: pre;
  overflow: hidden;
}
.tok-k { color: var(--red); }
.tok-t { color: var(--purple); }
.tok-s { color: #a5d6ff; }
.tok-f { color: #d2a8ff; }
.tok-n { color: #79c0ff; }

.phone {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 216px;
  height: 440px;
  padding: 10px;
  background: #0a0d12;
  border: 1px solid #3a414b;
  border-radius: 38px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #1b2028;
}
.phone-screen {
  position: relative;
  height: 100%;
  padding: 34px 14px 14px;
  border-radius: 29px;
  background: linear-gradient(180deg, #131a24, #0f141b);
  overflow: hidden;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 72px;
  height: 20px;
  margin-left: -36px;
  background: #000;
  border-radius: 999px;
}
.app-title {
  font-size: 18px;
  font-weight: 700;
}
.app-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}
.app-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
}
.app-card.hl {
  background: linear-gradient(135deg, #1f6feb, #6e40c9);
  border-color: transparent;
}
.app-card small {
  display: block;
  font-size: 10px;
  color: rgba(230, 237, 243, 0.75);
}
.app-card strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
}
.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.app-row + .app-row {
  margin-top: 10px;
}
.app-dot {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(88, 166, 255, 0.3);
}
.app-dot.g {
  background: rgba(63, 185, 80, 0.15);
  border-color: rgba(63, 185, 80, 0.35);
}
.app-dot.o {
  background: rgba(210, 153, 34, 0.15);
  border-color: rgba(210, 153, 34, 0.35);
}
.app-bar {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--border-soft);
  overflow: hidden;
}
.app-bar b {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.app-tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-radius: 16px;
  background: rgba(28, 35, 48, 0.9);
  border: 1px solid var(--border-soft);
}
.app-tabbar i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--border);
}
.app-tabbar i:first-child {
  background: var(--accent);
}

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.card h3 {
  margin-top: 18px;
  font-size: 19px;
}
.card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.25);
}
.card-icon svg {
  width: 22px;
  height: 22px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.card-tags li {
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
}

/* ---------- Process ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}
.step h3 {
  margin-top: 12px;
  font-size: 18px;
}
.step p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
}
.step ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.step li + li {
  margin-top: 4px;
}
.step li::before {
  content: "→ ";
  color: var(--green);
}

/* ---------- Stack ---------- */
.stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.stack-group {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.stack-group h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ---------- Company ---------- */
.company {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}
.company-title {
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 40px);
}
.company-text p + p {
  margin-top: 16px;
}
.company-text p {
  color: var(--text-muted);
  font-size: 16px;
}

.details {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.details .window-bar {
  border-bottom-color: var(--border);
}
.details-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-soft);
}
.details-row:first-of-type {
  border-top: 0;
}
.details dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.details dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.details dd span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Contact ---------- */
.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  padding: 48px;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(31, 111, 235, 0.18), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.contact-box h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.contact-box > div > p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 17px;
}
.contact-box .btn {
  margin-top: 28px;
}
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
}
.contact-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.contact-list .card-icon {
  flex: none;
  width: 40px;
  height: 40px;
}
.contact-list small {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.contact-list a,
.contact-list span {
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}
.contact-list a:hover {
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  font-size: 14px;
  color: var(--text-muted);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.footer-top p {
  margin-top: 14px;
  max-width: 380px;
}
.footer-col h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-col ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.footer-col li + li {
  margin-top: 8px;
}
.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--text);
}
.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-legal p {
  margin: 0;
}
.footer-legal:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 64px 0 96px;
}
.legal .container {
  max-width: 820px;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
}
.legal .meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.legal .lead {
  margin-top: 24px;
  font-size: 17px;
  color: var(--text-muted);
}
.legal h2 {
  margin-top: 44px;
  font-size: 22px;
}
.legal h3 {
  margin-top: 24px;
  font-size: 17px;
}
.legal p,
.legal li {
  color: #c9d1d9;
}
.legal p {
  margin-top: 14px;
}
.legal ul {
  margin: 14px 0 0;
  padding-left: 22px;
}
.legal li + li {
  margin-top: 6px;
}
.legal .toc {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.legal .toc ol {
  margin: 10px 0 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 32px;
  font-size: 15px;
}
.legal .toc li {
  break-inside: avoid;
}
.legal .toc strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.legal .contact-card {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.legal .contact-card p {
  margin: 0;
}
.legal .contact-card p + p {
  margin-top: 4px;
}

/* ---------- 404 ---------- */
main {
  flex: 1 0 auto;
}

.not-found {
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.not-found .code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}
.not-found h1 {
  margin-top: 12px;
  font-size: clamp(32px, 5vw, 48px);
}
.not-found p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 17px;
}
.not-found .hero-cta {
  margin-top: 28px;
}

/* ---------- Reveal on scroll ---------- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ---------- Header: switch to the compact (burger) menu ----------
   Measured header widths: EN needs ~820px without the "Contact us" button and
   ~930px with it; Armenian labels are longer: ~1010px and ~1150px. */
@media (max-width: 999px) {
  .header-cta {
    display: none;
  }
}
@media (max-width: 1219px) {
  html[lang="hy"] .header-cta {
    display: none;
  }
}
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 12px;
    font-size: 16px;
  }
  .header-cta {
    display: none;
  }
}
@media (max-width: 1079px) {
  html[lang="hy"] .menu-toggle {
    display: inline-flex;
  }
  html[lang="hy"] .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    display: none;
  }
  html[lang="hy"] .nav.is-open {
    display: flex;
  }
  html[lang="hy"] .nav a {
    padding: 12px;
    font-size: 16px;
  }
  html[lang="hy"] .header-cta {
    display: none;
  }
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .stack,
  .company,
  .contact-box,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .company {
    gap: 32px;
  }
  .contact-box {
    padding: 32px 24px;
  }
  .legal .toc ol {
    columns: 1;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
  .section {
    padding: 72px 0;
  }
  .hero {
    padding: 56px 0 72px;
  }
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }
  .grid-3,
  .grid-4,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    min-height: 400px;
  }
  .code-window {
    width: 92%;
  }
  .code-window pre {
    font-size: 11.5px;
    padding: 14px 16px 18px;
  }
  .phone {
    width: 184px;
    height: 372px;
    right: 0;
  }
  .details-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .card {
    padding: 24px;
  }
}

/* Phone mockup progress bars */
.app-bar .bar-a {
  width: 82%;
}
.app-bar .bar-b {
  width: 56%;
  background: var(--green);
}
.app-bar .bar-c {
  width: 34%;
  background: var(--orange);
}

/* Armenian words are longer: keep headings compact and never split "Android-ի" */
.nowrap {
  white-space: nowrap;
}
:lang(hy) .hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
}
:lang(hy) .section-head h2,
:lang(hy) .contact-box h2,
:lang(hy) .company-title {
  font-size: clamp(26px, 3.4vw, 36px);
}

/* Very narrow phones: tighten the header so the full name "New Tech LLC" fits */
@media (max-width: 360px) {
  .site-header .container {
    gap: 8px;
  }
  .brand {
    gap: 8px;
    font-size: 16px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .header-actions {
    gap: 6px;
  }
  .lang-switch a {
    padding: 4px 8px;
  }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 20px;
  background: rgba(22, 27, 34, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(calc(100% + 32px));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(88, 166, 255, 0.25);
  color: var(--accent);
}
.cookie-icon svg {
  width: 22px;
  height: 22px;
}
.cookie-text {
  flex: 1;
  min-width: 0;
}
.cookie-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.cookie-text p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.cookie-text a {
  white-space: nowrap;
}
.cookie-actions {
  flex: none;
  display: flex;
  gap: 10px;
}
.cookie-actions .btn {
  min-width: 108px;
}

/* Footer "Cookie settings" link (a button styled as a link) */
.link-btn {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}
.link-btn:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 680px) {
  .cookie-banner {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .cookie-icon {
    display: none;
  }
  .cookie-text {
    flex-basis: 100%;
  }
  .cookie-text a {
    white-space: normal;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions .btn {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transform: none;
  }
}

.legal code {
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
}

/* Long words (especially Armenian) must never push the page wider than the screen */
h1,
h2,
h3 {
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  html[lang="hy"] .legal h1 {
    font-size: clamp(24px, 7.5vw, 32px);
  }
  html[lang="hy"] .legal h2 {
    font-size: clamp(18px, 5.4vw, 22px);
  }
}
