/* =========================================
   Cendria — styles.css
   ========================================= */

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

:root {
  --bg-dark:      #09090f;
  --bg-card:      rgba(255, 255, 255, 0.04);
  --bg-card-hover:rgba(255, 255, 255, 0.08);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(167, 139, 250, 0.4);

  --violet:       #a78bfa;
  --violet-light: #c4b5fd;
  --sky:          #38bdf8;
  --sky-light:    #7dd3fc;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-glow: 0 0 60px rgba(167, 139, 250, 0.15);
}

/* ---- Reset & Base ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ---- Particle Canvas ---- */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Language Toggle ---- */
.lang-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.75rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--violet-light);
  background: rgba(167, 139, 250, 0.12);
}

.lang-divider {
  color: var(--text-muted);
  font-size: 0.75rem;
  user-select: none;
}

/* ---- Main Container ---- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: 6rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
}

/* ---- Brand ---- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logo-mark svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.brand-name {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #e2d9f3 0%, var(--violet-light) 40%, var(--sky-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Status Badge ---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--violet-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(167, 139, 250, 0); }
}

/* ---- Headline ---- */
.headline-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.headline {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.subline {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.subline strong {
  color: var(--sky-light);
  font-weight: 500;
}

/* ---- Progress ---- */
.progress-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.progress-pct {
  color: var(--violet-light);
  font-weight: 600;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--violet), var(--sky));
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.6);
}

/* ---- Notify ---- */
.notify-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.notify-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.notify-form {
  display: flex;
  width: 100%;
  max-width: 420px;
  gap: 0.5rem;
}

.email-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.email-input:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.notify-btn {
  background: linear-gradient(135deg, var(--violet), #7c3aed);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.4rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.3);
}

.notify-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(167, 139, 250, 0.45);
}

.notify-btn:active {
  transform: translateY(0);
}

.form-message {
  font-size: 0.82rem;
  min-height: 1.2em;
  transition: color 0.2s;
}

.form-message.success { color: #4ade80; }
.form-message.error   { color: #f87171; }

/* ---- Feature Cards ---- */
.features-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(167, 139, 250, 0.1);
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 139, 250, 0.1);
  border-radius: var(--radius-sm);
  color: var(--violet-light);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
  width: 100%;
}

.footer-link {
  color: var(--sky-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--sky);
}

.footer-sub {
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 500px) {
  .container {
    padding-top: 5rem;
    gap: 2rem;
  }

  .brand-name {
    font-size: 2.1rem;
  }

  .notify-form {
    flex-direction: column;
  }

  .notify-btn {
    width: 100%;
    padding: 0.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .lang-toggle {
    top: 1rem;
    right: 1rem;
  }
}
