:root {
  --bg-dark: #10141d;
  --bg-dark-elevated: #171d2a;
  --bg-light: #f6f7f9;
  --bg-white: #ffffff;
  --text-primary: #141821;
  --text-secondary: #535c6e;
  --text-muted: #7f899c;
  --text-on-dark: #f4f6fa;
  --text-on-dark-muted: #9aa5b8;
  --accent: #f5931e;
  --accent-hover: #e0810f;
  --accent-soft: rgba(245, 147, 30, 0.14);
  --border-light: #e6e9ef;
  --border-dark: rgba(255, 255, 255, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 18px rgba(16, 20, 29, 0.05);
  --shadow-md: 0 14px 40px rgba(16, 20, 29, 0.08);
  --shadow-phone: 0 30px 80px rgba(0, 0, 0, 0.45);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 20, 29, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-on-dark);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-en {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-on-dark-muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-on-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 11px 22px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #10141d;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Hero */
.hero {
  background: radial-gradient(680px 420px at 78% 35%, rgba(245, 147, 30, 0.16), transparent 65%),
              radial-gradient(540px 360px at 18% 75%, rgba(74, 126, 255, 0.1), transparent 70%),
              var(--bg-dark);
  color: var(--text-on-dark);
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 147, 30, 0.12);
  border: 1px solid rgba(245, 147, 30, 0.28);
  color: #ffb85c;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .accent-text {
  color: var(--accent);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-on-dark-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
  max-width: 520px;
}

.metric-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-on-dark);
}

.metric-label {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  margin-top: 2px;
}

/* Interactive Phone Mockup */
.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 316px;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #2b3242, #151923);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-phone);
}

.phone-screen {
  background: #f4f6f9;
  color: var(--text-primary);
  border-radius: 30px;
  padding: 18px 16px 20px;
  min-height: 556px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-notch {
  width: 84px;
  height: 20px;
  background: #10141d;
  border-radius: 999px;
  margin: 0 auto 4px;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-space-title {
  font-size: 18px;
  font-weight: 700;
}

.app-space-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.app-status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e9f7ef;
  color: #1d8a4e;
}

.app-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.scene-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(16, 20, 29, 0.04);
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.scene-chip {
  border: 1px solid var(--border-light);
  background: #f9fafc;
  color: var(--text-primary);
  border-radius: 12px;
  padding: 10px 11px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.scene-chip strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.scene-chip span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.scene-chip.active {
  background: #141821;
  color: #ffffff;
  border-color: #141821;
}

.scene-chip.active span {
  color: #ffb85c;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.device-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  font-family: inherit;
}

.device-card.is-on {
  border-color: rgba(245, 147, 30, 0.45);
  background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
}

.device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.device-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfd5e0;
  transition: all 0.2s ease;
}

.device-card.is-on .device-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(245, 147, 30, 0.65);
}

.device-state {
  font-size: 11px;
  color: var(--text-muted);
}

.device-card.is-on .device-state {
  color: #c96e08;
  font-weight: 600;
}

.device-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.device-room {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.energy-card {
  background: #141821;
  color: #ffffff;
  border-radius: 16px;
  padding: 14px;
  margin-top: auto;
}

.energy-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9aa5b8;
  margin-bottom: 8px;
}

.energy-nums {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.energy-main {
  font-size: 20px;
  font-weight: 700;
  color: #ffb85c;
}

.energy-sub {
  font-size: 11px;
  color: #9aa5b8;
}

.phone-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-on-dark-muted);
  margin-top: 12px;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Highlights / Architecture */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
}

.pillar-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-hover);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.pillar-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Download Banner */
.download-box {
  background: linear-gradient(135deg, #141821 0%, #1e2536 100%);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.download-box h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
}

.download-box p {
  color: var(--text-on-dark-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.download-meta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 22px;
  font-size: 13px;
}

.download-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.download-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.download-meta-row:first-child {
  padding-top: 0;
}

.download-meta-label {
  color: var(--text-on-dark-muted);
}

.download-meta-val {
  color: var(--text-on-dark);
  font-weight: 500;
  text-align: right;
}

/* Footer */
.site-footer {
  background: #0d1018;
  color: var(--text-on-dark-muted);
  padding: 48px 0 36px;
  font-size: 13px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand p {
  max-width: 360px;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.footer-links a {
  color: var(--text-on-dark-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #6e788c;
}

/* Legal / Document Pages */
.doc-hero {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 48px 0;
}

.doc-hero h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.doc-hero p {
  color: var(--text-on-dark-muted);
  font-size: 14px;
}

.doc-body {
  padding: 48px 0 72px;
  max-width: 820px;
}

.doc-body h2 {
  font-size: 20px;
  margin: 30px 0 12px;
  color: var(--text-primary);
}

.doc-body p,
.doc-body li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.8;
}

.doc-body ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
  background: var(--bg-white);
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-item p {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid,
  .download-box {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 52px 0 64px;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .download-box {
    padding: 32px 24px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .section {
    padding: 56px 0;
  }
}
