/* ═══ KODA HUB · Linktree maison (DA Dolly Swiss minimal) ═══════ */

:root {
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --sans: 'Helvetica Neue', Helvetica, 'Inter', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

:root, [data-theme="light"] {
  --bg:           #F4F4F6;
  --bg-deep:      #ECECEF;
  --surface:      #FFFFFF;
  --surface-2:    #F8F8FA;

  --ink:          #0A0A0B;
  --ink-2:        #2A2A2E;
  --muted:        #6B6B72;
  --faint:        #A0A0A8;

  --hair:         rgba(10, 10, 11, 0.08);
  --hair-2:       rgba(10, 10, 11, 0.14);
  --hair-strong:  rgba(10, 10, 11, 0.22);

  --glass:        rgba(255, 255, 255, 0.55);
  --glass-2:      rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);

  --shadow-sm: 0 1px 2px rgba(10, 10, 11, 0.06);
  --shadow-md: 0 4px 16px -6px rgba(10, 10, 11, 0.12), 0 1px 2px rgba(10, 10, 11, 0.04);
  --shadow-lg: 0 30px 80px -30px rgba(10, 10, 11, 0.35), 0 8px 24px -12px rgba(10, 10, 11, 0.12);

  --blob-a: #B8C5FF;
  --blob-b: #FFC9D9;
  --blob-c: #C8F0DC;
  --blob-opacity: 0.55;

  --accent-blue:        #4A5CC0;
  --accent-blue-soft:   rgba(74, 92, 192, 0.10);
  --accent-rose:        #B53D65;
  --accent-rose-soft:   rgba(181, 61, 101, 0.10);
  --accent-mint:        #2F7A52;
  --accent-mint-soft:   rgba(47, 122, 82, 0.10);
}

[data-theme="dark"] {
  --bg:           #08080A;
  --bg-deep:      #050506;
  --surface:      #131316;
  --surface-2:    #1B1B1F;

  --ink:          #FAFAFB;
  --ink-2:        #E4E4E8;
  --muted:        #8E8E96;
  --faint:        #5A5A62;

  --hair:         rgba(255, 255, 255, 0.08);
  --hair-2:       rgba(255, 255, 255, 0.14);
  --hair-strong:  rgba(255, 255, 255, 0.24);

  --glass:        rgba(22, 22, 26, 0.55);
  --glass-2:      rgba(22, 22, 26, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 8px 24px -12px rgba(0, 0, 0, 0.5);

  --blob-a: #3B4DA8;
  --blob-b: #8B3D6A;
  --blob-c: #2B6B58;
  --blob-opacity: 0.32;

  --accent-blue:        #8E9DFF;
  --accent-blue-soft:   rgba(142, 157, 255, 0.14);
  --accent-rose:        #FF8FB0;
  --accent-rose-soft:   rgba(255, 143, 176, 0.14);
  --accent-mint:        #7FD8AB;
  --accent-mint-soft:   rgba(127, 216, 171, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  letter-spacing: -0.005em;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

body::before, body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: var(--blob-opacity);
  transition: opacity .4s var(--ease), background .4s var(--ease);
}
body::before {
  top: -200px; left: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--blob-a), transparent 70%);
}
body::after {
  bottom: -200px; right: -150px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--blob-b), transparent 70%);
}
.blob-3 {
  position: fixed;
  top: 40%; left: 50%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blob-c), transparent 70%);
  filter: blur(120px);
  opacity: var(--blob-opacity);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
}

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ─── Layout ─────────────────────────────────────────────────────── */
.hub {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Floating theme toggle (top-right) */
.theme-fab {
  position: fixed;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--glass-2);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--hair);
  color: var(--muted);
  transition: background .15s, color .15s, transform .15s;
  z-index: 30;
}
.theme-fab:hover { color: var(--ink); transform: translateY(-1px); }
.theme-fab svg { width: 18px; height: 18px; }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-logo {
  width: 92px; height: 92px;
  border-radius: 24px;
  background: var(--surface);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hair);
}
.hero-logo img {
  width: 66px; height: 66px;
  display: block;
}
.hero-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 4px 0 0;
}
.hero-tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  letter-spacing: -0.005em;
  max-width: 32ch;
  line-height: 1.5;
}

/* ─── Link cards ─────────────────────────────────────────────────── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--hair-strong);
}

.link-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  flex-shrink: 0;
}
.link-icon svg {
  width: 20px; height: 20px;
  stroke-width: 1.6;
}

.link-icon--blue {
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
}
.link-icon--rose {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
}
.link-icon--mint {
  background: var(--accent-mint-soft);
  color: var(--accent-mint);
}
.link-icon--neutral {
  background: var(--hair);
  color: var(--ink-2);
}

.link-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.link-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.link-meta {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: -0.005em;
  font-family: var(--mono);
}

.link-arrow {
  flex-shrink: 0;
  color: var(--faint);
  transition: color .25s, transform .25s;
}
.link-card:hover .link-arrow {
  color: var(--ink);
  transform: translateX(2px);
}
.link-arrow svg { width: 16px; height: 16px; stroke-width: 1.6; }

/* ─── Social row ─────────────────────────────────────────────────── */
.socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.social-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--hair);
  color: var(--muted);
  transition: background .15s, color .15s, transform .15s;
}
.social-btn:hover {
  color: var(--ink);
  background: var(--surface);
  transform: translateY(-1px);
}
.social-btn svg { width: 18px; height: 18px; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.foot {
  font-size: 10.5px;
  color: var(--faint);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  text-align: center;
  margin-top: 8px;
  line-height: 1.6;
}

/* ─── Scroll fade-up (entry animation) ──────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .anim {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp .55s var(--ease) forwards;
  }
  .anim-1 { animation-delay: 60ms; }
  .anim-2 { animation-delay: 140ms; }
  .anim-3 { animation-delay: 220ms; }
  .anim-4 { animation-delay: 300ms; }
  .anim-5 { animation-delay: 380ms; }
  .anim-6 { animation-delay: 460ms; }
  .anim-7 { animation-delay: 540ms; }
  .anim-8 { animation-delay: 620ms; }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  body { padding: 24px 16px; }
  .hub { gap: 28px; }
  .hero-logo { width: 80px; height: 80px; border-radius: 20px; }
  .hero-logo img { width: 56px; height: 56px; }
  .hero-name { font-size: 20px; }
  .link-card { padding: 14px 16px; gap: 12px; }
  .link-title { font-size: 14px; }
  .link-icon { width: 36px; height: 36px; }
  .link-icon svg { width: 18px; height: 18px; }
}
