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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #08080f;
  color: #d0d0d0;
  min-height: 100vh;
  overflow-x: hidden;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 40px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 64px;
}

.logo {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  color: #000;
  background: #4da6ff;
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 16px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

h1 {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 8px;
}

.tagline {
  font-size: 18px;
  color: #4da6ff;
  font-weight: 400;
}

/* Hero */
.hero {
  margin-bottom: 64px;
}

.hero-text {
  font-size: 17px;
  line-height: 1.7;
  color: #777;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* Terminal demo */
.demo {
  background: #111318;
  border-radius: 12px;
  border: 1px solid #1e2028;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #16181e;
  border-bottom: 1px solid #1e2028;
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.demo-dot.red { background: #ff5f57; }
.demo-dot.yellow { background: #febc2e; }
.demo-dot.green { background: #28c840; }

.demo-title {
  margin-left: 8px;
  font-size: 12px;
  color: #555;
}

.demo-body {
  padding: 20px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 14px;
  height: 220px;
  overflow-y: auto;
}

.demo-line {
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeInLine 0.3s forwards;
}

.demo-line .prompt { color: #28c840; }
.demo-line .latin { color: #666; }
.demo-line .arrow { color: #333; margin: 0 8px; }
.demo-line .cyrillic { color: #4da6ff; }

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

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 64px;
}

.feature-card {
  background: #111318;
  border: 1px solid #1e2028;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: #2a3050;
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #eee;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* Download section */
.download-section {
  text-align: center;
  padding: 48px 0;
  margin-bottom: 48px;
}

.download-section h2 {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  text-transform: none;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: #4da6ff;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-download:hover {
  background: #3d96ef;
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(77,166,255,0.3);
}

.btn-icon { font-size: 18px; }

.btn-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.note {
  font-size: 12px;
  color: #444;
  margin-top: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s;
}

.modal.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #14161e;
  border: 1px solid #1e2028;
  border-radius: 16px;
  padding: 36px;
  width: 380px;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #444;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.15s;
}

.modal-close:hover { color: #fff; }

.modal-content h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-sub {
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
}

#request-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#request-form input {
  padding: 12px 16px;
  background: #1a1d28;
  border: 1px solid #2a2d38;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

#request-form input:focus { border-color: #4da6ff; }

#request-form input::placeholder { color: #444; }

.btn-submit {
  padding: 14px;
  background: #4da6ff;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.btn-submit:hover { background: #3d96ef; }
.btn-submit:disabled { background: #222; color: #555; cursor: not-allowed; }

.form-message {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

.form-message.hidden { display: none; }
.form-message.success { background: #0d2a1a; color: #28c840; }
.form-message.error { background: #2a0d14; color: #ff5f57; }
.form-message.info { background: #0d1a2a; color: #4da6ff; }

/* Download success modal */
.download-success {
  text-align: center;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: popIn 0.5s ease-out;
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

.download-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.download-buttons .btn-download {
  justify-content: center;
  padding: 14px 16px;
  font-size: 13px;
}

.btn-secondary {
  background: #1a1d28 !important;
  color: #999 !important;
  border: 1px solid #2a2d38;
}

.btn-secondary:hover {
  background: #222530 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.install-steps {
  text-align: left;
  background: #1a1d28;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 13px;
  color: #666;
}

.install-steps strong {
  color: #999;
}

.install-steps ol {
  margin-top: 8px;
  padding-left: 18px;
}

.install-steps li {
  margin-bottom: 4px;
  line-height: 1.5;
}

.terminal-cmd {
  display: block;
  background: #0d0f14;
  color: #28c840;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'SF Mono', Monaco, monospace;
  margin: 8px 0;
  user-select: all;
  cursor: pointer;
  word-break: break-all;
}

/* Footer */
footer {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #14161e;
}

.footer-line {
  color: #2a2d38;
  font-size: 11px;
  line-height: 2;
}

/* Responsive */
@media (max-width: 600px) {
  .container { padding: 48px 16px 32px; }
  h1 { font-size: 36px; }
  .features { grid-template-columns: 1fr; }
  .modal-content { width: 90%; padding: 24px; }
  .demo-body { font-size: 12px; }
}
