:root {
  --bg: #090b0e;
  --bg-surface: #11141a;
  --bg-card: #151922;
  --bg-input: #12151e;
  --border: #222735;
  --border-focus: #3b82f6;
  --border-subtle: #1a1f2c;

  --text-main: #f3f5f8;
  --text-muted: #8d95a5;
  --text-faint: #565e6e;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #60a5fa;

  --success: #10b981;
  --error: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

.moon {
  position: fixed;
  top: clamp(96px, 14vh, 150px);
  left: calc(50% + 250px);
  width: clamp(300px, 38vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.5;
  overflow: hidden;
  background: #090b0e url("/moon-nasa.jpg") center / 115% 115% no-repeat;
  box-shadow: 0 0 70px rgba(118, 157, 216, 0.2);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 11, 14, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-symbol {
  color: var(--accent-light);
  font-size: 18px;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 13px;
  color: var(--text-muted);
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Main */
main {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

/* Hero */
.welcome-hero,
.error-hero {
  padding: 24px 0;
}

.badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.badge-subtle {
  background: var(--bg-surface);
  color: var(--text-muted);
  border-color: var(--border);
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Feedback form */
.feedback-section {
  margin-top: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.feedback-section .section-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.feedback-section .section-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feedback-form input,
.feedback-form textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font: inherit;
  font-size: 14.5px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: var(--text-faint);
}

.feedback-form .cf-turnstile {
  min-height: 65px;
}

.fb-status {
  font-size: 13.5px;
  margin: 0;
}

.fb-status.success {
  color: #34d399;
}

.fb-status.error {
  color: #f87171;
}

.feedback-form .btn-primary {
  align-self: flex-start;
}

.feedback-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 600px) {
  .moon {
    top: 104px;
    left: 46%;
    width: 340px;
  }

  main {
    padding: 48px 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
