/* DND IoT landing — same palette as the DND IoT apps (navy + teal). */
:root {
  --navy: #0b2239;
  --navy-2: #123956;
  --teal: #1ac5a1;
  --teal-2: #2ee0bd;
  --teal-ink: #0b7569;
  --bg: #f5f8fa;
  --surface: #ffffff;
  --surface-2: #eef4f6;
  --text: #0e1f2f;
  --muted: #5a6b7b;
  --line: #dde6ec;
  --shadow: 0 18px 40px -24px rgba(11, 34, 57, 0.35);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07121e;
    --surface: #0d1d2d;
    --surface-2: #0a1826;
    --text: #e8f1f5;
    --muted: #93a7b7;
    --line: #1c3246;
    --teal-ink: #5ee9cf;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "PingFang SC", "Hiragino Sans", "Noto Sans CJK", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}
body[data-lang="ko"], body[data-lang="zh"], body[data-lang="jp"] { word-break: keep-all; line-break: strict; }
body[data-lang="zh"], body[data-lang="jp"] { word-break: normal; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand b { color: var(--teal); font-weight: 800; }
.logo { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: 14px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 18px; height: 18px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  display: grid;
}
.lang-menu a { padding: 9px 12px; border-radius: 9px; text-decoration: none; font-size: 15px; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current="page"] { color: var(--teal-ink); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: linear-gradient(135deg, var(--teal-2), #0e9e85); color: #04211c; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: var(--navy); }

/* Hero */
.hero { padding: 72px 0 64px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 320px at 85% 20%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%),
    radial-gradient(520px 300px at 10% 0%, color-mix(in srgb, var(--navy-2) 18%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--teal-ink); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 580px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 500; font-size: 15px; }
.points li { display: inline-flex; align-items: center; gap: 7px; }
.points .icon { width: 18px; height: 18px; color: var(--teal); }

.hero-visual { position: relative; }
.live-card {
  background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #e8f5f7;
  border-radius: 24px; padding: 22px; box-shadow: 0 40px 80px -40px rgba(11, 34, 57, .7);
}
.live-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.live-title { font-weight: 600; font-size: 15px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(46, 224, 189, .14); color: var(--teal-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 0 rgba(46, 224, 189, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(46, 224, 189, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 224, 189, 0); } }
.live-body { display: grid; grid-template-columns: 64px 1fr; gap: 22px; margin-top: 20px; }
.shaft { position: relative; display: grid; gap: 4px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.shaft span { text-align: center; font-size: 12px; color: rgba(232, 245, 247, .45); padding: 3px 0; border-radius: 6px; }
.shaft span.on { background: var(--teal); color: #04211c; font-weight: 700; }
.car { display: none; }
.metrics { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metrics div { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 12px 14px; }
.metrics dt { font-size: 12px; color: rgba(232, 245, 247, .6); }
.metrics dd { margin: 4px 0 0; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 4px; }
.metrics dd .icon { width: 18px; height: 18px; color: var(--teal-2); }
.metrics dd.big { font-size: 34px; line-height: 1; color: var(--teal-2); }
.spark { width: 100%; height: 50px; margin-top: 18px; color: var(--teal-2); opacity: .8; }
.toast {
  position: absolute; left: -28px; bottom: -26px; max-width: 320px;
  display: flex; gap: 12px; align-items: center; padding: 14px 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.toast .icon { color: #e0543e; }
.toast strong { display: block; font-size: 14px; font-weight: 600; }
.toast small { color: var(--muted); font-size: 12px; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--surface-2); }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; max-width: 760px; }
.title-narrow { max-width: 820px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal-ink); margin-bottom: 18px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.problem .card > .icon { background: color-mix(in srgb, #e0543e 12%, transparent); color: #d2472f; }

.eco { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 40px; }
.eco-card { grid-column: span 2; }
.eco-card:nth-child(4), .eco-card:nth-child(5) { grid-column: span 3; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -16px; width: 12px; height: 2px; background: var(--teal);
}
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--teal-2); font-weight: 800; margin-bottom: 18px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

.audience { margin-top: 56px; }
.audience ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.audience li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.audience .icon { color: var(--teal-ink); }

.app { display: flex; flex-direction: column; align-items: flex-start; }
.app .soon { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--teal-ink); background: color-mix(in srgb, var(--teal) 12%, transparent); padding: 5px 10px; border-radius: 8px; }
.app .btn { margin-top: auto; }
.app .soon + .btn, .app p + .btn { margin-top: 16px; }

.cta {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  padding: 48px; border-radius: 28px; color: #eaf6f8;
  background: radial-gradient(500px 260px at 90% 10%, rgba(46, 224, 189, .25), transparent 70%), linear-gradient(150deg, var(--navy-2), var(--navy));
}
.cta h2 { color: #fff; }
.cta p { margin-top: 14px; color: rgba(234, 246, 248, .78); font-size: 17px; }
.cta-actions { display: grid; gap: 12px; justify-items: start; }
.cta-mail { color: var(--teal-2); font-weight: 600; text-decoration: none; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer p { color: var(--muted); font-size: 14px; }
.footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer nav a:hover { color: var(--text); }

.lang-hint {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  width: max-content; max-width: calc(100% - 32px);
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); font-size: 14px;
}
.lang-hint[hidden] { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .toast { left: 12px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .eco { grid-template-columns: 1fr 1fr; }
  .eco-card, .eco-card:nth-child(4), .eco-card:nth-child(5) { grid-column: auto; }
  .steps li::after { display: none; }
  .cta { grid-template-columns: 1fr; padding: 36px 28px; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .grid-3, .steps, .eco { grid-template-columns: 1fr; }
  .topbar-actions .btn { display: none; }
  .live-card { padding: 18px; }
  .live-body { grid-template-columns: 52px 1fr; gap: 14px; }
  .toast { position: relative; left: 0; bottom: 0; margin: -18px 12px 0; max-width: none; }
  .footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .btn:hover { transform: none; }
}
