/* ================== GLOBAL RESET ================== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ================== CONTAINER ================== */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ================== HEADER / NAV ================== */
.header {
  position: sticky;
  top: 0;
  background: #ffffffc7;
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .3px;
}
.logo span {
  color: #2563eb;
}
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav a {
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover {
  background: #f1f5f9;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
}

/* ================== BUTTONS ================== */
.btn {
  background: #2563eb;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn.small {
  padding: 8px 12px;
  font-size: 14px;
}
.btn.outline {
  background: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
}
.btn:hover {
  background: #1e40af;
}

/* ================== HERO ================== */
.hero {
  padding: 70px 0;
  background: linear-gradient(180deg, #fff, #eef2ff);
}
.hero h1 {
  font-size: 40px;
  margin: 0 0 10px;
}
.hero p {
  margin: 0 0 20px;
  color: #475569;
}

/* ================== CARDS & GRIDS ================== */
.quick-links,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ================== FOOTER ================== */
.footer {
  margin-top: 40px;
  background: #0f172a;
  color: #cbd5e1;
  padding: 32px 0 0;
}
.footer a {
  color: #cbd5e1;
}
.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.copyright {
  margin-top: 20px;
  text-align: center;
  padding: 14px 0;
  border-top: 1px solid #1f2937;
  color: #94a3b8;
  font-size: 14px;
}
.muted {
  color: #64748b;
}

/* ================== FORMS ================== */
.input, textarea, select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 14px;
}
.form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}
textarea {
  resize: vertical;
}

/* ================== TABLE ================== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.table th, .table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.table th {
  background: #2563eb;
  color: white;
}

/* ================== TAGS ================== */
.tag {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
}
.tag.Free { background: #d1fae5; color: #065f46; }
.tag.Community { background: #e0f2fe; color: #075985; }
.tag.Beta { background: #fef9c3; color: #854d0e; }

/* ================== AUTH PAGES ================== */
.auth-card {
  max-width: 420px;
  margin: 30px auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.auth-card h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2563eb;
}
.auth-card .input {
  border-radius: 8px;
}
.auth-card .btn {
  width: 100%;
}
.auth-card .muted {
  text-align: center;
  font-size: 14px;
}

/* ================== NOTICES ================== */
.notice {
  padding: 12px;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    padding: 12px;
  }
  .nav a {
    padding: 12px 16px;
  }
  .nav-toggle {
    display: inline-block;
  }
  .hero h1 {
    font-size: 32px;
  }
}
