/* ============================================
   Tradimo — Coming Soon / Relaunch Page
   Standalone dark theme, matching main site
   ============================================ */

/* Fonts — self-hosted, same as main site */
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("assets/fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #0f172a;
  color: #cbd5e1;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Source Serif 4", Georgia, serif;
  color: #f1f5f9;
}

/* ---- Ambient glow effects ---- */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-top {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: rgba(217, 119, 86, 0.07);
}
.glow-bottom {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: rgba(96, 165, 250, 0.05);
}

/* ---- Page layout ---- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.header {
  padding: 40px 0 24px;
  padding: 40px 0 24px;
  text-align: center;
}
.logo {
  height: 56px;
  width: auto;
  opacity: 0.9;
}


/* ---- Hero section ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0 60px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #D97756;
  background: rgba(217, 119, 86, 0.1);
  border: 1px solid rgba(217, 119, 86, 0.2);
  border-radius: 100px;
  margin-bottom: 32px;
  animation: pulse-badge 3s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { border-color: rgba(217, 119, 86, 0.2); }
  50% { border-color: rgba(217, 119, 86, 0.45); }
}

/* Heading */
h1 {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ---- Features ---- */
.features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 460px;
  margin-bottom: 56px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.feature:hover {
  border-color: rgba(217, 119, 86, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(217, 119, 86, 0.1);
  color: #D97756;
}
.feature strong {
  display: block;
  color: #f1f5f9;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.feature span {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ---- Signup card ---- */
.signup-card {
  width: 100%;
  max-width: 480px;
  padding: 36px 32px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.signup-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.signup-card > p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 24px;
  line-height: 1.6;
}
.signup-card > p strong {
  color: #D97756;
  font-weight: 600;
}

/* Visually hidden (for screen readers) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Inline error message */
.error-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  text-align: left;
  line-height: 1.5;
}
.error-message[hidden] { display: none; }

/* Honeypot — invisible to real users */
#hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* Form */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.signup-form[hidden] {
  display: none;
}
.input-row {
  display: flex;
  gap: 10px;
}
.input-row input {
  flex: 1;
  padding: 14px 18px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-row input::placeholder {
  color: #64748b;
}
.input-row input:focus {
  border-color: #D97756;
  box-shadow: 0 0 0 3px rgba(217, 119, 86, 0.15);
}
.input-row button {
  flex-shrink: 0;
  padding: 14px 28px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #D97756;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.input-row button:hover {
  background: #C4623F;
}
.input-row button:active {
  transform: scale(0.98);
}

/* Button loading state */
.btn-loading {
  display: none;
  animation: spin 1s linear infinite;
}
.input-row button.loading .btn-text {
  display: none;
}
.input-row button.loading .btn-loading {
  display: inline-flex;
}

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

.privacy-note {
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}
.privacy-note a {
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.privacy-note a:hover {
  color: #cbd5e1;
}

/* Success message */
.success-message {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  text-align: left;
  color: #86efac;
}
.success-message[hidden] {
  display: none;
}
.success-message svg {
  flex-shrink: 0;
  color: #22c55e;
}
.success-message strong {
  display: block;
  color: #86efac;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.success-message span {
  font-size: 0.85rem;
  color: #6ee7b7;
}

/* ---- Footer ---- */
.footer {
  padding: 32px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #475569;
}

/* ---- Entrance animations ---- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge        { animation: fade-up 0.6s ease-out both, pulse-badge 3s ease-in-out infinite; }
h1            { animation: fade-up 0.6s ease-out 0.1s both; }
.subtitle     { animation: fade-up 0.6s ease-out 0.2s both; }
.features     { animation: fade-up 0.6s ease-out 0.3s both; }
.signup-card  { animation: fade-up 0.6s ease-out 0.4s both; }

/* ---- Responsive ---- */
@media (max-width: 540px) {
  h1 {
    font-size: 2rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .input-row {
    flex-direction: column;
  }
  .input-row button {
    justify-content: center;
  }
  .signup-card {
    padding: 28px 20px;
  }
  .features {
    max-width: 100%;
  }
}
