:root {
  --bg: #f8faff;
  --surface: #ffffff;
  --text: #0f1f3d;
  --muted: #5b6b85;
  --brand: #0f80ff;
  --brand-2: #0bc89f;
  --brand-light: #e6f3ff;
  --border: #e1e8f2;
  --shadow: 0 20px 50px rgba(8, 42, 88, 0.1);
  --shadow-lg: 0 30px 70px rgba(8, 42, 88, 0.15);
}

:root.dark {
  --bg: #050d1c;
  --surface: #0d1929;
  --text: #e8eff9;
  --muted: #a8b8d4;
  --brand: #2d9eff;
  --brand-2: #26e5b5;
  --brand-light: #1a2d44;
  --border: #1f3552;
  --shadow: 0 24px 50px rgba(0, 5, 15, 0.5);
  --shadow-lg: 0 30px 70px rgba(0, 5, 15, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(circle at 20% 10%, rgba(15, 128, 255, 0.12), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(11, 200, 159, 0.12), transparent 45%),
              linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 95%, var(--brand)) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Sora', sans-serif;
}

.site-header {
  position: sticky;
  top: 12px;
  margin: 12px auto;
  width: min(1100px, calc(100% - 24px));
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.glass {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 700;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: var(--brand-light);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
}

.theme-btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

main {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary { 
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); 
  color: white;
  box-shadow: 0 8px 20px rgba(15, 128, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(15, 128, 255, 0.4);
}

.btn-secondary { 
  background: var(--brand-light);
  color: var(--brand);
  border: 2px solid var(--border);
}

.btn-ghost { 
  background: transparent; 
  border: 2px solid var(--border); 
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 75vh;
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-light);
  color: var(--brand);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}

.hero-badge i {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.15;
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--text), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
  margin-bottom: 30px;
  animation: slideUp 0.8s ease 0.3s both;
}

.hero-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  animation: slideUp 0.8s ease 0.4s both;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.hero-feature-item i {
  color: var(--brand);
  font-size: 18px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  animation: slideUp 0.8s ease 0.5s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeIn 1s ease 0.6s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-item span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  animation: fadeIn 1s ease 0.4s both;
}

.hero-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-header i {
  color: var(--brand);
  font-size: 24px;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.feature-list li:hover {
  background: var(--brand-light);
}

.feature-list i {
  color: var(--brand-2);
  font-size: 16px;
}

.pulse-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--brand-light);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--brand-2);
  border-radius: 50%;
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--brand-2);
  border-radius: 50%;
  animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.floating-card {
  position: absolute;
  top: -20px;
  right: -20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating-card i {
  font-size: 24px;
  color: var(--brand);
}

.floating-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.floating-card small {
  color: var(--muted);
  font-size: 12px;
}

.section { 
  padding: 60px 0; 
}

.section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--text), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grid {
  display: grid;
  gap: 20px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.full {
  grid-column: 1 / -1;
}

.card, .price-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
  border-radius: 18px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.card i {
  color: var(--brand);
  font-size: 28px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 8px 0;
  font-size: 1.1rem;
}

.price-card {
  text-align: center;
}

.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.price-card p {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-card.featured {
  border-width: 2px;
  border-color: var(--brand);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.timeline .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.timeline .steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  z-index: 0;
}

.step {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.step span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(15, 128, 255, 0.3);
}

.step p {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.price-card.featured {
  border-width: 2px;
  border-color: var(--brand);
}

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.register-form {
  display: grid;
  gap: 10px;
}

.register-form input {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.toggle-password:hover {
  color: var(--text);
  background: var(--surface);
}

.download-block {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.download-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.download-block img {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.download-block h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.download-block p {
  color: var(--muted);
  margin-bottom: 20px;
}

footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

footer p {
  margin: 8px 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  nav { display: none; }
  
  .hero, .split, .cards-3, .timeline .steps {
    grid-template-columns: 1fr;
  }
  
  .site-header { 
    top: 0; 
    border-radius: 0; 
    width: 100%; 
    margin: 0; 
    padding: 10px 12px;
  }
  
  .brand img { width: 28px; height: 28px; }
  .brand div { font-size: 14px; }
  
  .hero {
    min-height: auto;
    padding: 20px 0;
    gap: 30px;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat-item strong {
    font-size: 1.5rem;
  }
  
  .floating-card {
    position: static;
    margin-top: 20px;
    max-width: 100%;
  }
  
  .lang-switcher {
    order: -1;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}
