:root {
  --ink: #101314;
  --paper: #f7f3eb;
  --muted: #64706a;
  --green: #3d8f5a;
  --lime: #c7e86f;
  --blue: #55b7c7;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(16, 19, 20, 0.12);
  --shadow: 0 26px 80px rgba(16, 19, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(199, 232, 111, 0.45), transparent 24rem),
    radial-gradient(circle at 5% 20%, rgba(85, 183, 199, 0.22), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.mg-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(247, 243, 235, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.mg-brand,
.mg-nav,
.mg-actions,
.mg-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mg-brand {
  text-decoration: none;
}

.mg-brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
  font-weight: 900;
}

.mg-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mg-nav a,
.mg-button {
  border-radius: 999px;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 900;
}

.mg-nav a {
  color: var(--muted);
}

.mg-nav-cta,
.mg-button {
  border: 1px solid var(--line);
  background: var(--card);
}

.mg-button.primary {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 40px rgba(16, 19, 20, 0.18);
}

.mg-hero,
.mg-section,
.mg-contact {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.mg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(26px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(44px, 8vw, 96px) 0;
}

.mg-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.92;
}

h2 {
  max-width: 880px;
  margin: 0 0 26px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.mg-hero p,
.mg-section p,
.mg-contact p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.mg-hero-copy > p {
  max-width: 690px;
}

.mg-actions {
  flex-wrap: wrap;
  margin-top: 28px;
}

.mg-hero-board {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(16, 19, 20, 0.94), rgba(35, 63, 48, 0.9)),
    radial-gradient(circle at 25% 12%, rgba(199, 232, 111, 0.3), transparent 18rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mg-hero-board::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 25px;
}

.mg-orbit-card {
  position: absolute;
  width: min(270px, 76%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(12px);
}

.mg-orbit-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--lime);
  font-weight: 900;
}

.mg-orbit-card small {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.mg-orbit-card.one {
  top: 42px;
  left: 32px;
}

.mg-orbit-card.two {
  top: 160px;
  right: 32px;
}

.mg-orbit-card.three {
  bottom: 134px;
  left: 48px;
}

.mg-orbit-card.four {
  right: 42px;
  bottom: 38px;
}

.mg-section,
.mg-contact {
  padding: clamp(56px, 8vw, 108px) 0;
}

.mg-grid,
.mg-projects {
  display: grid;
  gap: 18px;
}

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

.mg-projects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mg-grid article,
.mg-projects article,
.mg-contact {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 16px 45px rgba(16, 19, 20, 0.08);
}

.mg-projects span {
  color: var(--green);
  font-weight: 900;
}

.mg-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.mg-footer {
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 880px) {
  .mg-header,
  .mg-contact,
  .mg-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .mg-hero {
    min-height: 0;
  }

  .mg-hero-board {
    min-height: 520px;
  }
}
