:root {
  --ink: #0e1c1a;
  --green: #12b76a;
  --green-soft: #e8fbf0;
  --red: #ef4444;
  --muted: #5b6562;
  --line: #e8eceb;
  --canvas: #f6f7f6;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { font-weight: 800; font-size: 15px; letter-spacing: -.03em; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.brand .ph { color: var(--green); font-size: 18px; }
.brand span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 15px;
}
.btn .ph { font-size: 1.15em; }
.icon-box {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--green-soft); color: #0b7a45;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
}
.btn-green { background: var(--green); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--green-soft); color: #0b7a45; }
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, #f3faf6 0%, #fff 70%); }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.12; letter-spacing: -.04em; margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.section { padding: 56px 0; }
.section h2 { font-size: 32px; letter-spacing: -.03em; margin: 0 0 10px; }
.muted { color: var(--muted); }
.prose p { color: var(--muted); max-width: 720px; }
.prose ul { color: var(--muted); padding-left: 20px; }
.prose li { margin: 8px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.form { display: grid; gap: 12px; }
label { font-weight: 700; font-size: 13px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--canvas);
  border-radius: 14px; padding: 12px 14px; font: inherit;
}
.flash { padding: 12px 14px; border-radius: 14px; background: var(--green-soft); color: #0b7a45; font-weight: 600; }
.flash-err { background: #ffe4e6; color: #9f1239; padding: 12px 14px; border-radius: 14px; font-weight: 600; }
.footer { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer a:hover { color: var(--ink); }
.footer-grid { display: grid; gap: 20px; grid-template-columns: 1.4fr 1fr 1fr; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: #0b7a45; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.online { color: var(--green); font-weight: 700; }
.offline { color: var(--red); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 22px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--ink); color: #fff; }
.compare tbody th { width: 34%; color: var(--ink); }
.cta h2 { margin-bottom: 8px; }
.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.product-card-media { display: block; background: var(--canvas); }
.product-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-card-body { padding: 22px; }
.product-card-body h2 { font-size: 24px; margin: 10px 0 8px; letter-spacing: -.03em; }
.product-card-body p { margin: 0; color: var(--muted); }
.product-hero-img { max-width: 360px; margin: 24px 0 0; }
.app-shell { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 56px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.app-head h1, .app-title { font-size: 32px; letter-spacing: -.04em; margin: 0 0 4px; }
.app-back { margin: 0 0 12px; }
.app-back a { text-decoration: none; font-weight: 700; color: var(--muted); }
.app-empty { text-align: center; }
.app-empty h2 { margin-top: 0; }
.app-note { margin-top: 20px; }
.device-list { display: grid; gap: 12px; }
.device-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border: 1px solid var(--line); border-radius: 22px;
  text-decoration: none; background: #fff;
}
.device-icon {
  width: 44px; height: 44px; border-radius: 14px; background: var(--canvas);
  flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ink);
}
.device-icon.is-on { color: var(--green); background: var(--green-soft); }
.device-icon.is-off { color: var(--red); background: #ffe4e6; }
.device-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.device-copy strong { font-size: 16px; }
.device-copy em { font-style: normal; font-weight: 700; font-size: 13px; }
.device-copy small { color: var(--muted); font-size: 12px; }
.device-meta { text-align: right; display: grid; gap: 6px; justify-items: end; }
.device-meta b { font-size: 11px; color: var(--muted); }
.status-panel { text-align: center; padding: 12px 0 28px; }
.status-orb {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px;
  box-shadow: 0 0 0 12px rgba(18,183,106,.12);
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.status-orb.is-off {
  background: var(--red);
  box-shadow: 0 0 0 12px rgba(239,68,68,.12);
}
.status-panel h2 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.03em; }
.outage-badge {
  display: inline-block; margin-top: 12px; padding: 10px 16px;
  background: #ffe4e6; color: var(--red); font-weight: 700; border-radius: 16px;
}
.info-list { border-top: 1px solid var(--line); }
.info-list div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.info-list span { color: var(--muted); }
.app-section { margin: 32px 0 12px; font-size: 18px; }
.history-day { font-weight: 800; margin: 18px 0 10px; }
.history-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 16px; margin-bottom: 12px;
}
.history-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.history-top small { display: block; color: var(--muted); font-size: 12px; }
.history-top em { font-style: normal; font-weight: 700; font-size: 12px; }
.history-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; margin-top: 16px; }
.history-line span { display: block; color: var(--muted); font-size: 12px; }
.history-mid { text-align: center; min-width: 90px; }
.history-bar { display: block; height: 2px; background: var(--line); margin-top: 8px; }
.remove-box { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.btn-danger { background: #ffe4e6; color: #9f1239; }
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 68px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-left: 0;
  }
  .nav-links.is-open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
}
