:root{
  --container-max: 72rem;
  --gutter-mobile: 1.25rem;
  --gutter-desktop: 2rem;
  --section-pad-mobile: 3.5rem;
  --section-pad-desktop: 5rem;

  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --fs-body: 1rem;
  --lh-body: 1.6;

  --fs-h1-desktop: 2.75rem;
  --fs-h1-mobile: 2.25rem;
  --lh-h1: 1.15;
  --ls-h1: -0.02em;

  --fs-h2-desktop: 1.75rem;
  --fs-h2-mobile: 1.5rem;

  --fs-h3: 1.125rem;
  --fs-lead: 1.125rem;

  --fs-nav: 0.9375rem;
  --fs-signature: 0.8125rem;
  --ls-signature: 0.08em;

  --fs-badge: 0.75rem;

  --bg: #FFFFFF;
  --bg-soft: #F7F9FB;
  --text: #0B1220;
  --text-muted: #4B5563;
  --border: #E6E8EC;

  --minyts-green: #1ED760;
  --mcc-blue: #0A6CFF;

  --radius-card: 1rem;
  --radius-btn: 0.875rem;
  --radius-pill: 9999px;

  --nav-h: 4.25rem;
  --topbar-h: 4.25rem;

  --nav-gap-logo-links: 1.5rem;

  --nav-baseline: 1px;
  --nav-hand: 2px;
  --nav-underline-gap: 0.5rem;

  --btn-h: 2.75rem;
  --btn-px: 1.1rem;

  --t-fast: 140ms;
  --t-std: 220ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* smoother topbar easing */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body{
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible{
  outline: 3px solid rgba(10, 108, 255, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
}
@media (min-width: 1024px){
  .container{ padding: 0 var(--gutter-desktop); }
}

section[id]{ scroll-margin-top: calc(var(--topbar-h) + 1rem); }

.section{ padding: var(--section-pad-mobile) 0; }
@media (min-width: 1024px){
  .section{ padding: var(--section-pad-desktop) 0; }
}
.section-soft{
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head h2{
  margin: 0;
  font-size: var(--fs-h2-mobile);
  letter-spacing: -0.01em;
}
@media (min-width: 768px){
  .section-head h2{ font-size: var(--fs-h2-desktop); }
}

.lead{
  margin: 0.75rem 0 0;
  font-size: var(--fs-lead);
  max-width: 60ch;
}
.helper{
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  max-width: 70ch;
}
.muted{ color: var(--text-muted); margin: 0.75rem 0 0; }

/* TOPBAR (SMOOTH + NEVER MOVES PAGE) */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);

  transform: translate3d(0, 0, 0);
  transition: transform 320ms var(--ease-smooth);
  will-change: transform;
}
.topbar.topbar--hidden{
  transform: translate3d(0, -110%, 0);
}

/* Spacer stays constant so the page does NOT shift */
.topbar-spacer{
  height: var(--topbar-h);
}

@media (prefers-reduced-motion: reduce){
  .topbar{ transition: none; }
}

.topbar-inner{
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nav-gap-logo-links);
  min-width: 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.brand-text{
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55vw;
}
@media (min-width: 900px){
  .brand-text{
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }
}

/* LOGO */
.logo-mark{
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.logo-svg{
  width: 28px;
  height: 28px;
  display: block;
}

.logo-ring{
  fill: #fff;
  stroke: rgba(11,18,32,0.14);
  stroke-width: 1;
}

.logo-hand{
  fill: none;
  stroke: #0B1220;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-hub{ fill: #0B1220; }

#minytsLogo.is-formed .logo-hand.hour{ stroke: url(#gBlue); }
#minytsLogo.is-formed .logo-hand.minute{ stroke: url(#gNavy); }
#minytsLogo.is-formed .logo-hand.second{ stroke: url(#gOrange); }

/* NAV */
.nav-wrap{
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.nav-group{
  display: none;
  position: relative;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 0.2rem;
}
.nav-group::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: var(--nav-baseline);
  background: var(--border);
}

.nav-item{
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--nav-underline-gap);
  font-size: var(--fs-nav);
  line-height: 1.2;
  padding: 0.25rem 0;
}
.nav-label{ white-space: nowrap; }

.nav-hand{
  height: var(--nav-hand);
  background: rgba(11, 18, 32, 0.55);
  width: 40%;
  transition: transform var(--t-std) var(--ease), background var(--t-std) var(--ease);
}
.hand-hour{ width: 35%; }
.hand-minute{ width: 55%; }
.hand-second{ width: 80%; }
.hand-continuation{ width: 95%; position: relative; }
.hand-continuation::after{
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 6px;
  width: 14px;
  height: var(--nav-hand);
  background: rgba(11, 18, 32, 0.35);
}
.nav-item:hover .nav-hand{
  background: rgba(10, 108, 255, 0.65);
  transform: translateY(-1px);
}

.nav-signature{
  display: none;
  font-size: var(--fs-signature);
  letter-spacing: var(--ls-signature);
  color: rgba(11, 18, 32, 0.65);
  white-space: nowrap;
  user-select: none;
}

.nav-toggle{
  height: 38px;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 9999px;
  font: inherit;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease);
}
.nav-toggle:hover{ transform: translateY(-1px); }

@media (min-width: 900px){
  .nav-group{ display: inline-flex; }
  .nav-signature{ display: inline-flex; }
  .nav-toggle{ display: none; }
}

.mobile-menu{
  border-bottom: 1px solid var(--border);
  background: #fff;
  overflow-x: hidden;
}
.mobile-menu-inner{
  padding: 1rem var(--gutter-mobile) 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.mobile-menu .nav-item{ width: fit-content; }
.mobile-signature{
  margin-top: 0.5rem;
  font-size: var(--fs-signature);
  letter-spacing: var(--ls-signature);
  color: rgba(11, 18, 32, 0.65);
}

/* HERO */
.hero{
  padding-top: calc(var(--section-pad-mobile) + 1rem);
  padding-bottom: var(--section-pad-mobile);
}
@media (min-width: 1024px){
  .hero{
    padding-top: calc(var(--section-pad-desktop) + 1rem);
    padding-bottom: calc(var(--section-pad-desktop) - 0.5rem);
  }
}

.hero-grid{
  display: grid;
  gap: 1.5rem;
  align-items: center;
  min-width: 0;
}
@media (min-width: 900px){
  .hero-grid{
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
}

.hero-line{
  margin: 0;
  font-size: var(--fs-h1-mobile);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  max-width: 26ch;
}
@media (min-width: 768px){
  .hero-line{ font-size: var(--fs-h1-desktop); max-width: 40ch; }
}

.hero-link{
  color: rgba(10, 108, 255, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-std) var(--ease), color var(--t-std) var(--ease);
}
.hero-link:hover{
  color: rgba(10, 108, 255, 1);
  border-color: rgba(10, 108, 255, 0.55);
}
.hero-signature{ white-space: nowrap; }

.hero-micro{
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  max-width: 70ch;
}

.hero-art{ border: none; background: transparent; padding: 0; }
.hero-illustration{
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  object-fit: cover;
}

/* BUTTONS */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 var(--btn-px);
  border-radius: var(--radius-btn);
  font-weight: 650;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease);
  user-select: none;
  width: fit-content;
  margin-top: 1.25rem;
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--minyts-green);
  color: #0B1220;
  border: 1px solid rgba(0,0,0,0.08);
}
.btn-outline{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-link{
  background: transparent;
  border: none;
  padding: 0;
  height: auto;
  font-weight: 650;
  color: rgba(10, 108, 255, 0.95);
  margin-top: 0;
}
.btn-link:hover{ transform: translateY(-1px); }

.btn-small{
  height: 42px;
  padding: 0 1rem;
  margin-top: 0;
}

/* Bullets */
.bullets{
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  max-width: 70ch;
}
.bullets li{ margin: 0.75rem 0; }

.signature-line{
  margin: 1.25rem 0 0;
  max-width: 70ch;
  font-size: 0.98rem;
}

/* GRIDS */
.grid{
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  min-width: 0;
}
@media (min-width: 768px){
  .grid{ gap: 1.25rem; }
}
.principles{ grid-template-columns: 1fr; }
@media (min-width: 900px){
  .principles{ grid-template-columns: repeat(3, 1fr); }
}

.holdings{ grid-template-columns: 1fr; }
@media (min-width: 768px){
  .holdings{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
  .holdings{ grid-template-columns: repeat(3, 1fr); }
}

/* Panels */
.panel{
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 1.25rem;
}
@media (min-width: 1024px){
  .panel{ padding: 1.5rem; }
}
.panel h3{
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.3;
}
.panel p{
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}
.trust-line{
  margin: 1.25rem 0 0;
  max-width: 70ch;
}

/* OUR IDENTITY */
.identity-grid{
  display: grid;
  gap: 1.25rem;
  align-items: start;
  position: relative;
}

.identity-media{
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.identity-badge{
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 1.1rem;
  object-fit: contain;
}

@media (min-width: 900px){
  .identity-grid{
    grid-template-columns: 0.75fr 1.25fr;
    gap: 1rem;
  }
  .identity-media{
    margin-top: -0.5rem;
    justify-content: flex-end;
    margin-right: 1.75rem;
  }
}

@media (max-width: 899px){
  .identity-grid{
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .identity-copy{
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 1rem;
    padding: 1rem;
  }

  .identity-media{
    position: absolute;
    top: 0.15rem;
    right: 0;
    width: 70%;
    max-width: 340px;
    z-index: 1;
    pointer-events: none;
  }

  .identity-badge{
    max-width: 100%;
    opacity: 0.18;
    filter: blur(8px);
    transform: rotate(-10deg);
    border-radius: 1.25rem;
  }
}

/* HOW WE OPERATE */
#how-we-operate{
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.operate-media{
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: end;
  min-width: 0;
}

.operate-media-item{
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: transparent;
}

.operate-media-item img{
  width: 100%;
  height: clamp(160px, 18vw, 235px);
  object-fit: contain;
  display: block;
}

@media (max-width: 899px){
  .operate-media{ grid-template-columns: 1fr; }
  .operate-media-item--ops,
  .operate-media-item--inst{ display: none !important; }
  .operate-media-item--main img{
    height: auto;
    max-height: none;
  }
}

/* Cards */
.card{
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: transform var(--t-fast) var(--ease);
}
@media (min-width: 1024px){
  .card{ padding: 1.5rem; }
}
.card:hover{ transform: translateY(-2px); }

.card-title{
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.25;
  padding-right: 6.5rem;
}
.card-desc{
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  padding-right: 6.5rem;
}
.card-micro{
  margin: 0.5rem 0 0;
  color: rgba(11, 18, 32, 0.8);
  padding-right: 6.5rem;
}
.card-actions{
  margin-top: auto;
  padding-top: 1rem;
}

/* Badges */
.badge-stack{
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: grid;
  gap: 0.4rem;
  justify-items: end;
}
.badge, .pill{
  font-size: var(--fs-badge);
  line-height: 1;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #fff;
  color: rgba(11, 18, 32, 0.85);
  white-space: nowrap;
}
.badge-live{ border-color: rgba(30, 215, 96, 0.45); }
.pill{
  border-color: rgba(10, 108, 255, 0.25);
  color: rgba(10, 108, 255, 0.85);
}

/* Companies header + image */
.companies-grid{
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
  min-width: 0;
}
@media (min-width: 900px){
  .companies-grid{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}
.companies-art{ display: flex; justify-content: flex-end; }
.companies-illustration{
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
}

/* Inline links */
.inline-link{
  color: rgba(10, 108, 255, 0.95);
  border-bottom: 1px solid rgba(10, 108, 255, 0.25);
}
.inline-link:hover{ border-bottom-color: rgba(10, 108, 255, 0.75); }

/* CONTACT */
.contact-grid{
  margin-top: 0;
  display: grid;
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}
@media (min-width: 900px){
  .contact-grid{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.contact-lines p{ margin: 0.6rem 0; }

.contact-right{
  display: grid;
  gap: 1rem;
  align-items: start;
}

.contact-illustration{
  margin: 0;
  display: flex;
  justify-content: center;
}
.contact-illustration img{
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  -webkit-mask-image: radial-gradient(closest-side, rgba(0,0,0,1) 68%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(closest-side, rgba(0,0,0,1) 68%, rgba(0,0,0,0) 100%);
}

.contact-cta{
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 1024px){
  .contact-cta{ padding: 1.5rem; }
}

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--text-muted);
  background: #fff;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer p{ margin: 0; }
