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

:root {
  --bg: #0f172a;
  --bg-subtle: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --border: #334155;
  --success: #10b981;
  --error: #f43f5e;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.container {
  max-width: 620px;
  width: 100%;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.logo {
  width: 140px;
  height: auto;
  filter: brightness(0) invert(1);
}

.coming-soon {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
}

h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.tagline strong {
  color: var(--text);
  font-weight: 500;
}

.signup-form {
  width: 100%;
}

.input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

input[type="email"] {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

input[type="email"]::placeholder {
  color: var(--text-muted);
}

button {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  min-width: 160px;
}

button:hover:not(:disabled) {
  background: var(--accent-hover);
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: 8px;
  color: var(--success);
}

.success-message svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.error-message {
  padding: 0.75rem;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid var(--error);
  border-radius: 8px;
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

footer {
  position: absolute;
  bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  max-width: 480px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  min-width: auto;
}

.cookie-close svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.cookie-close:hover {
  opacity: 0.7;
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cookie-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.cookie-header-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-text a:hover {
  text-decoration: none;
}

.cookie-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.cookie-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-option-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.cookie-option-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.25rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.625rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-width: auto;
  white-space: nowrap;
}

.cookie-btn.primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
}

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

.cookie-btn.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.cookie-btn.outline:hover {
  background: rgba(20, 184, 166, 0.1);
}

/* Cookie Settings Button */
.cookie-settings-btn {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
  transition: all 0.2s;
  min-width: auto;
}

.cookie-settings-btn svg {
  width: 20px;
  height: 20px;
  color: var(--bg);
}

.cookie-settings-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

@media (max-width: 540px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  .cookie-buttons {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .header {
    gap: 0.75rem;
  }

  .logo {
    width: 110px;
  }

  .coming-soon {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }

  .input-group {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  footer {
    position: static;
    margin-top: 3rem;
  }

  .cookie-settings-btn {
    bottom: 0.75rem;
    left: 0.75rem;
  }
}
