:root {
  --bg-color: #050505;
  --surface-color: #0c0c0c;
  --surface-border: #1e1e1e;
  --surface-border-hover: #333333;
  --text-primary: #ededed;
  --text-muted: #888888;
  --text-faint: #444444;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-blue: #0070f3;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.background-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.radial-glow {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(120, 119, 198, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.brand-text {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-domain {
  color: #888888;
  font-weight: 500;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 12px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite ease-in-out;
}

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

.status-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent-emerald);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 48px 0;
}

.badge-tag {
  margin-bottom: 20px;
}

.tag-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.headline {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #777777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subheadline {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.55;
  font-weight: 400;
}

.terminal-card {
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--surface-border);
  font-family: var(--font-mono);
  font-size: 12px;
}

.window-buttons {
  display: flex;
  gap: 6px;
}

.win-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.win-close { background-color: #ff5f56; }
.win-min { background-color: #ffbd2e; }
.win-max { background-color: #27c93f; }

.terminal-title {
  color: var(--text-muted);
}

.terminal-version {
  color: var(--text-faint);
}

.terminal-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line {
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  min-height: 24px;
}

.log-line.active {
  opacity: 1;
  transform: translateY(0);
}

.log-prefix {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  transition: all 0.25s ease;
}

.log-prefix.ok {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.log-prefix.running {
  color: #0070f3;
  background: rgba(0, 112, 243, 0.12);
  border: 1px solid rgba(0, 112, 243, 0.3);
  box-shadow: 0 0 10px rgba(0, 112, 243, 0.15);
}

.log-prefix.sync {
  color: #f5a623;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.15);
}

.log-spinner {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinLog 0.65s linear infinite;
}

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

.sync-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #f5a623;
  border-radius: 50%;
  box-shadow: 0 0 6px #f5a623;
  animation: pulseSync 1.4s infinite ease-in-out;
}

@keyframes pulseSync {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.blinking-dots {
  display: inline-block;
  animation: blinkDots 1.4s infinite steps(4, start);
}

@keyframes blinkDots {
  0%, 20% { opacity: 0.2; }
  40% { opacity: 0.5; }
  60% { opacity: 0.8; }
  80%, 100% { opacity: 1; }
}

.log-key {
  color: #888888;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.log-desc {
  color: #ededed;
  font-family: var(--font-mono);
  font-size: 13px;
}

.progress-container {
  padding: 14px 20px 18px 20px;
  border-top: 1px solid var(--surface-border);
  background: rgba(0, 0, 0, 0.3);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-percentage {
  color: #ffffff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--surface-border);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0070f3, #10b981);
  border-radius: 9999px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.notify-form {
  max-width: 500px;
  margin-bottom: 32px;
}

.input-wrapper {
  display: flex;
  gap: 8px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: #ffffff;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
}

.input-wrapper input::placeholder {
  color: var(--text-faint);
}

.input-wrapper button {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.input-wrapper button:hover {
  background-color: #e5e5e5;
}

.input-wrapper button:disabled {
  background-color: #262626;
  color: var(--text-muted);
  cursor: default;
}

.form-feedback {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 10px;
  min-height: 18px;
}

.form-feedback.success {
  color: var(--accent-emerald);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--surface-border);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-meta {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

@media (max-width: 640px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 32px;
  }
  
  .input-wrapper {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }
  
  .input-wrapper button {
    width: 100%;
    padding: 12px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
