/* ML Invest Holdings — Modern Minimal Design System */

:root {
  --ink: #0b1420;
  --ink-soft: #243044;
  --muted: #5c6a7a;
  --line: #e4e8ee;
  --surface: #ffffff;
  --bg: #f3f5f7;
  --bg-warm: #eef2f5;
  --accent: #0f6b5c;
  --accent-hover: #0c5649;
  --accent-soft: #e4f2ef;
  --gold: #c4a574;
  --danger: #b42318;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(11, 20, 32, 0.04), 0 12px 32px rgba(11, 20, 32, 0.06);
  --header-h: 72px;
  --max: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2.5rem, 760px);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(243, 245, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-text span {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a.is-active::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #fff;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(11, 20, 32, 0.35) 0%,
      rgba(11, 20, 32, 0.55) 40%,
      rgba(11, 20, 32, 0.92) 100%
    ),
    linear-gradient(90deg, rgba(11, 20, 32, 0.7) 0%, rgba(11, 20, 32, 0.2) 70%);
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 4.5rem;
  max-width: 720px;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  animation: fadeUp 0.9s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
  max-width: 28ch;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.0625rem;
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 4rem 0;
}

.section-dark {
  background: var(--ink);
  color: #fff;
}

.section-surface {
  background: var(--surface);
}

.section-accent {
  background: var(--accent-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-dark .eyebrow {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.0625rem;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.65);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-lead {
  margin-inline: auto;
}

/* —— Feature grid —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-item {
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.15rem;
  color: var(--accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.975rem;
}

/* —— Split —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 420px;
  background: var(--bg-warm);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.split-copy .section-lead {
  margin-bottom: 1.75rem;
}

/* —— Values —— */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.value-item p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

.value-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  display: block;
}

/* —— Services —— */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service {
  background: var(--surface);
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.service:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.service p {
  color: var(--muted);
  font-size: 0.975rem;
}

/* —— CTA band —— */
.cta-band {
  padding: 4.5rem 0;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 90% 50%,
    rgba(15, 107, 92, 0.35),
    transparent 70%
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.65);
}

/* —— Lists —— */
.check-list {
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.975rem;
}

.check-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.two-col-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.list-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

/* —— Terms note —— */
.note-box {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-size: 0.975rem;
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: 4rem 0 3rem;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 80% at 100% 0%,
    rgba(15, 107, 92, 0.4),
    transparent 60%
  );
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 48ch;
  font-size: 1.0625rem;
}

/* —— Forms —— */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.form-section {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.form-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.form-group label .req {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(15, 107, 92, 0.12);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.checkbox-group input {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.75rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item .icon svg {
  width: 20px;
  height: 20px;
}

.contact-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--accent);
}

.director-card {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.director-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.director-card .role {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.director-card p {
  color: var(--muted);
  font-size: 0.925rem;
}

/* —— FAQ / Content —— */
.content-stack {
  display: grid;
  gap: 1.5rem;
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}

.content-block h2,
.content-block h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.content-block h2 {
  font-size: 1.35rem;
}

.content-block h3 {
  font-size: 1.1rem;
}

.content-block p {
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.content-block ul li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
}

.content-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* —— Success —— */
.success-panel {
  text-align: center;
  padding: 5rem 0;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.success-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.success-panel p {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 2rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand .brand-text span {
  color: rgba(255, 255, 255, 0.45);
}

.footer-brand p {
  font-size: 0.925rem;
  line-height: 1.6;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.925rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .contact-line {
  font-size: 0.925rem;
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.footer-col .contact-line a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* —— Reveal animations —— */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Mobile nav —— */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--surface);
  z-index: 99;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: 1rem 0.5rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
  margin-top: 1.5rem;
}

body.nav-open {
  overflow: hidden;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values {
    grid-template-columns: 1fr 1fr;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split-media,
  .split-media img {
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .values,
  .two-col-lists,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 3.5rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .form-card {
    padding: 1.5rem;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
