/* ==========================================================================
   Synth Landing — styles.css
   Минимализм · моношрифты · тёмная тема · терминальные мотивы
   ========================================================================== */

/* --- Переменные дизайна --- */
:root {
  --bg: #0a0a0a;
  --bg-warm: #120c0a;
  --bg-elev: #17110d;
  --text: #e6e6e6;
  --text-dim: #8a8a8a;
  --text-faint: #5c5552;
  --accent: #c33b04;
  --accent-hover: #d8440a;
  --accent-dim: #7a2a10;
  --border: rgba(230, 230, 230, 0.10);
  --border-strong: rgba(230, 230, 230, 0.18);
  --accent-border: rgba(195, 59, 4, 0.55);

  --font-mono: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, Menlo, 'Liberation Mono', monospace;

  --radius: 6px;
  --maxw: 1120px;
  --gap: 24px;
  --space: 96px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
}

/* --- Сброс --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-normal);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* --- Контейнер --- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* --- Терминальные акценты --- */
.prompt {
  color: var(--accent);
  font-weight: var(--font-weight-bold);
}

.accent {
  color: var(--accent);
}

/* --- NAV --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  letter-spacing: 0.5px;
}

.brand__logo {
  width: 30px;
  height: 30px;
  border-radius: 4px;
}

.brand__logo--sm {
  width: 22px;
  height: 22px;
}

.nav__links {
  display: flex;
  gap: 20px;
}

.nav__links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* --- Переключатель языка --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.lang-switch__btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn--active {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-switch__sep {
  color: var(--text-faint);
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn--lg {
  padding: 15px 30px;
  font-size: 16px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: var(--space) 0;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(195, 59, 4, 0.12), transparent 55%),
    var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__content {
  min-width: 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.12;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.chip {
  font-size: 13px;
  color: var(--text-dim);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* --- Терминал --- */
.terminal {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(195, 59, 4, 0.08);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm);
}

.terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal__dot--r { background: #c33b04; }
.terminal__dot--y { background: #d8a43e; }
.terminal__dot--g { background: #3a8a5a; }

.terminal__title {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-faint);
}

.terminal__body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--text-dim);
}

.t-prompt { color: var(--accent); font-weight: var(--font-weight-medium); }
.t-dim    { color: var(--text-faint); }
.t-accent { color: var(--accent); }

/* ==========================================================================
   СЕКЦИИ
   ========================================================================== */
.section {
  padding: var(--space) 0;
  border-top: 1px solid var(--border);
}

.section--alt {
  background: var(--bg-warm);
}

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section__lead {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 70ch;
  margin-bottom: 52px;
}

/* --- Карточки (features) --- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.card__icon {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}

.card__title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 12px;
}

.card__text {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Security grid --- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  max-width: 980px;
}

.security-item {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 22px;
}

.security-item__title {
  font-size: 19px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 10px;
}

.security-item__text {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
  background: rgba(195, 59, 4, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- Architecture grid --- */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  max-width: 1040px;
}

.arch-item {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 22px;
}

.arch-item__title {
  font-size: 19px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 10px;
}

.arch-item__text {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Providers grid --- */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.provider {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.provider:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.provider__icon {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}

.provider__title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 12px;
}

.provider__text {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Badge (planned) --- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 16px;
}

.badge--planned {
  border-color: rgba(216, 164, 62, 0.5);
  color: #d8a43e;
  background: rgba(216, 164, 62, 0.06);
}

/* --- Local --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.terminal--mini {
  box-shadow: none;
}

.local-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.local-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px dashed var(--border);
}

.local-item__name {
  font-size: 15px;
  color: var(--text);
  font-weight: var(--font-weight-medium);
}

.local-item__val {
  font-size: 14px;
  color: var(--text-dim);
  text-align: right;
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  list-style: none;
}

.step {
  position: relative;
  padding-top: 22px;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--border));
}

.step__num {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

.step__title {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 10px;
}

.step__text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* --- Deploy --- */
.deploy-cmd {
  max-width: 720px;
}

.code {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.deploy-note {
  font-size: 14px;
  color: var(--text-dim);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  padding: var(--space) 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(195, 59, 4, 0.10), transparent 60%),
    var(--bg);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta__title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
}

.cta__text {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 52ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-warm);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__name {
  font-weight: var(--font-weight-bold);
  font-size: 16px;
}

.footer__tag {
  font-size: 13px;
  color: var(--text-faint);
  margin-left: 6px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  width: 100%;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 8px;
}

.footer__sep {
  margin: 0 6px;
  color: var(--text-faint);
}

/* ==========================================================================
   АДАПТИВНОСТЬ (mobile-first)
   ========================================================================== */
@media (max-width: 960px) {
  :root {
    --space: 72px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }

  .grid,
  .security-grid,
  .arch-grid,
  .provider-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav__links {
    display: none;
  }

  .nav__inner {
    height: 58px;
  }
}

@media (max-width: 560px) {
  :root {
    --space: 56px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__cta,
  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__actions .btn,
  .hero__cta .btn {
    width: 100%;
  }

  .nav__actions {
    gap: 12px;
  }

  .local-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .local-item__val {
    text-align: left;
  }
}

/* --- Уважение к prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
