:root {
  --bg: #f3f7f6;
  --panel: #ffffff;
  --panel-soft: #eef6f3;
  --text: #16342f;
  --muted: #647a74;
  --primary: #0d8b73;
  --primary-dark: #0a6b59;
  --accent: #35b58f;
  --warning: #f39b2f;
  --danger: #e25353;
  --line: #dce9e5;
  --shadow: 0 20px 45px rgba(13, 83, 70, 0.09);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #eef5f3 0%, #f8fbfa 100%);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 246, 0.92);
  border-bottom: 1px solid rgba(220, 233, 229, 0.8);
}

.topbar-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow);
}

/* .logo {
      width: 20px;
      height: 20px;
      background: url('../pic/drip_logo.png') no-repeat center/contain;      
    } */

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 12px 16px;
  color: var(--muted);
  border-radius: 12px;
  transition: 0.25s ease;
  font-weight: 600;
}

/* .nav a:hover,
.nav a.active {
  background: var(--panel);
  color: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(13, 83, 70, 0.08);
} */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  margin-bottom: 18px;
  background: linear-gradient(150deg, #07231d 0%, #0a3a30 45%, #0d2e28 75%, #061a16 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.05) 41%, rgba(255, 255, 255, 0.05) 43%, transparent 44%),
    linear-gradient(115deg, transparent 60%, rgba(255, 255, 255, 0.04) 61%, rgba(255, 255, 255, 0.04) 63%, transparent 64%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(53, 181, 143, 0.35), transparent 45%),
    radial-gradient(circle at 88% 78%, rgba(13, 139, 115, 0.32), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: block;
}

.dashboard,
.role-card,
.feature-card,
.cta-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #d7f3ea;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 auto 20px;
  max-width: 720px;
  color: #ffffff;
}

.hero-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 0 auto;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 18px 40px rgba(13, 107, 89, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--panel-soft);
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.hero-actions .btn {
  border-radius: 999px;
  padding: 15px 26px;
}

.hero-actions .btn-primary {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hero-actions .btn-primary::after {
  content: "→";
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-actions .btn-secondary:hover,
.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
}

.mini-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.mini-stat strong {
  font-size: 1.4rem;
  color: var(--text);
}

.dashboard {
  padding: 20px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
  min-height: 100%;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-head h3,
.section-head h2 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaf8f3;
  color: #0d765d;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid #d5efe7;
}

.status-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #17b26a;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
}

.metric-card label {
  font-size: 0.88rem;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.metric-value {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-bottom: 10px;
}

.metric-value strong {
  font-size: 1.8rem;
  line-height: 1;
}

.metric-value small {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  padding-bottom: 2px;
}

.progress {
  height: 10px;
  background: #edf3f1;
  border-radius: 999px;
  overflow: hidden;
}

.progress>i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.quick-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: var(--panel-soft);
}

.quick-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(220, 233, 229, 0.9);
}

.quick-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quick-row strong {
  display: block;
  margin-bottom: 4px;
}

.quick-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tag {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.section {
  padding: 18px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head p {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}

.roles-grid,
.features-grid,
.preview-grid {
  display: grid;
  gap: 18px;
}

.roles-grid {
  grid-template-columns: repeat(3, 1fr);
}

.role-card {
  padding: 24px;
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.role-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(53, 181, 143, 0.16), transparent 70%);
}

.role-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(13, 139, 115, 0.14), rgba(53, 181, 143, 0.2));
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 1.1rem;
  border: 1px solid rgba(13, 139, 115, 0.1);
}

.role-card h3 {
  font-size: 1.2rem;
}

.role-card p {
  color: var(--muted);
  line-height: 1.75;
}

.role-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text);
}

.role-card li {
  display: flex;
  align-items: start;
  gap: 10px;
  line-height: 1.55;
  color: #25453e;
}

.role-card li::before {
  content: "•";
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
  transform: translateY(2px);
}

.role-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 800;
  margin-top: 2px;
}

.features-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.feature-card h4 {
  font-size: 1.02rem;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.preview-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0 18px;
}

.small-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fbfefd;
}

.small-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.small-card strong {
  font-size: 1.45rem;
}



.chart-box.climate-card {
  padding: 22px 22px 18px;
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid #dce9e5;
  box-shadow: 0 18px 40px rgba(13, 83, 70, 0.08);
}

.chart-header.chart-header-lg {
  align-items: flex-start;
  margin-bottom: 14px;
}

.chart-header.chart-header-lg strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 6px;
}

.chart-header.chart-header-lg p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.chart-canvas-wrap {
  height: 330px;
  position: relative;
}

.tag.tag-primary {
  color: #2a6ef0;
  background: #eef3ff;
  border-color: #d8e4ff;
}

.chart-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, #fbfefd 0%, #f5fbf8 100%);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.chart {
  height: 210px;
  position: relative;
  border-left: 2px solid #d9e6e2;
  border-bottom: 2px solid #d9e6e2;
  margin-left: 6px;
  background:
    repeating-linear-gradient(to top,
      transparent 0,
      transparent 38px,
      rgba(220, 233, 229, 0.65) 39px,
      transparent 40px);
  overflow: hidden;
  border-radius: 0 0 14px 14px;
}

.line {
  position: absolute;
  inset: 0;
}

.line svg {
  width: 100%;
  height: 100%;
}

.bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: space-around;
  padding: 0 8px 0 18px;
  gap: 10px;
}

.bar {
  width: 12%;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(53, 181, 143, 0.95), rgba(13, 139, 115, 0.85));
  opacity: 0.22;
}

.side-panel {
  display: grid;
  gap: 18px;
}

.alarm-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(243, 155, 47, 0.16), rgba(255, 248, 235, 1));
  border: 1px solid rgba(243, 155, 47, 0.26);
}

.alarm-box strong {
  display: block;
  margin-bottom: 6px;
}

.alarm-box p {
  color: #8b5d13;
  line-height: 1.55;
  font-size: 0.94rem;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fcfefe;
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.list-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-box {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 38px;
  background:
    radial-gradient(circle at right top, rgba(53, 181, 143, 0.16), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}

.cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 720px;
}

.map-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 18px;
  margin-bottom: 10px;
}

.map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.map-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
}

.map-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.map-frame {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  display: block;
}

.footer {
  padding: 10px 0 34px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 1100px) {

  .hero-grid,
  .preview-grid,
  .roles-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .mini-stats,
  .subgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    height: auto;
    padding: 14px 0;
    align-items: start;
    flex-direction: column;
  }

  .hero-card,
  .dashboard,
  .panel,
  .role-card,
  .feature-card,
  .cta-box {
    padding: 18px;
  }

  .metrics-grid,
  .mini-stats,
  .subgrid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: start;
  }

  .chart-canvas-wrap {
    height: 260px;
  }

  h1 {
    font-size: 2rem;
  }
}