/* MM Technology Limited — Enterprise Design System */
:root {
  --bg: #090E17;
  --bg-elevated: #111827;
  --bg-card: #1E293B;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --accent: #2563EB; /* Enterprise Blue */
  --accent-hover: #3B82F6;
  --border: #334155;
  --border-hover: #475569;
  --success: #10B981;
  --font: "Inter", "Noto Sans TC", system-ui, sans-serif;
  --max-width: 1160px;
  --radius: 8px; /* Industrial precision */
  --radius-lg: 12px;
  --header-height: 72px;
  --transition: 0.2s ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.section-header p {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 4px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(9, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(9, 14, 23, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.65rem 0;
  color: var(--muted);
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  color: #fff;
}

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.lang-switch a {
  padding: 0.35rem 0.5rem;
  color: var(--muted);
  border-radius: 4px;
}

.lang-switch a[aria-current="true"],
.lang-switch a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.lang-switch .sep {
  color: var(--border);
}

main {
  padding-top: var(--header-height);
}

/* Hero */
.hero {
  padding: 5rem 0 6rem;
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-content .lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-figure {
  margin: 0;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 16 / 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stats */
.stats-bar {
  padding: 3rem 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 22rem;
}

.footer-links h3,
.footer-contact h3 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.footer-links ul,
.footer-contact address {
  list-style: none;
  margin: 0;
  padding: 0;
  font-style: normal;
  font-size: 0.9375rem;
}

.footer-links li + li,
.footer-contact p + p {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-note {
  font-size: 0.8125rem;
  color: #64748B; /* Darker to not compete */
}

.footer-note a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Solution detail sections */
.solution-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.solution-section:last-of-type {
  border-bottom: none;
}

.solution-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.solution-content h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
}

.solution-content .tagline {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  color: var(--accent-hover);
  font-weight: 500;
}

.solution-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.solution-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.solution-list li strong {
  color: #fff;
}

.solution-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.solution-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 16 / 10;
  position: relative;
}

.solution-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.solution-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About */
.about-content {
  max-width: 42rem;
  margin-inline: auto;
}

.about-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.values-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-info address {
  font-style: normal;
}

.contact-info h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: #fff;
}

.contact-details {
  margin: 0;
}

.contact-detail {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-details dd {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: #fff;
}

.contact-details dd:last-child {
  margin-bottom: 0;
}

.contact-details dd a {
  color: #fff;
}

.map-placeholder {
  position: relative;
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: var(--bg-card);
}

.map-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-fallback {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.map-fallback a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-fallback a:hover,
.map-fallback a:focus-visible {
  color: var(--accent-hover);
}

.solution-figure {
  margin: 0;
}

.figure-caption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* Privacy */
.legal-content {
  max-width: 42rem;
  margin-inline: auto;
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: #fff;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 1.25rem;
}

/* Responsive */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .solution-section:nth-child(even) .solution-grid {
    direction: rtl;
  }

  .solution-section:nth-child(even) .solution-grid > * {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    padding: 0;
    background: transparent;
    border: none;
    align-items: center;
    gap: 2rem;
  }

  .nav-list {
    margin: 0;
    display: flex;
    gap: 1.75rem;
  }

  .nav-list a {
    padding: 0;
    font-size: 0.9375rem;
  }

  .nav-actions {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

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

  .hero {
    padding: 6rem 0 7rem;
  }
}
