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

:root {
  --indigo: #8183f4;
  --indigo-dark: #6b6ed4;
  --indigo-light: #f8f9ff;
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --text-light: #a0aec0;
  --bg-white: #ffffff;
  --bg-white-opacit: #ffffffff;
  --bg-cream: #f9f7f2;
  --border: #e2e8f0;
  --selection-bg: #ffed4a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --green-200: #c6f6d5;
}

@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik/Rubik-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family:
    "Rubik",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-white);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* Header */
header {
  background: var(--bg-white-opacity);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 55px;
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo img {
  width: 36px;
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
}

.btn-primary {
  background: var(--indigo);
  color: white !important;
}

.btn-primary:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -4px;
}
.btn-secondary {
  background: transparent;
  color: var(--indigo);
  border: 2px solid var(--indigo);
}

.btn-secondary:hover {
  background: var(--indigo-light);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Hero Section */
.hero {
  background: url(../img/bcg.png) no-repeat center center;
  padding: 100px 0 80px;
  background-size: cover;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
    rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
  z-index: 2;
  position: relative;
}

mark {
  background-color: var(--selection-bg);
  padding: 4px 6px;
  border-radius: 0.5em 0.3em 0.7em 0.2em / 0.3em 0.8em 0.2em 0.6em; /* Неровные углы */
  position: relative;
  font-weight: bold;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-text h1 {
  font-size: 56px;
  margin-bottom: 24px;
  margin-top: 24px;
  color: var(--text-primary);
}

.hero-text p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  gap: 24px;
  font-size: 16px;
  color: var(--text-secondary);
}

.hero-features span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-image {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding-top: 5px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  overflow: hidden;
  width: 700px;
  position: absolute;
  top: 0;
  right: 0;
  transform: perspective(1000px) rotateY(-30deg);
  z-index: -1;
}
.hero-image img {
  width: 100%;
}

.placeholder-text {
  color: var(--text-light);
  text-align: center;
  font-size: 16px;
}
.logo-beta {
  font-size: 0.7rem;
  /* margin-bottom: 0.7rem; */
  background-color: var(--green-200);
  padding: 0.1rem 0.3rem;
  border-radius: 5px;
  color: var(--text-primary);
}

/* Stats Section */
.stats {
  padding: 80px 0;
  background: var(--bg-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 32px;
  color: var(--indigo);
  margin-bottom: 12px;
}

.stat-item p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto;
}

.stats-intro {
  text-align: center;
  margin-bottom: 60px;
}

.stats-intro h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.stats-intro p {
  font-size: 18px;
  color: var(--text-secondary);
}
.stats-outro {
  text-align: center;
  margin-top: 60px;
}
/* Features Section */
.features {
  padding: 100px 0;
  background: var(--bg-cream);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  gap: 60px;
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.feature-item:nth-child(even) {
  direction: rtl;
}

.feature-item:nth-child(even) > * {
  direction: ltr;
}

.feature-image {
  background: var(--indigo-light);
  border-radius: 12px;
  min-height: 300px;
  min-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
}
.feature-image img {
  width: 100%;
  border-radius: 12px;
}

.feature-content h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.feature-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Self-hosted Section */
.self-hosted {
  padding: 100px 0;
  background: var(--bg-white);
}

.self-hosted-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.self-hosted h2 {
  font-size: 40px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.self-hosted > .container > .self-hosted-content > p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.self-hosted-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 60px 0;
}

.self-hosted-card {
  padding: 32px;
  background: var(--indigo-light);
  border-radius: 12px;
  text-align: left;
}

.self-hosted-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.self-hosted-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

.code-block {
  background: var(--text-primary);
  color: #a0aec0;
  padding: 20px;
  border-radius: 8px;
  font-family: "Fira Code", monospace;
  font-size: 14px;
  margin: 40px 0;
  text-align: left;
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  background: var(--bg-cream);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--indigo);
}

.pricing-card h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 40px;
  font-weight: 700;
  color: var(--indigo);
  margin: 24px 0;
}

.pricing-card .price span {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 32px 0;
}

.pricing-features li {
  padding: 12px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--indigo);
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--indigo-light) 0%,
    var(--bg-white) 100%
  );
  text-align: center;
}

.cta h2 {
  font-size: 40px;
  margin-bottom: 24px;
}

.cta p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-links {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.cta-links a {
  color: var(--indigo);
  text-decoration: underline;
  margin: 0 12px;
}

/* Footer */
footer {
  background: var(--text-primary);
  color: white;
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 14px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--text-light);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-light);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-light);
  font-size: 20px;
}

.footer-social a:hover {
  color: white;
}

.language-switcher {
  display: flex;
  gap: 8px;
}

.language-switcher span {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.language-switcher span:hover {
  background: var(--indigo);
}

/* Changelog Section */
.changelog {
  padding: 100px 0;
  background: var(--bg-white);
}

.changelog-item {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-cream);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border);
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.version-badge {
  background: var(--indigo);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  font-family: "Fira Code", monospace;
}

.changelog-date {
  color: var(--text-secondary);
  font-size: 14px;
}

.changelog-tag {
  background: var(--indigo-light);
  color: var(--indigo-dark);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.changelog-tag.first-release {
  background: linear-gradient(
    135deg,
    var(--indigo) 0%,
    var(--indigo-dark) 100%
  );
  color: white;
}

.changelog-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.changelog-column h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.changelog-list {
  list-style: none;
}

.changelog-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.changelog-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-weight: 700;
}

.changelog-list.fixes li::before {
  content: "🐛";
}

.changelog-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Roadmap Section */
.roadmap {
  padding: 100px 0;
  background: var(--bg-cream);
}

.roadmap-intro {
  margin-bottom: 40px;
}

.roadmap-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.current {
  background: var(--indigo);
}

.legend-dot.planned {
  background: var(--text-light);
}

.legend-dot.completed {
  background: #10b981;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.roadmap-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all 0.3s;
}

.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.roadmap-card.current {
  border-color: var(--indigo);
}

.roadmap-card.completed {
  border-color: #10b981;
}
.roadmap-card.plan {
  border-color: var(--text-light);
}

.roadmap-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.status-badge {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--indigo-light);
  color: var(--indigo-dark);
}

.roadmap-card.completed .status-badge {
  background: #d1fae5;
  color: #059669;
}

.roadmap-card.plan .status-badge{
  background: #dadada;
  color: var(--text-secondary);
} 
.status-quarter {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.roadmap-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.roadmap-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.roadmap-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--indigo);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-fill.completed {
  background: #10b981;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
}

.progress-text span:first-child {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Future Plans */
.roadmap-future {
  background: white;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 60px;
  box-shadow: var(--shadow-sm);
}

.roadmap-future h3 {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.future-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--indigo-light);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.future-icon {
  font-size: 24px;
}

/* Roadmap CTA */
.roadmap-cta {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(
    135deg,
    var(--indigo-light) 0%,
    var(--bg-white) 100%
  );
  border-radius: 16px;
}

.roadmap-cta h3 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.roadmap-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 968px) {
  .hero-image {
    display: none;
  }
  .hero-content,
  .feature-item,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .feature-item:nth-child(even) {
    direction: ltr;
  }

  .stats-grid,
  .self-hosted-features {
    grid-template-columns: 1fr;
  }

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

  .hero-text h1 {
    font-size: 40px;
  }

  .nav-links {
    display: none;
  }
  .changelog-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .roadmap-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-features {
    flex-direction: column;
    gap: 12px;
  }
  .hero-image {
    display: none;
  }
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .roadmap-legend {
    flex-direction: column;
    gap: 12px;
  }

  .future-grid {
    grid-template-columns: 1fr;
  }
  .feature-image{
    min-width: 100%;
    min-height: 200px;
  }
}
