/* ============================================================
   HAORUN Technology — Apple-grade design system
   ============================================================ */
:root {
  --gold: #c6a45c;
  --gold-bright: #e3c87f;
  --ink: #0b0c0e;
  --ink-2: #14161a;
  --paper: #f5f5f7;
  --paper-2: #ffffff;
  --text-dark: #1d1d1f;
  --text-mute: #86868b;
  --text-light: #f5f5f7;
  --line: rgba(0,0,0,.08);
  --line-light: rgba(255,255,255,.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.28,.11,.32,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

::selection { background: var(--gold); color: #fff; }

/* ============ Nav ============ */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
#nav.scrolled {
  background: rgba(11,12,14,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line-light);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; gap: 40px;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 34px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a {
  color: rgba(245,245,247,.82); font-size: 14px; letter-spacing: .02em;
  transition: color .3s;
}
.nav-links a:hover { color: var(--gold-bright); }
.lang-switch {
  display: flex; gap: 4px; padding: 3px;
  border: 1px solid var(--line-light); border-radius: 999px;
}
.lang-btn {
  border: 0; background: transparent; color: rgba(245,245,247,.75);
  font: 600 12px/1 var(--font); letter-spacing: .04em;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: background .3s, color .3s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--gold); color: #101010; }

/* ============ Hero ============ */
.hero {
  position: relative; height: 100svh; min-height: 640px;
  display: grid; place-items: center; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 34%, rgba(0,0,0,.18) 62%, rgba(0,0,0,.78) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center;
}
.hero-logo {
  width: clamp(120px, 16vw, 190px); height: auto;
  margin-bottom: 34px;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.65));
}
.hero-title {
  font-size: clamp(44px, 7.2vw, 96px); font-weight: 700;
  letter-spacing: -.025em; line-height: 1.04; color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero-sub {
  margin-top: 22px; max-width: 640px;
  font-size: clamp(17px, 2vw, 22px); line-height: 1.5;
  color: rgba(245,245,247,.88); text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: var(--gold); color: #14100a; box-shadow: 0 8px 30px rgba(198,164,92,.35); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 12px 40px rgba(198,164,92,.5); }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

.hero-scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll-line {
  display: block; width: 1px; height: 64px; margin: 0 auto;
  background: linear-gradient(180deg, transparent, var(--gold));
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: #fff; animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint { 0% { top: -40%; } 100% { top: 110%; } }

/* hero entrance */
.reveal-hero { opacity: 0; transform: translateY(34px); animation: heroIn 1.2s var(--ease) forwards; }
.hero-logo.reveal-hero { animation-delay: .15s; }
.hero-title.reveal-hero { animation-delay: .35s; }
.hero-sub.reveal-hero { animation-delay: .55s; }
.hero-cta.reveal-hero { animation-delay: .75s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ============ Shared section bits ============ */
.section-title {
  font-size: clamp(34px, 4.6vw, 60px); font-weight: 700;
  letter-spacing: -.022em; line-height: 1.08; text-align: center;
}
.section-sub {
  margin: 20px auto 0; max-width: 680px; text-align: center;
  font-size: clamp(16px, 1.7vw, 20px); line-height: 1.55; color: var(--text-mute);
}
.eyebrow {
  display: block; text-align: center; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow-gold { color: var(--gold); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ Intro ============ */
.intro { background: var(--ink); padding: clamp(110px, 15vw, 190px) 24px 110px; }
.intro-text {
  max-width: 900px; margin: 0 auto; text-align: center;
  font-size: clamp(26px, 3.6vw, 44px); font-weight: 600;
  letter-spacing: -.018em; line-height: 1.28; color: var(--text-light);
}
.intro-text em, .intro-text strong { color: var(--gold-bright); font-style: normal; }
.stats {
  max-width: 1000px; margin: 90px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  font-size: clamp(44px, 5.5vw, 72px); font-weight: 700; letter-spacing: -.03em;
  color: var(--gold-bright); font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; color: var(--gold); margin-left: 6px; }
.stat-label { display: block; margin-top: 10px; font-size: 14px; letter-spacing: .06em; color: rgba(245,245,247,.6); text-transform: uppercase; }

/* ============ Film ============ */
.film { background: var(--ink); padding: 40px 24px 130px; }
.film .section-title { color: var(--text-light); }
.film-frame {
  position: relative; max-width: 1080px; margin: 56px auto 0;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px var(--line-light);
}
.film-frame video { width: 100%; display: block; background: #000; }
.unmute {
  position: absolute; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(20,20,22,.6); color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: 10px 18px; font: 600 13px/1 var(--font); cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .3s, opacity .4s, transform .4s;
}
.unmute:hover { background: rgba(50,50,55,.75); }
.unmute.hidden { opacity: 0; pointer-events: none; transform: translateY(6px); }

/* ============ Gateway ============ */
.gateway {
  background: var(--ink); padding: 0 24px 140px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; max-width: 1120px; margin: 0 auto;
}
.gate-card {
  position: relative; border-radius: 28px; padding: 52px 44px 60px;
  background: var(--paper); color: var(--text-dark);
  overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gate-card:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.gate-dark { background: linear-gradient(150deg, #1c1a15, #12100c); color: var(--text-light); box-shadow: inset 0 0 0 1px rgba(198,164,92,.35); }
.gate-kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); }
.gate-dark .gate-kicker { color: var(--gold); }
.gate-title { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.gate-desc { font-size: 16px; line-height: 1.5; color: var(--text-mute); max-width: 340px; }
.gate-arrow {
  position: absolute; right: 36px; bottom: 34px; font-size: 30px; color: var(--gold);
  transition: transform .4s var(--ease);
}
.gate-card:hover .gate-arrow { transform: translateX(8px); }

/* ============ Product (light) ============ */
.product { background: var(--paper); padding: clamp(100px, 13vw, 170px) 24px; border-radius: 40px 40px 0 0; }
.features {
  max-width: 1120px; margin: 80px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: var(--paper-2); border-radius: 24px; padding: 36px 30px;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0,0,0,.1); }
.feature { overflow: hidden; }
.feature-img {
  margin: -36px -30px 24px; height: 210px; background: #fff;
  display: grid; place-items: center; overflow: hidden;
}
.feature-img img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .6s var(--ease);
}
.feature:hover .feature-img img { transform: scale(1.05); }
.feature h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.feature p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-mute); }

/* Battery configurator */
.battery {
  max-width: 1120px; margin: 90px auto 0; background: var(--ink);
  border-radius: 32px; padding: clamp(44px, 6vw, 72px); color: var(--text-light);
}
.battery-title { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; text-align: center; }
.battery-tabs { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.bat-tab {
  border: 1px solid var(--line-light); background: transparent; color: rgba(245,245,247,.7);
  font: 600 15px/1 var(--font); padding: 13px 26px; border-radius: 999px; cursor: pointer;
  transition: all .3s var(--ease);
}
.bat-tab:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.bat-tab.active { background: var(--gold); border-color: var(--gold); color: #14100a; }
.battery-panel {
  margin-top: 50px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center;
}
.bat-visual { text-align: center; }
.bat-cell {
  width: 130px; height: 240px; margin: 0 auto; border-radius: 26px;
  border: 2px solid rgba(255,255,255,.28); position: relative; overflow: hidden;
  background: rgba(255,255,255,.04);
}
.bat-cell::before {
  content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 12px; border-radius: 6px 6px 0 0; background: rgba(255,255,255,.28);
}
.bat-fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 33%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  transition: height .8s var(--ease);
}
.bat-cap { margin-top: 22px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.bat-cap span { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.bat-facts { list-style: none; }
.bat-facts li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 16px 4px; border-bottom: 1px solid var(--line-light);
  font-size: 15px;
}
.bat-facts li:last-child { border-bottom: 0; }
.bat-facts span { color: rgba(245,245,247,.6); }
.bat-facts strong { font-weight: 600; text-align: right; }
.battery-note { margin-top: 30px; font-size: 12.5px; color: rgba(245,245,247,.42); text-align: center; }

/* Three-view */
.threeview { max-width: 1120px; margin: 90px auto 0; }
.threeview img {
  width: 100%; border-radius: 28px; background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.1);
}
.threeview figcaption { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-mute); }

/* Applications */
.apps { max-width: 1120px; margin: 90px auto 0; }
.apps-title { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; text-align: center; }
.apps-grid {
  margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.app {
  border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.005em;
  background: var(--paper-2);
  display: flex; align-items: center; gap: 12px;
  transition: border-color .3s, transform .4s var(--ease);
}
.app::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex: none;
}
.app:hover { border-color: var(--gold); transform: translateY(-3px); }

/* ============ Contact ============ */
.contact { background: var(--ink); padding: clamp(100px, 13vw, 170px) 24px 120px; border-radius: 40px 40px 0 0; }
.contact .section-title { color: var(--text-light); }
.contact-grid {
  max-width: 1120px; margin: 70px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.c-card {
  border: 1px solid var(--line-light); border-radius: 24px; padding: 36px 30px;
  color: var(--text-light); background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  transition: transform .5s var(--ease), border-color .3s;
}
.c-card:hover { transform: translateY(-5px); border-color: rgba(198,164,92,.5); }
.c-card h3 { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.c-card p { font-size: 15px; line-height: 1.7; color: rgba(245,245,247,.78); }
.c-big { font-size: 19px !important; font-weight: 700; color: #fff !important; letter-spacing: -.01em; word-break: break-all; }
.c-note { margin-top: 14px; font-size: 12.5px !important; color: rgba(245,245,247,.4) !important; }
.c-link { color: inherit; transition: color .3s; }
.c-link:hover { color: var(--gold-bright); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: 1px; }

/* Social / instant messaging */
.social { max-width: 1120px; margin: 70px auto 0; text-align: center; }
.social-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; color: var(--text-light); }
.social-row {
  margin-top: 34px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.social-btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-width: 240px; padding: 20px 28px; border-radius: 20px;
  border: 1px solid var(--line-light); color: var(--text-light);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.social-btn:hover {
  transform: translateY(-4px); border-color: rgba(198,164,92,.55);
  box-shadow: 0 18px 44px rgba(0,0,0,.4);
}
.social-icon { width: 26px; height: 26px; color: var(--gold-bright); flex: none; }
.social-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.social-name { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.social-handle { font-size: 13px; color: rgba(245,245,247,.55); }

/* License */
.license {
  max-width: 1120px; margin: 80px auto 0;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center;
  border: 1px solid var(--line-light); border-radius: 32px; padding: clamp(36px, 5vw, 64px);
  background: linear-gradient(150deg, rgba(198,164,92,.09), rgba(255,255,255,.02));
}
.license-text h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; color: var(--text-light); }
.license-text p { margin-top: 16px; font-size: 15.5px; line-height: 1.65; color: rgba(245,245,247,.7); }
.license-tip { font-size: 12.5px !important; color: rgba(245,245,247,.4) !important; }
.license-frame {
  position: relative; display: block; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(198,164,92,.4);
  transition: transform .5s var(--ease);
}
.license-frame:hover { transform: translateY(-5px) scale(1.01); }
.license-frame img { width: 100%; max-height: 460px; object-fit: contain; background: #f4f2ec; }
.license-zoom {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: rgba(15,15,17,.72); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; letter-spacing: .04em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ============ Footer ============ */
.footer { background: var(--ink); padding: 70px 24px 60px; text-align: center; border-top: 1px solid var(--line-light); }
.footer-logo { height: 40px; width: auto; margin: 0 auto 18px; opacity: .9; }
.footer p { font-size: 14px; color: rgba(245,245,247,.55); }
.footer-copy { margin-top: 8px; font-size: 12.5px !important; color: rgba(245,245,247,.35) !important; }

/* ============ Language fade ============ */
body.lang-fade main, body.lang-fade header, body.lang-fade section, body.lang-fade footer {
  transition: opacity .25s;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .features, .apps-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .battery-panel, .license { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .gateway { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 12px 16px; gap: 14px; }
  .nav-links { display: none; }
  .features, .apps-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
