/* ==========================================================================
   MUTATIT LINKTREE THEME (NEO-BRUTALISM)
   BLACK, WHITE, YELLOW
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cascadia+Code&family=Inter:wght@400;500;600;800&display=swap');

:root {
  --B: #272727;
  --W: #F0F9F7;
  --Y: #F0F9F7;
  --border: 4px solid #272727;
  --sh: 8px 8px 0 #272727;
  --sh-lg: 12px 12px 0 #272727;
  --ease: cubic-bezier(.77, 0, .175, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --font: 'Cascadia Mono', 'Cascadia Code', 'Consolas', monospace;
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background-color: var(--W);
  color: var(--B);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 80px 24px;
}

/* Background Grid Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(39, 39, 39, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 39, 39, .08) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  z-index: -1;
  pointer-events: none;
}

@keyframes gridScroll {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

/* Floating Elements */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.float-box {
  position: absolute;
  border: 4px solid rgba(39, 39, 39, .12);
  opacity: .7;
  animation: floatDrift 20s linear infinite;
}

@keyframes floatDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -50px) rotate(10deg); }
  66% { transform: translate(-20px, 40px) rotate(-10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Custom Selection */
::selection { background: var(--B); color: var(--W); }

.container {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* --- HEADER --- */
.header {
  text-align: center;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.logo {
  width: 100px;
  height: 100px;
  background: var(--Y);
  border: var(--border);
  box-shadow: var(--sh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transform: rotate(-3deg);
  transition: transform .3s var(--bounce), box-shadow .3s var(--bounce);
}

.logo:hover {
  transform: rotate(2deg) scale(1.05);
  box-shadow: var(--sh-lg);
}

.title {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 12px;
  line-height: 1;
}

.desc {
  font-size: 14px;
  color: rgba(39, 39, 39, .6);
  max-width: 420px;
  margin: 0 auto;
  font-weight: 500;
}

/* --- SECTION --- */
.section {
  width: 100%;
}

.section-title {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(39, 39, 39, .3);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.section-title::after {
  content: '';
  flex-grow: 1;
  height: 2px;
  background: rgba(39, 39, 39, .1);
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- BUTTONS --- */
.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--W);
  border: var(--border);
  box-shadow: var(--sh);
  transition: all .2s var(--ease);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--B);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--sh-lg);
  background: var(--Y);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--B);
}

.btn-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-sub {
  font-size: 10px;
  letter-spacing: 2px;
  opacity: .5;
  font-weight: 600;
}

.btn-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Social Custom Hover */
.wa:hover { background: #E0F2E9; border-color: #25D366; }
.ig:hover { background: #FDE0EB; border-color: #E1306C; }
.tk:hover { background: #E5E5E5; border-color: #000; }

.btn-dark {
  background: var(--B);
  color: var(--W);
}

.btn-dark:hover {
  background: var(--W) !important;
  color: var(--B) !important;
}

/* Sub-card with Preview */
.tool-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border: var(--border);
  box-shadow: var(--sh);
  background: var(--W);
  text-decoration: none;
  color: var(--B);
  transition: all .25s var(--ease);
}

.tool-card:hover {
  transform: translate(-6px, -6px);
  box-shadow: var(--sh-lg);
}

.tool-img {
  background: var(--B);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--W);
  font-weight: 900;
  font-size: 24px;
  border-right: var(--border);
}

.tool-info {
  padding: 20px;
}

.tool-name {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.tool-desc {
  font-size: 12px;
  opacity: .6;
  line-height: 1.4;
}

/* --- FOOTER --- */
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 10px;
  color: rgba(39, 39, 39, .3);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.header, .section, .footer {
  animation: fadeIn .8s var(--ease) both;
}

.header { animation-delay: .1s; }
.section:nth-child(2) { animation-delay: .3s; }
.section:nth-child(3) { animation-delay: .5s; }
.footer { animation-delay: .7s; }

/* Mobile optimization */
@media (max-width: 480px) {
  body { padding: 40px 16px; }
  .title { font-size: 1.8rem; }
  .btn { padding: 16px 20px; font-size: 14px; }
  .tool-card { grid-template-columns: 60px 1fr; }
}