/* ============================================================
   Hi-Tech Production — landing styles
   Palette: graphite/deep-navy base + single neon-blue accent
   ============================================================ */

:root {
  --bg:          #0a0e17;
  --bg-raised:   #101522;
  --bg-card:     #131a2a;
  --border:      rgba(148, 168, 210, 0.14);
  --text:        #e8ecf4;
  --text-dim:    #9aa5bd;
  --accent:      #4d8dff;
  --accent-soft: rgba(77, 141, 255, 0.14);
  --accent-glow: rgba(77, 141, 255, 0.35);
  --radius:      14px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --container:   1180px;
  --header-h:    72px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 15px/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.25s ease,
              background 0.25s ease, border-color 0.25s ease;
}
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 14, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.logo__mark { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }
.logo__text { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.logo__text em { font-style: normal; color: var(--accent); }

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 96px;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}
.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  will-change: transform;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero__title {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.accent { color: var(--accent); }
.hero__subtitle {
  max-width: 620px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim);
  margin-bottom: 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero__stats span { font-size: 14px; color: var(--text-dim); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}
.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateY(0);   opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* ---------- Sections (shared) ---------- */
.section { padding: 110px 0; }
.section__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 720px;
}

/* ---------- About ---------- */
.about { background: var(--bg-raised); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: center;
}
.about__text { color: var(--text-dim); margin-bottom: 18px; max-width: 560px; }
.about__features { margin-top: 40px; display: grid; gap: 26px; }
.about__features li { display: flex; gap: 18px; align-items: flex-start; }
.about__features svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}
.about__features h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.about__features p { font-size: 15px; color: var(--text-dim); }

.code-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  will-change: transform;
}
.code-card__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
.code-card__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}
.code-card__bar i:first-child { background: var(--accent); }
.code-card__bar span {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}
.code-card__body {
  padding: 22px;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dim);
  overflow-x: auto;
}
.c-key { color: var(--accent); }
.c-fn  { color: #b8c8ee; }
.c-str { color: #8fb8ff; }
.c-num { color: #7ea6f4; }
.c-cm  { color: #5a6480; opacity: 0.8; }

/* ---------- Solutions ---------- */
.solutions__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-soft);
}
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.card__text { font-size: 14px; color: var(--text-dim); }
.card--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(155deg, var(--accent-soft), var(--bg-card) 70%);
  border-color: var(--accent);
}
.card--cta .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Portfolio ---------- */
.portfolio__filters {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-dim);
  font: 600 13.5px/1 var(--font);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.portfolio__grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, opacity 0.35s ease;
}
.project:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.project.is-hidden { display: none; }
.project__tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--accent-soft);
}
.project__mark {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  transition: text-shadow 0.3s ease;
}
.project__mark .accent { color: var(--accent); }
.project:hover .project__mark { text-shadow: 0 0 24px var(--accent-glow); }
.project__text { font-size: 14px; color: var(--text-dim); }
.project__stack {
  margin-top: auto;
  padding-top: 14px;
  font-size: 12.5px;
  color: var(--text-dim);
  opacity: 0.75;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

/* featured (wide) project cards */
.project--featured {
  grid-column: span 2;
  background: linear-gradient(150deg, var(--accent-soft), var(--bg-card) 62%);
}
.project__metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}
.project__metric strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.project__metric span { font-size: 13.5px; color: var(--text-dim); }

/* ---------- Workflow ---------- */
.workflow { background: var(--bg-raised); }
.workflow__steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -22px;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.step:last-child::after { display: none; }
.step__num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid var(--accent-soft);
  border-radius: 8px;
  background: var(--accent-soft);
  margin-bottom: 20px;
}
.step__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step__text { font-size: 14px; color: var(--text-dim); }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.contact__text { color: var(--text-dim); max-width: 460px; margin-bottom: 32px; }
.contact__list { display: grid; gap: 10px; }
.contact__list a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}
.contact__list a:hover { color: var(--accent); }

.form {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: grid;
  gap: 20px;
}
.form__field { display: grid; gap: 8px; }
.form__field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form__field input,
.form__field textarea {
  width: 100%;
  padding: 14px 16px;
  font: 500 15px/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form__field input.is-invalid,
.form__field textarea.is-invalid { border-color: #e05d5d; }
.form__submit { width: 100%; }
.form__status { font-size: 14px; min-height: 1.4em; }
.form__status.is-ok    { color: #5dd39e; }
.form__status.is-error { color: #e05d5d; }
.form__note { font-size: 12px; color: var(--text-dim); opacity: 0.7; }
/* honeypot — скрыт от людей, но доступен ботам */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact__address { font-size: 15px; color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-raised); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 48px;
  padding: 56px 24px 40px;
  align-items: start;
}
.footer__brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 300px;
}
.footer__nav { display: grid; gap: 12px; }
.footer__nav a {
  font-size: 15px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--text); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom {
  padding-block: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__badge-dot, .hero__scroll span { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .solutions__grid, .workflow__steps { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .about__panel { max-width: 520px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .header__cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--border); }
  .nav__link:last-child { border-bottom: none; }
  .hero__stats { gap: 28px 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .solutions__grid, .workflow__steps { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .project--featured { grid-column: auto; }
  .hero { padding-bottom: 72px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats strong { font-size: 28px; }
  .form { padding: 26px 20px; }
  .section { padding: 64px 0; }
}
