/* Zerkalo AutoPosting — landing */
:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a26;
  --text: #f4f4f8;
  --text-muted: #9ca3b8;
  --accent: #fe2c55;
  --accent-2: #25f4ee;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ff6b8a);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-main a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav-main a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch button.active {
  background: var(--bg-elevated);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e91e63);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto;
  height: 80%;
  background: radial-gradient(ellipse at 30% 20%, rgba(254, 44, 85, 0.15), transparent 55%),
    radial-gradient(ellipse at 70% 10%, rgba(37, 244, 238, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats div {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-stats strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

/* Mock dashboard */
.mock-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}

.mock-dot:nth-child(1) {
  background: #ff5f57;
}
.mock-dot:nth-child(2) {
  background: #febc2e;
}
.mock-dot:nth-child(3) {
  background: #28c840;
}

.mock-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 280px;
}

.mock-sidebar {
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-sidebar span {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.mock-sidebar span.active {
  background: rgba(254, 44, 85, 0.15);
  color: var(--accent);
}

.mock-content {
  padding: 1rem;
}

.mock-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 1rem;
}

.mock-cal-cell {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  border-radius: 4px;
  font-size: 0.65rem;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.mock-cal-cell.has-post {
  background: rgba(254, 44, 85, 0.25);
  color: var(--text);
}

.mock-queue {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-queue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  font-size: 0.75rem;
}

.mock-thumb {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  background: linear-gradient(180deg, #333, #222);
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.for-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.for-card h3 {
  margin: 0 0 0.5rem;
}

.for-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.price-badge {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.price-card h3 {
  margin: 0 0 0.25rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.price-amount span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-features li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.12), rgba(37, 244, 238, 0.06));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Legal pages */
.legal-page {
  padding: 2rem 0 4rem;
  max-width: 48rem;
  margin: 0 auto;
}

.legal-page h1 {
  margin-top: 0;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-page strong {
  color: var(--text);
}

.legal-nav {
  margin-bottom: 2rem;
}

/* Demo page */
.demo-layout {
  max-width: 520px;
  margin: 2rem auto 4rem;
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.demo-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.demo-card input[type="file"],
.demo-card textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
}

.demo-card textarea {
  min-height: 100px;
  resize: vertical;
}

#connection-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

#connection-status.connected {
  color: #28c840;
}

.demo-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border-radius: 8px;
}

.demo-success {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(40, 200, 64, 0.12);
  border: 1px solid rgba(40, 200, 64, 0.35);
  border-radius: 8px;
}

.demo-success h3 {
  margin: 0 0 0.35rem;
  color: #28c840;
}

.demo-success p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Showcase row — second mock */
.showcase-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.mock-mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 160px;
}

.mock-mini h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.mock-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), #9333ea);
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
}

.mock-bars span:nth-child(2) {
  height: 55%;
}
.mock-bars span:nth-child(3) {
  height: 85%;
}
.mock-bars span:nth-child(4) {
  height: 40%;
}
.mock-bars span:nth-child(5) {
  height: 70%;
}

.mock-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
