/* MSM Global Apps — visual system aligned to brand reference */

:root {
  --bg: #ffffff;
  --bg-hero: #f4f2fb;
  --bg-about: #eef0fb;
  --fg: #0f172a;
  --fg-muted: #64748b;
  --fg-subtle: #94a3b8;
  --border: #e2e8f0;
  --indigo-950: #1e1b4b;
  --indigo-900: #312e81;
  --indigo-800: #3730a3;
  --violet-600: #7c3aed;
  --blue-600: #4f46e5;
  --header-from: #1e1b4b;
  --header-to: #4c1d95;
  --footer-bg: #1e1b4b;
  --accent-soft: #eef2ff;
  --accent-soft-text: #4338ca;
  --gradient-accent: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  --gradient-text: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
  --header-h: 72px;
  --container: 1080px;
  --gutter: 24px;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --shadow-btn: 0 8px 24px rgba(79, 70, 229, 0.28);
  --shadow-icon: 0 6px 20px rgba(49, 46, 129, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
address {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(90deg, var(--header-from) 0%, #312e81 48%, var(--header-to) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(30, 27, 75, 0.18);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: #fff;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  padding-bottom: 6px;
  transition: color 150ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1px;
  transition: width 220ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform 200ms ease, opacity 200ms ease;
}

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

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

/* ── Hero ── */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding-block: 96px 112px;
  background: var(--bg-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-radial {
  position: absolute;
  inset: -10% -5% auto;
  height: 120%;
  background:
    radial-gradient(ellipse 55% 70% at 18% 30%, rgba(129, 140, 248, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 78% 70%, rgba(168, 85, 247, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, #f7f5fc 0%, #f0eefb 100%);
}

.hero-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: min(46%, 480px);
  height: 78%;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.16) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to right, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 55%, transparent 100%);
  opacity: 0.7;
}

.hero-waves {
  position: absolute;
  right: -2%;
  bottom: -4%;
  width: min(48%, 520px);
  height: auto;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-inline: 0 auto 0 0;
  text-align: left;
}

.hero-brand {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--indigo-950);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.accent-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 18px;
  max-width: 54ch;
}

.hero-body + .hero-body {
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 8px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-btn);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.36);
  filter: brightness(1.03);
}

.btn-primary:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  margin-top: 28px;
  max-width: 640px;
}

.hero-trust li {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg-subtle);
  line-height: 1.4;
}

.hero-trust li:not(:last-child)::after {
  content: "•";
  margin-inline: 12px;
  color: rgba(148, 163, 184, 0.8);
}

/* ── Sections shared ── */

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--indigo-950);
  margin-bottom: 48px;
}

.apps,
.contact {
  padding-block: 112px;
  background: #fff;
}

/* ── Apps ── */

.app-list {
  display: flex;
  flex-direction: column;
}

.app-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-block: 44px;
  border-top: 1px solid var(--border);
}

.app-row:last-child {
  border-bottom: 1px solid var(--border);
}

.app-content {
  min-width: 0;
}

.app-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.app-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--indigo-950);
}

.app-status {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent-soft-text);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.3;
}

.app-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 62ch;
}

.app-desc + .app-desc {
  margin-top: 12px;
}

/* ── About ── */

.about {
  position: relative;
  overflow: hidden;
  padding-block: 112px;
  background: var(--bg-about);
}

.about-dots {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(42%, 420px);
  height: 70%;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.14) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to left, black 0%, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 0%, black 40%, transparent 100%);
  pointer-events: none;
}

.about-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 62ch;
}

.about-copy p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--fg-muted);
}

/* ── Contact ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  align-items: start;
}

.contact-col-emails {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #6366f1;
}

.contact-legal-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--indigo-950);
  margin-bottom: 8px;
}

.contact-address {
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-muted);
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-subtle);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.contact-col-emails a {
  font-size: 15.5px;
  font-weight: 600;
  color: #4f46e5;
  transition: color 150ms ease;
}

.contact-col-emails a:hover,
.contact-col-emails a:focus-visible {
  color: #7c3aed;
}

.contact-col-emails a:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
}

/* ── Footer ── */

.site-footer {
  background: var(--footer-bg);
  padding-block: 26px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-legal {
  display: flex;
  gap: 28px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  transition: color 150ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #fff;
}

/* ── Legal pages ── */

.legal-page {
  padding-block: 72px 112px;
  background: #fff;
}

.legal-page .section-title {
  margin-bottom: 10px;
}

.legal-meta {
  font-size: 14px;
  color: var(--fg-subtle);
  margin-bottom: 36px;
}

.legal-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--indigo-950);
  margin-top: 18px;
}

.legal-content p,
.legal-content li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-muted);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content a {
  color: #4f46e5;
  font-weight: 600;
}

/* ── Responsive ── */

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --header-h: 72px;
  }

  .apps,
  .about,
  .contact {
    padding-block: 128px;
  }

  .section-title {
    margin-bottom: 56px;
  }

  .app-row {
    padding-block: 52px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }

  .brand-name {
    font-size: 14px;
    letter-spacing: 0.015em;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: linear-gradient(90deg, var(--header-from) 0%, #312e81 48%, var(--header-to) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px 24px;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .site-nav a {
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 15px;
  }

  .hero {
    min-height: 0;
    padding-block: 72px 88px;
  }

  .hero-waves {
    width: 70%;
    opacity: 0.55;
  }

  .hero-trust {
    margin-top: 24px;
  }

  .hero-trust li {
    width: 100%;
  }

  .hero-trust li:not(:last-child)::after {
    display: none;
  }

  .apps,
  .about,
  .contact {
    padding-block: 80px;
  }

  .app-row {
    gap: 16px;
    padding-block: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand-name {
    max-width: 180px;
    line-height: 1.2;
  }
}
