/* ============================================================
   ZIRO Homepage · ziro.com.my
   暗黑电竞风 · 锐利几何 · 复用 warranty 子域设计语言
   ============================================================ */

:root {
  --bg:          #07080a;
  --bg-elev:     #0d0f12;
  --bg-card:     #10131a;
  --bg-input:    #14171e;

  --line:        rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-accent: rgba(255, 255, 255, 0.28);

  --text:        #f4f5f7;
  --text-dim:    #8b909a;
  --text-mute:   #545861;

  --accent:      #ffffff;
  --accent-cool: #5fd4ff;
  --accent-glow: rgba(95, 212, 255, 0.12);

  --font-display: "Oswald", "Noto Sans SC", -apple-system, sans-serif;
  --font-body:    "Inter", "Noto Sans SC", -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 64px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* --- 背景层 (sticky behind content) --- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}
.bg-noise {
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.08));
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.22em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent-cool);
  transition: right 0.25s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { right: 0; }

.site-nav .nav-cta {
  color: var(--accent-cool);
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(7, 8, 10, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  z-index: 99;
}
.site-nav-mobile.is-open { display: flex; }
.site-nav-mobile a {
  padding: 18px 32px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}
.site-nav-mobile a:last-child { border-bottom: none; }
.site-nav-mobile a:hover { color: var(--accent-cool); }

/* ============================================================
   HERO 幻灯片
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 560px;
  margin-top: var(--header-h);
  overflow: hidden;
  background: var(--bg);
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
  display: flex;
  align-items: center;
  padding: 0 max(8vw, 48px);
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 7s linear;
}
.hero-slide.is-active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.7s var(--ease) 0.15s, opacity 0.7s var(--ease) 0.15s;
}
.hero-slide.is-active .hero-slide-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent-cool);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-cool);
}

.hero-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-headline-1 {
  display: block;
  font-size: clamp(56px, 12vw, 140px);
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #c8cad0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-headline-2 {
  display: block;
  font-size: clamp(36px, 7vw, 72px);
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: 4px;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-top: 28px;
  margin-bottom: 36px;
  text-transform: uppercase;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--accent);
  color: var(--bg);
  padding: 16px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: background 0.2s var(--ease);
}
.hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.hero-cta:hover::before { transform: translateX(100%); }
.hero-cta:hover { background: #e8e9ec; }
.hero-cta svg { transition: transform 0.25s var(--ease); }
.hero-cta:hover svg { transform: translateX(4px); }

/* hero arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(13, 15, 18, 0.7);
  border: 1px solid var(--line-strong);
  color: var(--text);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-arrow:hover {
  background: var(--accent-cool);
  color: var(--bg);
  border-color: var(--accent-cool);
}
.hero-arrow-prev { left: 32px; }
.hero-arrow-next { right: 32px; }

/* hero controls (counter + progress + dots) */
.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 max(8vw, 48px);
}
.hero-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero-counter-current {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-cool);
}
.hero-counter-sep {
  color: var(--text-mute);
  opacity: 0.6;
}
.hero-counter-total {
  color: var(--text-dim);
}

.hero-progress {
  flex: 1;
  max-width: 320px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-cool);
  transition: width 0.1s linear;
}
.hero-progress-bar.is-paused { transition: none; }

.hero-dots {
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 24px;
  height: 2px;
  background: var(--line-strong);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s var(--ease);
}
.hero-dot.is-active { background: var(--accent-cool); }
.hero-dot:hover { background: var(--text-dim); }

/* ============================================================
   通用 Section / Eyebrow / 按钮
   ============================================================ */
.section {
  position: relative;
  z-index: 5;
  padding: 120px max(8vw, 32px);
  max-width: 1400px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cool);
  margin-bottom: 24px;
}
.eyebrow-bar {
  width: 28px;
  height: 1px;
  background: var(--accent-cool);
}
.eyebrow-center {
  justify-content: center;
  width: 100%;
}

.section-head { margin-bottom: 56px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 120px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #c8cad0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 540px;
  line-height: 1.7;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.1s var(--ease);
  overflow: hidden;
  min-width: 280px;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { background: #e8e9ec; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary .btn-label { position: relative; z-index: 1; }
.btn-primary .btn-arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s var(--ease);
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   产品系列 grid
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.product-tile {
  position: relative;
  background: var(--bg-card);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
  transition: background 0.25s var(--ease);
}
.product-tile::before,
.product-tile::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent-cool);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.product-tile::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.product-tile::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.product-tile:hover {
  background: var(--bg-elev);
}
.product-tile:hover::before,
.product-tile:hover::after { opacity: 1; }

.product-tile-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-bottom: 16px;
}

.product-tile-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cool);
  margin: 12px 0 24px;
  min-height: 120px;
  opacity: 0.85;
}
.product-tile-art svg { width: 100%; height: auto; max-width: 240px; }

.product-tile-meta h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}
.product-tile-meta p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.product-tile-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent-cool);
  border: 1px solid var(--accent-cool);
  padding: 4px 8px;
  text-transform: uppercase;
}

/* ============================================================
   保修 CTA 区
   ============================================================ */
.section-warranty {
  padding-top: 60px;
  padding-bottom: 60px;
}

.warranty-card {
  position: relative;
  background:
    radial-gradient(ellipse at top right, var(--accent-glow) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid var(--line-strong);
  padding: 64px 48px;
  margin-bottom: 32px;
  overflow: hidden;
}
.warranty-card::before,
.warranty-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent-cool);
}
.warranty-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.warranty-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.warranty-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent-cool);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.warranty-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}
.warranty-card-sub {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.trust-item {
  background: var(--bg-card);
  padding: 32px 16px;
  text-align: center;
}
.trust-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.trust-unit {
  font-size: 18px;
  color: var(--accent-cool);
  font-weight: 500;
  margin-left: 2px;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* ============================================================
   Stay Tuned (newsletter placeholder)
   ============================================================ */
.section-cta {
  text-align: center;
  padding-bottom: 140px;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #c8cad0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-sub {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.social-row {
  display: inline-flex;
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.social-link {
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.social-link:hover {
  color: var(--bg);
  background: var(--accent-cool);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 5;
  padding: 32px max(8vw, 24px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-mark {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--text);
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.14em;
}
.sep { opacity: 0.4; }

/* ============================================================
   响应式: 平板
   ============================================================ */
@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-tile:last-child {
    grid-column: span 2;
  }
  .warranty-card { padding: 48px 32px; }
  .section { padding: 80px max(6vw, 24px); }
}

/* ============================================================
   响应式: 手机
   ============================================================ */
@media (max-width: 720px) {
  :root { --header-h: 56px; }

  .site-header { padding: 0 18px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero {
    height: 78vh;
    min-height: 520px;
  }
  .hero-slide { padding: 0 24px; align-items: flex-end; padding-bottom: 140px; }
  .hero-slide-content { max-width: 100%; }
  .hero-arrow { display: none; }

  .hero-headline-1 { font-size: clamp(48px, 16vw, 88px); }
  .hero-headline-2 { font-size: clamp(28px, 9vw, 48px); }
  .hero-tagline { font-size: 11px; margin-top: 20px; margin-bottom: 24px; }

  .hero-cta {
    width: 100%;
    justify-content: space-between;
    padding: 16px 22px;
  }

  .hero-controls {
    flex-direction: column;
    gap: 14px;
    bottom: 24px;
    padding: 0 24px;
  }
  .hero-progress { width: 100%; max-width: none; }

  .section { padding: 72px 20px; }
  .section-head { margin-bottom: 40px; }

  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-tile:last-child {
    grid-column: span 1;
  }
  .product-tile { min-height: 260px; padding: 24px 20px; }

  .warranty-card { padding: 36px 22px; }
  .warranty-card-title { font-size: clamp(36px, 11vw, 60px); }
  .warranty-card-sub { font-size: 14px; margin-bottom: 28px; }

  .btn-primary {
    width: 100%;
    min-width: 0;
    padding: 16px 22px;
    font-size: 13px;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }
  .trust-num { font-size: 32px; }

  .section-cta { padding-bottom: 100px; }
  .cta-title { font-size: clamp(36px, 11vw, 60px); }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* 触屏：移除 hover 高光 */
@media (hover: none) {
  .hero-cta:hover::before { transform: translateX(-100%); }
  .btn-primary:hover::before { transform: translateX(-100%); }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide-bg,
  .hero-slide-content,
  .hero-cta::before,
  .btn-primary::before {
    transition: none;
  }
}
