:root {
  --brand: #2f6fed;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1a2233;
  --muted: #5b6579;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: var(--card);
  border-bottom: 1px solid #e5e9f0;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.nav nav { flex: 1; margin-left: 2rem; }

.nav a {
  margin-right: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--text); }

.nav a.active { color: var(--brand); font-weight: 600; }
.nav a.active:hover { color: var(--brand); }

.btn-login {
  margin-right: 0 !important;
  border: 1px solid var(--brand);
  color: var(--brand) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-login:hover {
  background: var(--brand);
  color: white !important;
}

.hero {
  padding: 5rem 3rem 2rem;
  text-align: center;
}

.hero h1 { font-size: 2.4rem; margin-bottom: 0.75rem; }
.hero p { color: var(--muted); font-size: 1.1rem; }

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary { background: var(--brand); color: white; border: 1px solid var(--brand); }
.btn-secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); }

.btn-primary:hover {
  background: #2559c2;
  border-color: #2559c2;
  box-shadow: 0 4px 14px rgba(47, 111, 237, 0.25);
}

.btn-secondary:hover { background: rgba(47, 111, 237, 0.08); }

.page-hero {
  padding: 3.5rem 3rem 1rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); font-size: 1.05rem; }

.muted { color: var(--muted); }

.logos {
  text-align: center;
  padding: 1.5rem;
}

.logo-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.cta {
  text-align: center;
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 { margin-bottom: 0.25rem; }
.cta p { color: var(--muted); margin-bottom: 1.25rem; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 34, 51, 0.06);
}

.feature-card h3 { margin-top: 0; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

.demo {
  max-width: 640px;
  margin: 2rem auto 4rem;
  padding: 2rem;
  background: var(--card);
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  text-align: center;
}

.demo button {
  background: var(--brand);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.demo button:hover {
  background: #2559c2;
  box-shadow: 0 4px 14px rgba(47, 111, 237, 0.25);
}

#file-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  text-align: left;
}

#file-list li {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eef1f6;
  font-family: monospace;
  font-size: 0.9rem;
}

/* --- Features page --- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem 3rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.detail-card {
  background: var(--card);
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 34, 51, 0.06);
}

.detail-card h3 { margin-top: 0; }
.detail-card p { color: var(--muted); font-size: 0.95rem; }

/* --- Pricing page --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1rem 3rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.price-card {
  background: var(--card);
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-card:not(.featured):hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 34, 51, 0.06);
}

.price-card.featured {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(47, 111, 237, 0.12);
  transform: translateY(-6px);
}

.price-badge {
  display: inline-block;
  background: var(--brand);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.price-card h3 { margin: 0.25rem 0; }

.price {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.price span { font-size: 1rem; color: var(--muted); font-weight: 400; }

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  text-align: left;
}

.price-card li {
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  border-bottom: 1px solid #eef1f6;
}

/* --- About page --- */
.about-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 3rem 3rem;
}

.about-body p { color: var(--muted); line-height: 1.6; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-card {
  text-align: center;
  background: var(--card);
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  padding: 1.5rem 1rem;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.75rem;
}

.team-card h4 { margin: 0.25rem 0 0.15rem; }

/* --- Forms (contact + login) --- */
.contact-body, .login-section {
  max-width: 480px;
  margin: 1rem auto 4rem;
  padding: 0 1.5rem;
}

.card-form {
  background: var(--card);
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.card-form h1 { margin: 0 0 0.25rem; font-size: 1.5rem; }

.card-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}

.card-form input,
.card-form textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid #d7dce6;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.card-form button {
  margin-top: 1.5rem;
  background: var(--brand);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.card-form button:disabled { opacity: 0.7; cursor: default; }

.form-status {
  min-height: 1.2rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #d92c2c;
  text-align: center;
}

.form-status-ok { color: #1a8f4c; }

.login-card { margin-top: 1.5rem; }

.login-links {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.login-links a { color: var(--brand); text-decoration: none; margin: 0 0.25rem; }

.login-skip {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

.login-skip a { color: var(--brand); text-decoration: none; font-weight: 600; }
.login-skip a:hover { text-decoration: underline; }

/* --- Dashboard (post-login) --- */
.dashboard-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 3rem 0.5rem;
}

.dashboard-header h1 { margin: 0 0 0.25rem; font-size: 1.75rem; }
.dashboard-header code {
  background: #eef1f6;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin: 1rem auto 0;
  padding: 0 3rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 0.85rem; }

.dashboard-files {
  text-align: left;
  max-width: 1000px;
  margin: 1.5rem auto 4rem;
}
.dashboard-files h2 { margin-top: 0; }

/* --- Footer --- */
.footer {
  padding: 2.5rem 3rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid #e5e9f0;
  margin-top: 2rem;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-note {
  text-align: center;
  max-width: 1000px;
  margin: 2rem auto 0;
  font-size: 0.8rem;
  border-top: 1px solid #eef1f6;
  padding-top: 1.25rem;
}
