/* MONETRA — лендинг, учёт финансов в Telegram */

:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-hover: #243044;
  --text: #e6edf3;
  --text-muted: #8b9cb3;
  --accent: #2eaadc;
  --accent-hover: #58b9e0;
  --success: #3fb950;
  --border: #2d3a4d;
  --radius: 12px;
  --font: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-overlay.nav-overlay-visible {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

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

.btn-header-cta {
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0f1419;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #0f1419;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-cta {
  background: var(--accent);
  color: #0f1419;
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background: var(--accent-hover);
  color: #0f1419;
  transform: translateY(-2px);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 48px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(46, 170, 220, 0.12), transparent),
              radial-gradient(ellipse 60% 40% at 80% 60%, rgba(63, 185, 80, 0.06), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--success);
  background: rgba(63, 185, 80, 0.12);
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-cta {
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 0 24px;
}

.mockup {
  width: 100%;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.mockup-header {
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border);
}

.mockup-msg {
  padding: 10px 14px;
  font-size: 0.9rem;
  margin: 8px 10px;
  border-radius: 12px;
  max-width: 85%;
}

.mockup-msg-user {
  margin-left: auto;
  background: var(--accent);
  color: #0f1419;
}

.mockup-msg-bot {
  background: var(--surface-hover);
  color: var(--text-muted);
}

.mockup-btns {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--accent);
}

.mockup-chart {
  height: 80px;
  margin: 12px 14px;
  background: linear-gradient(180deg, transparent 60%, rgba(46, 170, 220, 0.2) 100%);
  border-radius: 8px;
}

.mockup-legend {
  padding: 10px 14px 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Preview — как это выглядит */
.preview-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 24px;
}

.preview-card {
  margin: 0;
}

.preview-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.preview-frame-chat {
  padding: 16px;
}

.preview-chat-line {
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  font-size: 0.95rem;
  max-width: 85%;
}

.preview-chat-line.you {
  margin-left: auto;
  background: var(--accent);
  color: #0f1419;
}

.preview-chat-line.bot {
  background: var(--surface-hover);
  color: var(--text-muted);
}

.preview-frame-app {
  padding: 20px;
}

.preview-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.preview-app-bar strong {
  color: var(--success);
  font-size: 1.2rem;
}

.preview-app-chart {
  height: 100px;
  background: linear-gradient(180deg, transparent 40%, rgba(46, 170, 220, 0.15) 100%);
  border-radius: 10px;
  margin-bottom: 12px;
}

.preview-app-cats {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.preview-card figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

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

.section-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Problems */
.problems-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.problems-list li {
  position: relative;
  padding: 20px 20px 20px 56px;
  margin-bottom: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.problem-icon {
  position: absolute;
  left: 20px;
  top: 22px;
  font-size: 1.2rem;
  line-height: 1;
}

.problems-list strong {
  color: var(--text);
}

/* How it works */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.steps li:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0f1419;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
}

/* Features grid */
.features-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.features-grid li {
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.features-grid strong {
  color: var(--success);
  font-weight: 600;
}

/* Audience */
.audience-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.audience-card {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.audience-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.audience-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Support */
.support {
  text-align: center;
}

.support p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

/* CTA bottom */
.cta-bottom {
  padding: 64px 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.cta-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Mobile: бургер-меню */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 72px 24px 24px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }

  .nav.nav-open {
    transform: translateX(0);
  }

  .nav a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-overlay.nav-overlay-visible {
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 0 40px;
  }

  .hero-visual {
    margin-top: 36px;
    gap: 16px;
  }

  .mockup {
    max-width: 100%;
  }

  .section {
    padding: 40px 0;
  }

  .btn-cta {
    width: 100%;
    max-width: 320px;
  }

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