/* --- Variables --- */
:root {
  --bg: #0d0e10;
  --bg-elevated: #14161a;
  --bg-card: #1a1c22;
  --border: #2a2d36;
  --text: #e4e6eb;
  --text-muted: #8b8f9a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #22c55e;
  --dev-badge: #f59e0b;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 12px;
  --radius-sm: 8px;
}

/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Subtle noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
.header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-text {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-dev {
  background: rgba(245, 158, 11, 0.15);
  color: var(--dev-badge);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* --- Hero --- */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

.hero-title {
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero-title-main {
  display: block;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-sub {
  display: block;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 32ch;
}

/* --- Status --- */
.status {
  padding: 2rem 0;
  position: relative;
  z-index: 2;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dev-badge);
  flex-shrink: 0;
  margin-top: 0.4rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.status-text {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.status-text:last-child {
  margin-bottom: 0;
}

/* --- Newsletter --- */
.newsletter {
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 2;
}

.newsletter-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.newsletter-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.newsletter-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.newsletter-form {
  max-width: 420px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-input::placeholder {
  color: var(--text-muted);
}

.newsletter-input:hover {
  border-color: #3a3d48;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.newsletter-input.error {
  border-color: #ef4444;
}

.newsletter-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

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

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

.newsletter-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-message {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: #ef4444;
}

/* --- Footer --- */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
  }

  .newsletter-input {
    min-width: 100%;
  }

  .newsletter-btn {
    width: 100%;
  }
}
