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

:root {
  --bg:         #080c14;
  --bg2:        #0f1623;
  --bg-card:    #131d2e;
  --border:     rgba(167,139,250,0.13);
  --accent:     #a78bfa;
  --accent2:    #7c3aed;
  --accent-dim: rgba(167,139,250,0.12);
  --text:       #ede8f8;
  --muted:      #7a778f;
  --soft:       #b0abc6;
  --tag-bg:     rgba(167,139,250,0.08);
  --nav-h:      64px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(8,12,20,0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(167,139,250,0.08);
}

.brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text);
  text-decoration: none;
  user-select: none;
}

.brand span {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--soft);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  user-select: none;
  border: none;
  background: none;
  white-space: nowrap;
}

.nav-btn:hover, .nav-btn.active { color: var(--text); background: rgba(167,139,250,0.08); }
.nav-btn.active { color: var(--accent); }
.nav-btn .caret { font-size: 0.65rem; opacity: 0.5; transition: transform 0.2s; }
.nav-links > li:hover .caret { transform: rotate(180deg); }

/* DROPDOWN MENU */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 170px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(167,139,250,0.06);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0; right: 0;
  height: 16px;
}

.nav-links > li:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--soft);
  text-decoration: none;
  border-radius: 7px;
  transition: color 0.12s, background 0.12s;
}

.dropdown a:hover, .dropdown a.active { color: var(--text); background: var(--accent-dim); }
.dropdown a .di { font-size: 0.8rem; width: 16px; opacity: 0.6; }

/* MAIN CONTENT WRAPPER */
.main-wrapper {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.page-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 48px 100px;
}

/* HERO SECTION */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: fixed;
  top: 10vh; left: 5vw;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: fixed;
  bottom: 10vh; right: 5vw;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.75rem;
  color: var(--soft);
  margin-bottom: 32px;
}

.hero-tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 3px var(--accent); }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title .grad {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 40%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--soft);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 4px 24px rgba(124,58,237,0.35);
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--soft);
  border: 1px solid var(--border);
  padding: 12px 28px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-ghost:hover { color: var(--text); border-color: rgba(167,139,250,0.35); background: var(--accent-dim); }

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.hcard {
  background: rgba(19,29,46,0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
  backdrop-filter: blur(8px);
}

.hcard:hover {
  border-color: rgba(167,139,250,0.3);
  transform: translateY(-3px);
  background: rgba(26,34,54,0.85);
}

.hcard-icon { font-size: 1.3rem; margin-bottom: 12px; }
.hcard h3 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.hcard p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* HEADINGS & PROSE */
.eyebrow {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 14px;
}

.page-sub {
  font-size: 1rem;
  color: var(--soft);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 52px;
  font-weight: 300;
}

.prose { max-width: 600px; }
.prose h3 { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 28px 0 8px; }
.prose p { font-size: 0.875rem; color: var(--soft); line-height: 1.8; margin-bottom: 12px; font-weight: 300; }
.prose .note {
  background: var(--accent-dim);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--soft);
  margin: 18px 0;
  font-style: italic;
}

/* IMAGES & MEDIA */
.content-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 16px 0;
  display: block;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

/* PROJECT CARDS */
.project-list { display: flex; flex-direction: column; gap: 16px; }

.pcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 30px;
  transition: border-color 0.15s, transform 0.15s;
}

.pcard:hover { border-color: rgba(167,139,250,0.3); transform: translateX(3px); }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pcard h3 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.pcard-desc { font-size: 0.875rem; color: var(--soft); line-height: 1.7; margin-bottom: 16px; max-width: 600px; font-weight: 300; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { background: var(--tag-bg); border: 1px solid var(--border); border-radius: 5px; padding: 2px 9px; font-size: 0.7rem; color: var(--accent); font-weight: 500; }
.tag.n { color: var(--muted); }
.badge { font-size: 0.67rem; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.badge.wip { background: rgba(251,191,36,0.08); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.badge.live { background: rgba(74,222,128,0.08); color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.badge.active { background: rgba(167,139,250,0.1); color: var(--accent); border: 1px solid rgba(167,139,250,0.2); }

/* HIKARI */
.hikari-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(167,139,250,0.06));
  border: 1px solid rgba(167,139,250,0.15);
  border-radius: 16px;
  padding: 44px 48px;
  margin-bottom: 36px;
}

.hikari-banner::before {
  content: '光';
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  font-size: 9rem;
  color: var(--accent);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  font-family: serif;
}

.hikari-banner h2 { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 900; margin-bottom: 10px; letter-spacing: -0.5px; }
.hikari-banner p { font-size: 0.9rem; color: var(--soft); max-width: 460px; line-height: 1.75; font-weight: 300; }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 32px; }
.stat-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.stat-val { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.stat-lbl { font-size: 0.7rem; color: var(--muted); }

.stack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 36px; }
.sitem { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.sitem-role { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.sitem-name { font-size: 0.875rem; font-weight: 500; color: var(--text); }

/* ENTRIES */
.entry-list { display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.entry { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 22px 26px; transition: border-color 0.13s; }
.entry:hover { border-color: rgba(167,139,250,0.25); }
.entry-date { font-size: 0.7rem; color: var(--muted); margin-bottom: 6px; }
.entry-title { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.entry-body { font-size: 0.85rem; color: var(--soft); line-height: 1.75; font-weight: 300; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(167,139,250,0.15); border-radius: 3px; }