/* =========================================
   Midjoin Global Styles
   Clean • Modern • Logo Integrated
   ========================================= */

/* ===== Box Sizing Reset (Modern Safe) ===== */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* ===== Theme Tokens ===== */
:root{
  --ink:#111111;
  --muted:#555555;

  --bg:#ffffff;
  --card:#f7f7f9;
  --line:#e9e9ee;

  --grad1:#20d3a7;
  --grad2:#7c5cff;

  --radius:18px;
}

/* ===== Base ===== */
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.6;
}

/* ===== Links ===== */
a{
  color:var(--ink);
  text-decoration:none;
  transition:opacity .2s ease;
}
a:hover{ opacity:.7; }

/* ===== Layout Wrapper ===== */
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:30px 20px 80px;
}

/* ===== Top Navigation ===== */
.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  font-size:18px;
}

/* ===== Logo Box (Gradient Square) ===== */
.logoBox{
  width:36px;
  height:36px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--grad2),var(--grad1));
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

/* ===== SVG Logo inside the box ===== */
.midjoin-logo{
  width:22px;   /* size of the M inside the box */
  height:auto;
  display:block;
}

.midjoin-logo .seg{
  fill:none;
  stroke:#ffffff;       /* white so it shows on gradient */
  stroke-width:12;
  stroke-linecap:square;
  stroke-linejoin:miter;

  stroke-dasharray:260;
  stroke-dashoffset:260;
  animation:draw .8s ease forwards;
}

.midjoin-logo .s1{ animation-delay:0s; }
.midjoin-logo .s2{ animation-delay:.2s; }
.midjoin-logo .s3{ animation-delay:.4s; }
.midjoin-logo .s4{ animation-delay:.6s; }

@keyframes draw{
  to{ stroke-dashoffset:0; }
}

@media (prefers-reduced-motion: reduce){
  .midjoin-logo .seg{
    animation:none;
    stroke-dashoffset:0;
  }
}

/* ===== Nav Links ===== */
.nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  font-size:14px;
  align-items:center;
}

.nav a{
  padding:8px 10px;
  border-radius:10px;
}

.nav a:hover{
  background:rgba(0,0,0,.04);
  opacity:1;
}

.nav a.active{
  background:rgba(0,0,0,.06);
  font-weight:800;
}

/* ===== Cards ===== */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
}

.cardWhite{ background:#ffffff; }

/* ===== Buttons ===== */
.btn{
  padding:12px 18px;
  border-radius:12px;
  border:1px solid #dddddd;
  background:#ffffff;
  font-weight:700;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn:hover{ transform:translateY(-1px); }

.btnPrimary{
  border:0;
  color:#ffffff;
  background:linear-gradient(135deg,var(--grad1),var(--grad2));
}

.btnGhost{
  border:1px solid #dddddd;
  background:#ffffff;
  color:var(--ink);
}

/* ===== Forms ===== */
input, textarea, select{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid #dddddd;
  background:#ffffff;
  font-size:14px;
  color:var(--ink);
}

input::placeholder, textarea::placeholder{ color:#888888; }

textarea{
  resize:vertical;
  min-height:90px;
}

/* ===== Footer ===== */
footer{
  margin-top:100px;
  padding:40px 20px;
  border-top:1px solid #eeeeee;
  text-align:center;
  font-size:13px;
  color:#777777;
}
