/* MAITEWEI — deep indigo + electric cyan (Shenzhen electronics / e-commerce) */
:root {
  --bg: #eef2ff;
  --surface: #ffffff;
  --ink: #1e1b4b;
  --ink-muted: #6366a8;
  --accent: #4f46e5;
  --accent-2: #06b6d4;
  --accent-3: #f97316;
  --accent-light: #c7d2fe;
  --line: rgba(30, 27, 75, 0.1);
  --header-bg: #1e1b4b;
  --footer-bg: #0f0d2e;
  --footer-ink: #a5b4fc;
  --shadow: 0 16px 48px rgba(30, 27, 75, 0.1);
  --radius: 14px;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(79, 70, 229, 0.07), transparent 55%),
    radial-gradient(700px 420px at 0% 100%, rgba(6, 182, 212, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

/* Header — dark bar */
.mwe-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mwe-header__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.mwe-logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.mwe-nav {
  display: flex;
  gap: 0.15rem;
}

.mwe-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.mwe-nav a:hover,
.mwe-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.mwe-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: #fff;
}

.mwe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.mwe-btn:hover {
  transform: translateY(-1px);
}

.mwe-btn--solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
}

.mwe-btn--solid:hover {
  color: #fff;
}

.mwe-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.mwe-btn--outline:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.mwe-btn--accent {
  background: var(--accent-3);
  color: #fff;
}

.mwe-btn--accent:hover {
  color: #fff;
  background: #ea580c;
}

/* Hero — centered slide carousel */
.mwe-hero {
  position: relative;
  min-height: clamp(440px, 74vh, 660px);
  overflow: hidden;
  color: #fff;
}

.mwe-hero__track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.mwe-hero__slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  min-height: 100%;
}

.mwe-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mwe-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 13, 46, 0.55) 0%, rgba(30, 27, 75, 0.78) 100%);
}

.mwe-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4.5rem;
}

.mwe-hero__panes {
  position: relative;
  width: min(640px, 100%);
  min-height: 11rem;
}

.mwe-hero__pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.mwe-hero__pane.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mwe-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.mwe-hero h1,
.mwe-hero h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4.8vw, 2.85rem);
}

.mwe-lead {
  margin: 0 auto;
  font-size: 1.05rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
}

.mwe-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.mwe-hero__prev,
.mwe-hero__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}

.mwe-hero__prev:hover,
.mwe-hero__next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.mwe-hero__prev { left: 1.25rem; }
.mwe-hero__next { right: 1.25rem; }

.mwe-hero__dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.55rem;
}

.mwe-hero__dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
}

.mwe-hero__dot.is-active {
  background: var(--accent-2);
  width: 48px;
}

/* Sections */
.mwe-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.mwe-section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mwe-container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.mwe-section__head {
  margin-bottom: 2.25rem;
}

.mwe-section__head--center {
  text-align: center;
}

.mwe-section__head--center .mwe-title {
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
}

.mwe-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
}

/* Product grid — 4 columns, equal cards */
.mwe-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.mwe-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mwe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 52px rgba(79, 70, 229, 0.14);
}

.mwe-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mwe-card__body {
  padding: 1rem 1.15rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mwe-card__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.mwe-card__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Intro — image left, text right */
.mwe-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.mwe-intro__visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mwe-intro__text h2 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.mwe-intro__text p {
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
}

/* Reviews */
.mwe-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mwe-review {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  box-shadow: 0 8px 28px rgba(30, 27, 75, 0.06);
}

.mwe-review__head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.mwe-review__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent-light);
}

.mwe-review__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.mwe-review__role {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.mwe-review__stars {
  color: var(--accent-3);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.mwe-review__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Message form split */
.mwe-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.mwe-split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mwe-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mwe-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mwe-field {
  display: block;
  margin-bottom: 1rem;
}

.mwe-field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
  color: var(--ink-muted);
}

.mwe-field__input,
.mwe-field__textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  color: var(--ink);
}

.mwe-field__input:focus,
.mwe-field__textarea:focus {
  outline: 2px solid var(--accent-light);
  border-color: var(--accent);
}

.mwe-form__hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* About page */
.mwe-about {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.mwe-about__grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.mwe-about__grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mwe-about__copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

.mwe-about__copy p {
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
}

.mwe-about__wide {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.mwe-about__wide img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Contact page */
.mwe-contact-wrap {
  padding-bottom: 3rem;
}

.mwe-contact-banner img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.mwe-contact-split {
  width: min(var(--max), calc(100% - 2rem));
  margin: -2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.mwe-contact-split__media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mwe-contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}

.mwe-contact-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
}

.mwe-contact-card dl {
  margin: 0;
}

.mwe-contact-card dl > div {
  margin-bottom: 1rem;
}

.mwe-contact-card dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.mwe-contact-card dd {
  margin: 0;
  font-size: 0.95rem;
}

.mwe-contact-note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* Footer */
.mwe-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 3rem 0 0;
  margin-top: 2rem;
}

.mwe-footer a {
  color: #c7d2fe;
}

.mwe-footer a:hover {
  color: #fff;
}

.mwe-footer__grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.mwe-footer__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.mwe-footer__desc {
  margin: 0.85rem 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 34ch;
  color: rgba(165, 180, 252, 0.85);
}

.mwe-footer__social {
  display: flex;
  gap: 0.65rem;
}

.mwe-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.mwe-social:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mwe-social img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.mwe-footer__title {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.mwe-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

.mwe-footer__list li {
  margin-bottom: 0.45rem;
}

.mwe-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  text-align: center;
}

.mwe-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(165, 180, 252, 0.65);
}

/* Responsive */
@media (max-width: 960px) {
  .mwe-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .mwe-reviews {
    grid-template-columns: 1fr;
  }

  .mwe-intro,
  .mwe-split,
  .mwe-about__grid,
  .mwe-contact-split {
    grid-template-columns: 1fr;
  }

  .mwe-intro__visual {
    order: -1;
  }

  .mwe-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mwe-nav-toggle {
    display: block;
  }

  .mwe-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem 1rem;
  }

  .mwe-nav.is-open {
    display: flex;
  }

  .mwe-header {
    position: relative;
  }

  .mwe-header__inner {
    flex-wrap: wrap;
    position: relative;
  }

  .mwe-grid-4 {
    grid-template-columns: 1fr;
  }

  .mwe-form__row {
    grid-template-columns: 1fr;
  }

  .mwe-hero__prev,
  .mwe-hero__next {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }
}
