/* ============================================================
   MINIMALIST FUTURISTIC DESIGN SYSTEM — Tanoshii Computing
   Clean, lightweight design for Marketplace, Community, Blog, Identity
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;500;600;700;800&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  --mf-bg: #0b1221;
  --mf-surface: #111d35;
  --mf-surface-hover: #162442;
  --mf-border: rgba(100, 180, 255, 0.18);
  --mf-cyan: #00d4ff;
  --mf-cyan-dim: rgba(0, 212, 255, 0.12);
  --mf-cyan-glow: rgba(0, 212, 255, 0.4);
  --mf-white: #e2eaf4;
  --mf-white-muted: #9aa8b8;
  --mf-accent: #ff6b35;
  --mf-mono: 'Share Tech Mono', 'Courier New', monospace;
  --mf-display: 'Orbitron', sans-serif;
  --mf-body: 'Rajdhani', sans-serif;
  --mf-radius: 4px;
  --mf-ease: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--mf-body);
  font-weight: 400;
  color: var(--mf-white);
  background: var(--mf-bg);
  line-height: 1.65;
}

/* Dotted grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle, rgba(100, 180, 255, 0.14) 1px, transparent 1px),
    radial-gradient(circle, rgba(100, 180, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px;
  background-position: 0 0, 12px 12px;
}

.mf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mf-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 18, 33, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mf-border);
}

.mf-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.mf-nav__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1.2;
}

.mf-nav__brand-main {
  font-family: var(--mf-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mf-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mf-nav__brand-main::before {
  content: '// ';
  color: var(--mf-border);
}

.mf-nav__brand-main ruby rt {
  font-size: 0.52em;
  color: var(--mf-white-muted);
  font-family: var(--mf-mono);
}

.mf-nav__brand-sub {
  font-family: var(--mf-mono);
  font-size: 0.6rem;
  color: var(--mf-white-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
  width: 100%;
  text-align: center;
}

.mf-nav__links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mf-nav__links a {
  font-family: var(--mf-mono);
  font-size: 0.72rem;
  color: var(--mf-white-muted);
  text-decoration: none;
  padding: 6px 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--mf-radius);
  transition: var(--mf-ease);
}

.mf-nav__links a:hover {
  color: var(--mf-cyan);
  background: var(--mf-cyan-dim);
}

.mf-nav__links a.mf-nav__cta {
  color: var(--mf-bg);
  background: var(--mf-cyan);
  font-weight: 600;
}

.mf-nav__links a.mf-nav__cta:hover {
  box-shadow: 0 0 16px var(--mf-cyan-glow);
}

.mf-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--mf-border);
  color: var(--mf-cyan);
  font-size: 1.4rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: var(--mf-radius);
}

.mf-hero {
  position: relative;
  z-index: 1;
  padding: 120px 24px 60px;
  text-align: center;
}

.mf-hero__title {
  font-family: var(--mf-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--mf-white);
  margin-bottom: 10px;
}

.mf-hero__title .mf-accent {
  color: var(--mf-cyan);
}

.mf-hero__subtitle {
  font-family: var(--mf-mono);
  font-size: 0.82rem;
  color: var(--mf-white-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.mf-hero__desc {
  font-size: 1.02rem;
  color: var(--mf-white-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.mf-section {
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.mf-section__header {
  margin-bottom: 36px;
}

.mf-section__title {
  font-family: var(--mf-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mf-white);
  margin-bottom: 10px;
}

.mf-section__desc {
  font-size: 0.98rem;
  color: var(--mf-white-muted);
  max-width: 560px;
}

.mf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.mf-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius);
  padding: 22px;
  transition: var(--mf-ease);
}

.mf-card:hover {
  border-color: var(--mf-cyan);
  background: var(--mf-surface-hover);
  transform: translateY(-2px);
}

.mf-card__title {
  font-family: var(--mf-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--mf-white);
  margin-bottom: 8px;
}

.mf-card__text {
  font-size: 0.9rem;
  color: var(--mf-white-muted);
  line-height: 1.5;
}

.mf-btn {
  font-family: var(--mf-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius);
  color: var(--mf-white);
  background: transparent;
  cursor: pointer;
  transition: var(--mf-ease);
  display: inline-block;
}

.mf-btn:hover {
  border-color: var(--mf-cyan);
  background: var(--mf-cyan-dim);
  color: var(--mf-cyan);
}

.mf-btn--primary {
  background: var(--mf-cyan);
  color: var(--mf-bg);
  border-color: var(--mf-cyan);
  font-weight: 600;
}

.mf-btn--primary:hover {
  background: #33e0ff;
  box-shadow: 0 0 20px var(--mf-cyan-glow);
}

.mf-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--mf-border);
  background: var(--mf-surface);
  padding: 48px 24px 24px;
}

.mf-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

@media (max-width: 768px) {
  .mf-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mf-footer__brand { grid-column: 1 / -1; }
}

.mf-footer__brand h3 { font-family: var(--mf-display); font-size: 1.4rem; font-weight: 700; color: var(--mf-white); margin-bottom: 12px; }
.mf-footer__brand p { font-size: 0.9rem; color: var(--mf-white-muted); line-height: 1.6; max-width: 280px; }

.mf-footer__col h4 { font-family: var(--mf-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mf-cyan); margin-bottom: 18px; }
.mf-footer__col ul { list-style: none; padding: 0; margin: 0; }
.mf-footer__col li { margin-bottom: 10px; }
.mf-footer__col a { font-size: 0.86rem; color: var(--mf-white-muted); text-decoration: none; transition: var(--mf-ease); }
.mf-footer__col a:hover { color: var(--mf-cyan); }

.mf-footer__bottom {
  border-top: 1px solid var(--mf-border);
  padding-top: 20px;
  text-align: center;
}

.mf-footer__copy { font-family: var(--mf-mono); font-size: 0.68rem; color: var(--mf-white-muted); letter-spacing: 0.06em; }

.mf-input {
  font-family: var(--mf-body);
  font-size: 0.94rem;
  padding: 12px 16px;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius);
  background: var(--mf-surface);
  color: var(--mf-white);
  width: 100%;
  transition: var(--mf-ease);
}

.mf-input:focus {
  outline: none;
  border-color: var(--mf-cyan);
  box-shadow: 0 0 10px var(--mf-cyan-dim);
}

.mf-input::placeholder {
  color: rgba(158, 168, 184, 0.5);
}

/* Profile dropdown */
.mf-nav__profile { position: relative; display: inline-block; }
.mf-nav__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--mf-border);
  transition: var(--mf-ease);
}
.mf-nav__avatar:hover { border-color: var(--mf-cyan); }
.mf-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--mf-surface);
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-radius);
  padding: 8px 0;
  display: none;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.mf-nav__dropdown--open { display: block; }
.mf-nav__dropdown-header { padding: 8px 16px; }
.mf-nav__dropdown-name {
  font-family: var(--mf-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mf-white);
}
.mf-nav__dropdown-handle {
  font-family: var(--mf-mono);
  font-size: 0.7rem;
  color: var(--mf-white-muted);
}
.mf-nav__dropdown-divider {
  border: none;
  border-top: 1px solid var(--mf-border);
  margin: 4px 0;
}
.mf-nav__dropdown-item {
  display: block;
  padding: 8px 16px;
  font-family: var(--mf-mono);
  font-size: 0.72rem;
  color: var(--mf-white-muted);
  text-decoration: none;
  transition: var(--mf-ease);
}
.mf-nav__dropdown-item:hover {
  background: var(--mf-bg);
  color: var(--mf-cyan);
}
.mf-nav__dropdown-item--danger:hover { color: var(--mf-danger); }

.mf-form-group {
  margin-bottom: 16px;
}

.mf-form-label {
  display: block;
  font-family: var(--mf-mono);
  font-size: 0.72rem;
  color: var(--mf-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mf-pill {
  font-family: var(--mf-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mf-cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--mf-radius);
  padding: 4px 10px;
  background: var(--mf-cyan-dim);
}

@media (max-width: 768px) {
  .mf-nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(11, 18, 33, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--mf-border);
    gap: 4px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .mf-nav__links.mf-nav__links--open {
    display: flex;
  }

  .mf-nav__links a {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .mf-nav__toggle {
    display: block;
  }

  .mf-nav__profile {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .mf-hero {
    padding: 100px 16px 40px;
  }

  .mf-hero__title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }

  .mf-hero__subtitle {
    font-size: 0.75rem;
  }

  .mf-hero__desc {
    font-size: 0.95rem;
    padding: 0 8px;
  }

  .mf-section {
    padding: 40px 0;
  }

  .mf-section__header {
    margin-bottom: 24px;
  }

  .mf-section__title {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  .mf-container {
    padding: 0 16px;
  }

  .mf-grid {
    grid-template-columns: 1fr;
  }

  .mf-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mf-footer__brand {
    grid-column: auto;
  }

  .mf-footer__col h4 {
    margin-bottom: 12px;
  }

  .mf-footer {
    padding: 32px 16px 20px;
  }

  .mf-input {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .mf-hero {
    padding: 80px 12px 32px;
  }

  .mf-hero__title {
    font-size: 1.5rem;
  }

  .mf-hero__subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .mf-hero__desc {
    font-size: 0.9rem;
  }

  .mf-section {
    padding: 32px 0;
  }

  .mf-section__title {
    font-size: 1.2rem;
  }

  .mf-container {
    padding: 0 12px;
  }

  .mf-card {
    padding: 16px;
  }

  .mf-btn {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.72rem;
  }

  .mf-footer {
    padding: 24px 12px 16px;
  }

  .mf-footer__copy {
    font-size: 0.6rem;
  }
}

::selection {
  background: var(--mf-cyan);
  color: var(--mf-bg);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--mf-bg); }
::-webkit-scrollbar-thumb { background: var(--mf-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--mf-cyan); }