@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, sans-serif;
  scrollbar-width: none;
}

:root {
  --primary: #8B5CF6;
  --primary-light: #A78BFA;
  --secondary: #F59E0B;
  --accent: #10B981;
  --dark: #1F2937;
  --light: #FFFFFF;
  --gray-light: #F8FAFC;
  --gray: #64748B;
  --border: #E2E8F0;
  --error: #EF4444;
  --success: #10B981;
}

body {
  color: var(--dark);
  overflow-x: hidden;
  scrollbar-width: none;
}

h2 {
  font-size: 4rem;
  text-align: center;
  font-weight: 900;
}

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

.column-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
}

header {
  position: fixed;
  width: 100vw;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo-container {
  max-width: 1800px;
}

.logo {
  position: fixed;
  top: 0;
  left: 0;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.checkmark {
  margin-right: 3px;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
  width: 100%;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--light) 100%);
}

.hero-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 15%;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 40px !important;
}

.hero-content {
  display: flex;
  margin-left: 5%;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 600px;
  z-index: 2;
}

.hero-badge {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 25px;
  max-width: 175px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero h1 {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0;
  background: var(--dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.5rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.btn-secondary {
  background: var(--light);
  color: var(--dark);
  padding: 0.75rem 2rem;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.floating-books {
  position: absolute;
  right: 40%;
  top: 40%;
  transform: translateY(-50%);
  width: 900px;
  height: 600px;
}

.book-card {
  position: absolute;
  border-radius: 16px;
  padding: 0;
  width: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.book-card:nth-child(4) {
  top: 50px;
  right: 35%;
  animation: floatBook 8s ease-in-out infinite;
}

.book-card:nth-child(2) {
  top: 0%;
  left: 37%;
  animation: floatBook 6s ease-in-out infinite -2s;
}

.book-card:nth-child(3) {
  top: 17%;
  left: 10%;
  animation: floatBook 7s ease-in-out infinite -4s;
}

.book-card:nth-child(1) {
  top: 0%;
  left: -20%;
  animation: floatBook 5s ease-in-out infinite -6s;
}

.load-btn {
  font-size: 2rem;
}

@keyframes floatBook {
  0%, 100% {
  transform: translateY(0px) rotate(0deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  }
  33% {
  transform: translateY(-20px) rotate(1deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  }
  66% {
  transform: translateY(10px) rotate(-1deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
  }
}

.book-card:hover {
  transform: scale(1.05) rotate(2deg);
  z-index: 10;
}

.book-card h4 {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.book-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.features {
  padding: 120px 0;
  background: var(--light);
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--light);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  line-height: 1.6;
}

.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

@keyframes floatBackground {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-item p {
  font-weight: 500;
  opacity: 0.9;
}

.demo {
  padding: 120px 0;
  background: var(--gray-light);
}

.demo-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.demo-phone {
  background: var(--light);
  border-radius: 40px;
  padding: 2rem;
  box-shadow: 0 40px 80px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  position: relative;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

.demo-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.demo-content p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.final-cta {
  padding: 120px 0;
  text-align: center;
  background: var(--gray-light);
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.final-cta h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.final-cta p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--gray);
  background: var(--gray-light);
}

.registration-form {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  background: var(--light);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  border-radius: 24px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-control.error {
  border-color: var(--error);
}

.error-message {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
  background: #000;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.form-success {
  display: none;
  background: var(--success);
  color: white;
  padding: 10px;
  border-radius: 20px;
  margin-top: 0.5rem;
  text-align: center;
}

.form-loading {
  display: none;
  text-align: center;
  margin-top: 1rem;
}

.form-loading .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  display: inline-block;
  margin-right: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--primary);
  margin: 12% auto;
  padding: 0;
  border-radius: 20px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}

.modal-body {
  padding: 10px 30px;
}

.modal-body p {
  font-size: 1rem;
  color: white;
  margin: 0;
}

.privacy-container {
  position: relative;
  margin: 20px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.checkbox-label:hover {
  border-color: var(--primary);
  background-color: #f8f9fa;
}

.checkbox-label input:checked + .checkmark {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.privacy-agreement {
  display: none;
  position: fixed;
  top: 5%;
  left: 5%;
  width: 90vw;
  height: 90vh;
  background: white;
  border: 2px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.3);
  z-index: 3000;
  overflow: hidden;
}

.checkbox-label input {
  display: none;
}

.privacy-agreement.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agreement-content {
  padding: 20px;
  height: 100%;
}

.agreement-content h3 {
  text-align: center;
  color: #333;
  margin-bottom: 15px;
  font-size: 16px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
}

.agreement-text {
  position: relative;
  overflow-y: auto;
  height: 85%;
  padding-right: 10px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  padding: 15px;
  background: #fafafa;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.agreement-text p {
  margin: 10px 0;
  line-height: 1.5;
  color: #555;
  font-size: 13px;
}

.agreement-text strong {
  color: #333;
}

.agreement-text ul {
  margin: 5px 0 5px 20px;
}

.agreement-text li {
  margin-bottom: 3px;
  line-height: 1.4;
  font-size: 13px;
}

.agreement-note {
  font-style: italic;
  color: #666;
  background: #fff3cd;
  padding: 8px;
  border-radius: 4px;
  border-left: 4px solid #ffc107;
}

.agreement-actions {
  position: sticky;
  bottom: 10px;
  background: white;
  right: 0;
  padding-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-agreement {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  flex: 1;
}

.agreement-text::-webkit-scrollbar {
  width: 6px;
}

.agreement-text::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.agreement-text::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.agreement-text::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 1625px) {
  .hero-content {
    max-width: 500px;
  }

  .floating-books {
    right: 50%;
    top: 35%;
    transform: translateY(-50%);
    width: 850px;
    height: 600px;
  }
}

@media (max-width: 1430px) {
  .hero-content {
    max-width: 500px;
  }
  h2 {
    font-size: 3rem;
  }

  .floating-books {
    right: 55%;
  }
}

@media (max-width: 1260px) {
  .hero-content {
    padding-bottom: 40px;
  }

  .hero p {
    font-size: 1.3rem;
  }
}

@media (max-width: 1100px) {
  .hero-content {
    padding-bottom: 70px;
  }
}

@media (max-width: 968px) {
  body {
    width: 100vw;
    overflow-x: hidden;
  }
  
  section {
    align-items: center;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden;
  }
  
  .hero-container,
  .column-container,
  .registration-form,
  .demo-container,
  .features-grid,
  .stats-grid {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .hero-content {
    padding-bottom: 0px;
  }
  section {
    align-items: center;
    width: 100vw !important;
  }
  .floating-books {
    width: 450px;
    height: 300px;
  }

  footer {
    font-size: 0.6rem;
  }

  .book-card img {
    max-width: 300px;
  }

  .book-card:nth-child(4) {
    top: 150px;
    right: -20px;
  }

  .final-cta h2 {
    font-size: 2rem;
  }

  .final-cta p {
    font-size: 1rem;
  }

  .load-btn {
    font-size: 1.3rem;
  }

  .book-card:nth-child(2) {
    top: 150px;
    left: 37%;
  }

  .book-card:nth-child(3) {
    top: 120px;
    left: 10%;
  }

  .book-card:nth-child(3) img {
    max-width: 100px;
  }

  .book-card:nth-child(1) {
    top: 170px;
    left: -20%;
  }

  .hero-container {
    flex-direction: column;
    padding: 0 !important;
  }

  .column-container {
    padding-top: 0;
  }

  .hero-content {
    max-width: 500px;
    text-align: center;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .hero p {
    margin-bottom: 5px;
  }
  .column-container {
    width: 100vw;
  }

  .hero-badge {
    margin-left: 0;
  }


  .demo-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {

  section {
    align-items: center;
    width: 100vw !important;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .registration-form {
    padding: 1.5rem;
  }
}

@media (max-width: 346px) {
  h2 {
    font-size: 2.5rem;
  }
}
