/* ============================================================
   MSCT Pte. Ltd. — landing page
   Forest green + warm gold on cream · Fraunces / Inter
   ============================================================ */
:root {
  --green-900: #123f24;
  --green-800: #14532d;
  --green-700: #166534;
  --green-600: #2f8f5b;
  --gold: #c8892b;
  --gold-light: #e0a94a;
  --cream: #fbfaf5;
  --cream-2: #f4efe3;
  --card: #ffffff;
  --ink: #1a241d;
  --body: #3b463f;
  --muted: #6b7a70;
  --line: #e7e1d2;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 12px 30px -12px rgba(20, 40, 25, .16);
  --shadow-lg: 0 24px 60px -22px rgba(20, 40, 25, .32);
  --max: 1120px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 600;
}
p { margin: 0 0 1rem; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-800); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s var(--spring), box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-800); color: #fff; box-shadow: 0 10px 22px -10px rgba(20, 83, 45, .6); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s ease; }
.btn-primary:hover { background: var(--green-900); color: #fff; transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 30px -12px rgba(20, 83, 45, .65); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(-1px) scale(.99); }
.btn-ghost { background: rgba(255,255,255,.5); color: var(--green-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-900); background: #fff; transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 245, .8);
  backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20,40,25,.5); background: rgba(251,250,245,.92); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; transition: transform .2s var(--spring); }
.brand:hover { transform: scale(1.03); }
.brand-mark { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 10px -3px rgba(20,83,45,.4); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: -.01em; }
.brand-name span { color: var(--gold); font-weight: 600; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { position: relative; color: var(--body); font-weight: 500; font-size: .97rem; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); border-radius: 2px; transition: width .25s ease; }
.nav a:hover { color: var(--green-800); }
.nav a:hover::after { width: 100%; }
.header-cta { padding: 10px 20px; }

/* Hamburger */
.hamburger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.hamburger span { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 3px; transition: transform .3s var(--spring), opacity .2s ease; }
.hamburger span + span { margin-top: 5px; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 95;
  background: rgba(251, 250, 245, .98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--spring), opacity .25s ease;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 16px 24px 26px; gap: 4px; }
.mobile-menu nav a { color: var(--ink); font-weight: 600; font-size: 1.12rem; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mobile-menu nav a.btn { border: 0; margin-top: 14px; color: #fff; justify-content: center; }
.menu-scrim { position: fixed; inset: 72px 0 0; z-index: 90; background: rgba(18,40,25,.28); backdrop-filter: blur(1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 85% -10%, rgba(224, 169, 74, .2), transparent 60%),
    radial-gradient(900px 500px at 5% 110%, rgba(47, 143, 91, .18), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; z-index: 2; padding: 104px 24px 96px; max-width: 880px; }
.hero-orbs { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; }
.orb-1 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(47,143,91,.55), transparent 70%); top: -60px; right: -40px; animation: float1 14s ease-in-out infinite; }
.orb-2 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(224,169,74,.5), transparent 70%); bottom: -70px; left: 8%; animation: float2 18s ease-in-out infinite; }
.orb-3 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(20,83,45,.35), transparent 70%); top: 34%; left: 46%; animation: float1 20s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-26px, 30px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(34px, -24px) scale(1.12); } }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); background: rgba(47, 143, 91, .12); padding: 8px 15px; border-radius: 999px; margin: 0 0 22px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 600; max-width: 15ch; }
.hero h1 .grad { background: linear-gradient(100deg, var(--green-700), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { font-size: clamp(1.06rem, 1.9vw, 1.28rem); color: var(--body); max-width: 60ch; margin-top: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(20,83,45,.35); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--green-700); border-radius: 2px; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(14px); } }

/* Hero entrance */
.hero-up { opacity: 0; transform: translateY(26px); animation: heroUp .9s var(--spring) forwards; animation-delay: var(--d, 0s); }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--green-800); color: #eaf3ec; overflow: hidden; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.marquee-track { display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; padding-left: 30px; animation: marquee 32s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.marquee-track span[aria-hidden] { color: var(--gold-light); font-size: .8rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- Trust ---------- */
.trust { background: var(--green-800); color: #eaf3ec; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 28px; padding: 30px 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .96rem; }
.trust-item svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.trust-item:hover svg { transform: scale(1.2) rotate(-6deg); }
.trust-item svg .check { stroke: #eaf3ec; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.about-copy p { color: var(--body); font-size: 1.06rem; }
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about-points li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 3px; transition: transform .2s var(--spring), box-shadow .2s ease; }
.about-points li:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.about-points strong { color: var(--ink); font-family: var(--font-display); font-size: 1.06rem; }
.about-points span { color: var(--muted); font-size: .95rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); transition: transform .25s var(--spring), box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #dcd5c3; }
.card-ico { width: 58px; height: 58px; display: grid; place-items: center; font-size: 29px; background: var(--cream-2); border-radius: 15px; margin-bottom: 18px; transition: transform .3s var(--spring); }
.card:hover .card-ico { transform: scale(1.12) rotate(-8deg); }
.card h3 { font-size: 1.24rem; margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { padding: 6px 4px; }
.value-ico { width: 54px; height: 54px; display: grid; place-items: center; background: rgba(47, 143, 91, .12); border-radius: 15px; margin-bottom: 16px; transition: transform .3s var(--spring), background .3s ease; }
.value:hover .value-ico { transform: translateY(-4px) scale(1.06); background: rgba(47, 143, 91, .18); }
.value-ico svg { width: 27px; height: 27px; fill: none; stroke: var(--green-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.value-ico svg .check { stroke: var(--gold); }
.value h3 { font-size: 1.14rem; margin-bottom: .3em; }
.value p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: transform .25s var(--spring), box-shadow .25s ease; }
.steps li:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green-800); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 16px; box-shadow: 0 8px 18px -8px rgba(20,83,45,.6); transition: transform .3s var(--spring); }
.steps li:hover .step-n { transform: scale(1.12) rotate(8deg); }
.steps h3 { font-size: 1.14rem; margin-bottom: .25em; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.contact-copy p { color: var(--body); font-size: 1.08rem; max-width: 40ch; }
.contact-copy .btn { margin-top: 10px; }
.contact-details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 28px; box-shadow: var(--shadow); }
.contact-row { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-row address { font-style: normal; color: var(--ink); font-weight: 500; }
.contact-row a { color: var(--green-800); font-weight: 600; }
.contact-row span { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #cfe0d4; padding: 58px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-name { color: #fff; }
.footer-name span { color: var(--gold-light); }
.footer-brand p { color: #a9c2b1; margin: 12px 0 0; max-width: 42ch; font-size: .96rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { position: relative; color: #cfe0d4; font-weight: 500; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: .88rem; color: #90ab99; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s var(--spring); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger within grids */
.cards .card:nth-child(2), .values .value:nth-child(2), .steps li:nth-child(2), .trust-grid .trust-item:nth-child(2), .about-points li:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3), .values .value:nth-child(3), .steps li:nth-child(3), .trust-grid .trust-item:nth-child(3), .about-points li:nth-child(3) { transition-delay: .16s; }
.cards .card:nth-child(4), .values .value:nth-child(4), .steps li:nth-child(4), .trust-grid .trust-item:nth-child(4), .about-points li:nth-child(4) { transition-delay: .24s; }
.cards .card:nth-child(5) { transition-delay: .32s; }
.cards .card:nth-child(6) { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .hamburger { display: block; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .cards, .values, .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero-inner { padding: 76px 24px 72px; }
  .cards, .values, .steps, .trust-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .footer-inner { flex-direction: column; gap: 22px; }
  .scroll-cue { display: none; }
  .marquee-track span { font-size: 1.02rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-up, .reveal { opacity: 1 !important; transform: none !important; }
  .orb, .scroll-cue span { animation: none !important; }
  .marquee-track { animation: none !important; }
}
