/* MMT Innovation — one-page site */
:root {
  --bg: #0b1220;
  --bg-elevated: #121a2b;
  --bg-card: rgba(22, 32, 52, 0.85);
  --border: rgba(148, 163, 184, 0.16);
  --text: #e8eef9;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(59, 130, 246, 0.28), transparent 60%),
    radial-gradient(700px 420px at 90% 10%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(600px 400px at 50% 100%, rgba(99, 102, 241, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0a1628 50%, #0b1220 100%);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.75);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  font-size: 0.72rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061018;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}

.logo-text {
  font-size: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
  background: linear-gradient(120deg, #f8fbff 10%, #93c5fd 55%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 36rem;
}

.tagline-cn {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.75);
  letter-spacing: 0.12em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: #061018;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.28);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.hero-shapes {
  position: absolute;
  inset: auto -8% -20% auto;
  width: min(420px, 55vw);
  height: 320px;
  pointer-events: none;
  opacity: 0.7;
}

.shape {
  position: absolute;
  border-radius: 30% 70% 60% 40% / 40% 40% 60% 60%;
  filter: blur(2px);
}

.shape-a {
  width: 220px;
  height: 220px;
  right: 0;
  top: 20px;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.35), transparent 70%);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.shape-b {
  width: 160px;
  height: 160px;
  right: 140px;
  top: 100px;
  background: linear-gradient(200deg, rgba(34, 211, 238, 0.25), transparent 70%);
  border-radius: 40% 60% 50% 50%;
}

.shape-c {
  width: 90px;
  height: 90px;
  right: 60px;
  bottom: 40px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.55), rgba(11, 18, 32, 0.2));
  border-block: 1px solid var(--border);
}

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

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-grid,
.services-grid {
  display: grid;
  gap: 1.25rem;
}

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

.services-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.service-card,
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.5rem;
}

.card h3,
.service-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.card p,
.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card {
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.85;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--accent-2);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card ul {
  margin: 1.1rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
}

.service-card li + li {
  margin-top: 0.35rem;
}

/* Contact */
.contact-wrap {
  max-width: 720px;
}

.contact-card {
  padding: 1.75rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-label {
  min-width: 5.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-value {
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

a.contact-value {
  color: var(--accent-2);
}

.contact-cta {
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 860px) {
  .about-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-shapes {
    opacity: 0.35;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(11, 18, 32, 0.96);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .header-inner {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
