/* ===== RESET & CSS VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #18803b;
  --green-dark:   #0f5a29;
  --green-light:  #dff2e6;
  --green-bg:     #f0faf3;
  --text:         #1a1a1a;
  --text-mid:     #555;
  --text-light:   #888;
  --border:       #E6EBF2;
  --bg-off:       #F5F7FA;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --radius:       10px;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;

  --fs-xs:  12px;
  --fs-sm:  14px;
  --fs-md:  16px;
  --fs-lg:  20px;
  --fs-xl:  28px;
  --fs-2xl: 40px;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #F5F7FA;
  color: var(--text);
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  text-decoration: none;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--green);
}
.nav-logo {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  flex-shrink: 0;
}
.nav-btns {
  display: flex;
  gap: var(--sp-1);
}
.nbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nbtn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.nbtn-outline:hover { background: var(--green-bg); }
.nbtn-fill {
  background: var(--green);
  color: #fff;
  border: 1.5px solid var(--green);
}
.nbtn-fill:hover { background: var(--green-dark); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(140deg, var(--green) 0%, #1a9845 60%, #22b858 100%);
  color: #fff;
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -12%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: var(--sp-2);
}
.hero-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: var(--sp-1);
}
.hero-desc {
  font-size: var(--fs-md);
  opacity: 0.85;
  margin-bottom: var(--sp-5);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  min-width: 148px;
  justify-content: center;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.btn-hero-white {
  background: #fff;
  color: var(--green);
  border: 2px solid #fff;
}
.btn-hero-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-hero-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ===== SECTION COMMON ===== */
.section {
  padding: var(--sp-6) var(--sp-4);
}
.section-alt { background: var(--bg-off); }
.section-inner {
  max-width: 840px;
  margin: 0 auto;
}
.section-heading {
  text-align: center;
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}
.section-sub {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-light);
  margin-bottom: var(--sp-4);
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--sp-3);
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}
.step-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-icon-wrap i {
  font-size: var(--fs-md);
  color: var(--green);
}
.step-body {
  flex: 1;
}
.step-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: #5a9e72;
  background: #edf7f1;
  padding: 1px 8px;
  border-radius: 8px;
  margin-bottom: var(--sp-1);
  letter-spacing: 0.3px;
}
.step-body h4 {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}
.step-body p {
  font-size: var(--fs-sm);
  color: var(--text-mid);
  line-height: 1.65;
}

/* ===== FLOOR USAGE ===== */
.floor-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.floor-card {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--sp-3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.floor-card.shared {
  border-left: 3px solid var(--green);
}
.floor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.floor-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.floor-name i { color: var(--green); font-size: var(--fs-md); }
.floor-pills {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  color: var(--text-mid);
  background: var(--bg-off);
  border-radius: 20px;
  padding: 2px 10px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-total { background: #a0aec0; }
.dot-used  { background: #e9a820; }
.dot-free  { background: var(--green); }
.floor-note {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-light);
}
.track {
  background: var(--border);
  border-radius: 4px;
  height: 10px;
  overflow: hidden;
}
.fill {
  height: 100%;
  border-radius: 4px;
  font-size: 0;
}
.fill-1 { background: #18803b; }
.fill-2 { background: #4dab2e; }
.fill-3 { background: #e9a820; }
.fill-4 { background: #e06b1a; }
.fill-5 { background: #dc3545; }

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-2);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 40px;
  height: 40px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-2);
}
.stat-icon i { font-size: var(--fs-md); color: var(--green); }
.stat-num {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}
.stat-lbl {
  font-size: var(--fs-xs);
  color: var(--text-light);
  margin-top: var(--sp-1);
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .nav { padding: 0 var(--sp-2); }
  .nav-brand { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; min-width: 0; flex-shrink: 1; }
  .nav-logo { width: 26px; height: 26px; font-size: 11px; flex-shrink: 0; }
  .nav-btns { flex-shrink: 0; gap: 6px; }
  .nbtn { padding: 6px 10px; font-size: 12px; }

  .hero { padding: var(--sp-5) var(--sp-3); }
  .hero-title { font-size: var(--fs-xl); white-space: nowrap; }
  .hero-desc { font-size: var(--fs-sm); }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-hero { width: 80%; }

  .section { padding: var(--sp-5) var(--sp-3); }
  .section-heading { font-size: var(--fs-lg); }
  .steps-grid { grid-template-columns: 1fr; gap: var(--sp-3); }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: var(--sp-3) var(--sp-2); }
  .stat-num { font-size: var(--fs-xl); }

}

@media (max-width: 360px) {
  .hero-title { font-size: var(--fs-lg); white-space: normal; }
}
