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

:root {
  --purple: #534AB7;
  --purple-light: #EEEDFE;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #999;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.18);
  --bg: #ffffff;
  --bg-secondary: #f8f7f5;
  --radius-md: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg);
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }


/* --- Navigation --- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo:hover { text-decoration: none; }

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 16px; height: 16px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-select {
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  cursor: pointer;
  appearance: none;
}


/* --- Buttons --- */

.btn {
  display: inline-block;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  border-radius: var(--radius-md);
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
  border: none;
}

.btn-ghost {
  color: var(--text-primary);
  background: transparent;
  border: 0.5px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: var(--purple);
}

.btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn-hero-primary {
  font-size: 14px;
  padding: 10px 22px;
  color: #fff;
  background: var(--purple);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-hero-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn-hero-ghost {
  font-size: 14px;
  padding: 10px 22px;
  color: var(--text-primary);
  background: transparent;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s;
}

.btn-hero-ghost:hover {
  background: var(--bg-secondary);
  text-decoration: none;
}


/* --- Hero --- */

.hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 12px;
  color: var(--purple);
  background: var(--purple-light);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}


/* --- Divider --- */

.divider {
  max-width: 640px;
  margin: 1rem auto;
  padding: 0 2rem;
}

.divider hr {
  border: none;
  border-top: 0.5px solid var(--border);
}


/* --- Features --- */

.features {
  max-width: 680px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.feature-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

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

.feature-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* --- Social proof --- */

.social-proof {
  max-width: 640px;
  margin: 2rem auto 3rem;
  padding: 0 2rem;
  text-align: center;
}

.social-proof p {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.avatars {
  display: flex;
  justify-content: center;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  margin-left: -6px;
}

.avatars .avatar:first-child { margin-left: 0; }


/* --- Auth pages --- */

.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(83, 74, 183, 0.12);
}

.form-group input::placeholder {
  color: var(--text-tertiary);
}

.auth-card .btn-hero-primary {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
}

.auth-footer {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 1.25rem;
}


/* --- Footer --- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 0.5px solid var(--border);
}

.footer p {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-secondary);
}


/* --- Responsive --- */

@media (max-width: 600px) {
  .nav { padding: 0.75rem 1rem; }
  .nav-right .btn-ghost { display: none; }
  .hero { padding: 3rem 1.25rem 2rem; }
  .hero h1 { font-size: 28px; }
  .features { padding: 1rem 1.25rem; }
  .footer { padding: 1.25rem 1rem; }
}


/* --- Flash meessages --- */
.flash-messages {
  max-width: 640px;
  margin: 1rem auto;
  padding: 0 2rem;
}

.flash {
  font-size: 14px;
  color: #993C1D;
  background: #FAECE7;
  border: 0.5px solid #F0997B;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 8px;
}
