/* mulyanka.ru — landing styles */

:root {
  --bg: #0f1219;
  --bg-elevated: #161b26;
  --surface: #1c2333;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #3d9cf0;
  --accent-hover: #5cb0ff;
  --accent-soft: rgba(61, 156, 240, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(61, 156, 240, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(120, 80, 200, 0.08), transparent);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(880px, calc(100% - 2rem));
  margin-inline: auto;
}

.container--wide {
  width: min(1040px, calc(100% - 2rem));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 18, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent-hover);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link--cta {
  color: var(--accent);
}

.nav-link--cta:hover {
  color: var(--accent-hover);
}

/* Hero */

.hero {
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

.hero-figure {
  margin: 0;
}

.hero-figure-frame {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(0.6rem, 1.5vw, 0.85rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #0a0c10;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #0a0c10;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn--inline {
  margin-top: 0.5rem;
}

.btn-arrow {
  font-size: 1.1em;
  line-height: 1;
}

/* Info card */

.chat-banner {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.info-card {
  display: grid;
  grid-template-columns: minmax(200px, min(38%, 360px)) 1fr;
  gap: 1.25rem 1.75rem;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: center;
}

.info-card-media {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0a0c10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.info-card-media img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.info-card-title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.info-card-text {
  margin: 0;
  color: var(--text-muted);
}

.info-card-text strong {
  color: var(--text);
  font-weight: 600;
}

.link-mono {
  font-family: var(--mono);
  font-size: 0.95em;
  font-weight: 500;
}

/* Article */

.article-section {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(4rem, 10vw, 5.5rem);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.article-inner {
  max-width: 720px;
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.article-deck {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.article-deck strong {
  color: var(--text);
}

.prose h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.prose h3:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.65rem;
}

.prose li strong {
  color: var(--text);
}

.prose-figure {
  margin: 0.35rem 0 1.25rem;
}

.prose-figure--phone {
  max-width: min(300px, 88vw);
  margin-left: auto;
  margin-right: auto;
}

.prose-figure-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(165deg, #1a2332 0%, #0f141c 100%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.prose-figure--phone img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.prose-figure-caption {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-copy,
.footer-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: 1;
    max-width: min(520px, 100%);
    margin-inline: auto;
  }

  .hero-copy {
    order: 0;
  }
}

@media (max-width: 720px) {
  .info-card {
    grid-template-columns: 1fr;
  }

  .info-card-media {
    max-width: min(400px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
