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

:root {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-light: #ecfdf5;
  --text: #111;
  --text-secondary: #555;
  --text-muted: #999;
  --bg: #fff;
  --surface: #f7f7f8;
  --border: #e5e5e5;
  --radius: 12px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;
}

main {
  flex: 1;
}

/* ─── Navbar ─── */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-link-primary {
  background: var(--primary) !important;
  color: white !important;
}

.nav-link-primary:hover {
  background: var(--primary-hover) !important;
}

.nav-user {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: none;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  -webkit-appearance: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface);
}

.btn-lg {
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

/* ─── Hero ─── */
.platform-hero {
  background: var(--primary);
  padding: 3.5rem 1rem;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 620px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn-primary {
  background: white;
  color: var(--primary);
}

.hero-cta .btn-primary:hover {
  background: #f0f0f0;
}

.hero-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
}

.hero-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ─── Sections ─── */
.section-heading {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ─── Features ─── */
.features {
  padding: 3.5rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

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

/* ─── Pricing ─── */
.pricing {
  padding: 3.5rem 1rem;
  background: var(--surface);
}

.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.pricing-fee {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.pricing-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.45rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li::before {
  content: "\2713 ";
  color: #16a34a;
  font-weight: 700;
  margin-right: 0.4rem;
}

/* ─── CTA ─── */
.cta-section {
  padding: 3.5rem 1rem;
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
}

/* ─── Footer ─── */
.platform-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 1.15rem 1rem;
  text-align: center;
  font-size: 0.78rem;
}

/* ─── Forms ─── */
.form-container {
  max-width: 400px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
}

.form-card h1 {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.25rem;
}

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

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px; /* prevent iOS zoom */
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  background: white;
  color: var(--text);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
}

.form-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
  border: 1px solid #fecaca;
}

.form-success {
  background: #ecfdf5;
  color: #16a34a;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
  border: 1px solid #bbf7d0;
}

.form-footer {
  text-align: center;
  margin-top: 1.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ─── Dashboard ─── */
.dashboard {
  max-width: 900px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.dashboard h1 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.dashboard-section {
  margin-bottom: 2rem;
}

.dashboard-section h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.82rem;
}

th {
  background: var(--surface);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

td {
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-active { background: #dcfce7; color: #16a34a; }
.badge-cooling { background: #fef3c7; color: #d97706; }
.badge-sold { background: #dbeafe; color: #2563eb; }
.badge-paid { background: #dcfce7; color: #16a34a; }
.badge-pending { background: #fef3c7; color: #d97706; }
.badge-overdue { background: #fef2f2; color: #dc2626; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }
.badge-verified { background: #dcfce7; color: #16a34a; }
.badge-unverified { background: #fef2f2; color: #dc2626; }

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

/* ─── Payment Pages ─── */
.payment-page {
  max-width: 460px;
  margin: 3rem auto;
  text-align: center;
  padding: 0 1rem;
}

.payment-page h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.payment-page p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.55;
  font-size: 0.92rem;
}

.payment-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

/* ─── Docs ─── */
.docs-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.docs-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.docs-card h3:first-child {
  margin-top: 0;
}

.docs-card p {
  margin-bottom: 0.5rem;
}

.docs-card code {
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--text);
}

.docs-dns-table {
  margin: 0.6rem 0;
}

.docs-dns-table table {
  font-size: 0.82rem;
}

.docs-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.25rem;
}

.docs-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.docs-steps li {
  counter-increment: step;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.docs-steps li:last-child {
  border-bottom: none;
}

.docs-steps li::before {
  content: counter(step) ".";
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.5rem;
}

.docs-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.docs-list li {
  padding: 0.35rem 0;
}

.docs-list li::before {
  content: "\2022";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.docs-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.docs-card a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════
   Tablet+ (min-width: 640px)
   ═══════════════════════════════════ */
@media (min-width: 640px) {
  .nav-container {
    padding: 0 1.5rem;
    height: 56px;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-link {
    font-size: 0.88rem;
    padding: 0.4rem 0.75rem;
  }

  .nav-links {
    gap: 0.4rem;
  }

  .nav-user {
    display: inline;
  }

  .platform-hero {
    padding: 5rem 1.5rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 0.98rem;
  }

  .section-heading {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
  }

  .features {
    padding: 5rem 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .feature-card {
    padding: 1.75rem 1.5rem;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .pricing {
    padding: 5rem 1.5rem;
  }

  .pricing-card {
    padding: 2.5rem 2rem;
  }

  .pricing-fee {
    font-size: 4.5rem;
  }

  .cta-section {
    padding: 5rem 1.5rem;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .form-container {
    margin: 3rem auto;
    padding: 0 1.5rem;
  }

  .form-card {
    padding: 2.25rem;
  }

  .form-card h1 {
    font-size: 1.4rem;
  }

  .dashboard {
    margin: 2rem auto;
    padding: 0 1.5rem;
  }

  .dashboard h1 {
    font-size: 1.6rem;
    margin-bottom: 1.75rem;
  }

  table {
    font-size: 0.88rem;
  }

  th {
    padding: 0.7rem 1rem;
    font-size: 0.72rem;
  }

  td {
    padding: 0.7rem 1rem;
  }

  .payment-page {
    margin: 4rem auto;
  }

  .payment-page h1 {
    font-size: 1.8rem;
  }
}
