/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: default;
}

html {
  scroll-behavior: smooth;
}
/* Body */
body {
  font-family: "Inter", sans-serif;
  color: #0f172a;
  line-height: 1.65;
  background: #f6f7fb;
}

/* Container */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #e6e8ee;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-braces {
  font-size: 32px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
}

/* Текст логотипа */
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text strong {
  font-size: 18px;
  font-weight: 600;
}

.logo-text span {
  font-size: 13px;
  color: #6b7280;
}

/* Навигация */
nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 15px;
  transition: 0.25s;
  cursor: pointer;
}

nav a:hover {
  color: #1e3a8a;
}

/* Hero */
.hero {
  padding: 40px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: #e0e7ff;
  color: #3730a3;
  padding: 7px 14px;
  border-radius: 22px;
  font-size: 13px;
  margin-bottom: 22px;
  font-weight: 500;
}
h1 {
  font-size: 50px;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
.stack {
  color: #6b7280;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.description {
  color: #4b5563;
  max-width: 480px;
  margin-bottom: 30px;
  font-size: 16px;
}

.hero-text h1,
.hero-text .stack,
.hero-text .description,
.hero-text .hero-actions {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}

.hero-text .stack {
  animation-delay: 0.2s;
}
.hero-text .description {
  animation-delay: 0.4s;
}
.hero-text .hero-actions {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#code-typing::after {
  content: "|";
  animation: blink 1s infinite;
  color: #34d399;
  margin-left: 2px;
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

/* Code card */
.code-card {
  background: #111827;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: #e5e7eb;
  transition: 0.25s;
}
.code-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}
.code-header {
  background: #1f2937;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background: #f87171;
}
.yellow {
  background: #fbbf24;
}
.green {
  background: #34d399;
}
.file {
  margin-left: 12px;
  font-size: 13px;
  color: #cbd5e1;
}
.code-card pre {
  padding: 24px;
  font-size: 15px;
}

/* About */
.about {
  padding: 60px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
}
.about h2 {
  font-size: 40px;
  margin-bottom: 24px;
  font-weight: 600;
}
.about-text p {
  margin-bottom: 18px;
  color: #4b5563;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
}
.about-card {
  background: #f8fafc;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.about-item {
  margin-bottom: 24px;
}
.about-item span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6b7280;
}
.about-item p {
  font-weight: 500;
  margin-top: 6px;
  font-size: 15px;
}

/* Pricing */
.pricing {
  padding: 60px 0;
}
.pricing-title {
  font-size: 44px;
  margin-bottom: 60px;
  text-align: center;
  font-weight: 600;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.price-card {
  background: white;
  border-radius: 18px;
  padding: 38px 30px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: 0.3s;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    scale 0.3s ease;
}
.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}
.price-card h3 {
  font-size: 30px;
  margin-bottom: 18px;
  font-weight: 600;
}
.price {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 8px;
}
.price-sub {
  color: #6b7280;
  margin-bottom: 25px;
  font-size: 15px;
}
.lang-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: white;
  padding: 14px 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

.signup {
  padding: 30px 0;
  background: #f6f7fb;
}
.signup h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.signup-form {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  margin-top: -20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
  padding: 30px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.signup-form label {
  font-weight: 500;
  margin-bottom: 0px;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  cursor: pointer;
  padding: 6px 14px; /* чуть меньше */
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
  outline: none;
  border: 1px solid #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  transition: 0.25s;
}

.signup-form input:hover,
.signup-form textarea:hover,
.signup-form select:hover {
  border-color: #3b82f6;
  transition: border-color 0.25s;
}

.signup-form button {
  margin-top: 10px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  cursor: pointer;
  transition: 0.25s;
}

.signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.toast {
  position: fixed; /* поверх всего контента */
  top: 20px; /* чуть ниже верха */
  left: 50%;
  transform: translateX(-50%) translateY(-20px); /* начальная позиция для анимации */
  background-color: #d1fae5; /* светло-зелёный */
  color: #065f46; /* тёмно-зелёный текст */
  padding: 16px 28px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* анимация появления вниз */
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6b7280;
  font-size: 15px;
  gap: 10px;
}

/* Модальное окно */
.modal {
  display: none; /* скрыто по умолчанию */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto; /* вертикальный скролл если нужно */
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 20px;
}

/* Контент модалки */
.modal-content {
  background-color: white;
  margin: 3% auto; /* выше по центру */
  padding: 30px 40px;
  border-radius: 18px;
  max-width: 500px; /* увеличено */
  width: 100%;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
  animation: modal-show 0.3s ease forwards;
}

/* Анимация появления */
@keyframes modal-show {
  0% {
    transform: translateY(-60px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Кнопка закрытия */
.modal .close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #4b5563;
  cursor: pointer;
  transition: color 0.25s;
}
.modal .close:hover {
  color: #1e3a8a;
}

/* Заголовок */
.modal h2 {
  text-align: center; /* по центру */
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: 600;
}

/* Форма внутри модалки */
.modal .signup-form {
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 10px; /* расстояние между полями */
}

/* Метки полей */
.modal .signup-form label {
  font-weight: 500;
  margin-bottom: 4px; /* уменьшено расстояние к полю */
  font-size: 14px;
}

/* Поля ввода */
.modal .signup-form input,
.modal .signup-form textarea,
.modal .signup-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  transition: 0.25s;
}

.modal .signup-form input:focus,
.modal .signup-form textarea:focus,
.modal .signup-form select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.modal .signup-form button {
  margin-top: 10px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  cursor: pointer;
  transition: 0.25s;
}

.modal .signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

#signup-modal textarea {
  resize: none;
}
